Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backupccl: break dependency on gossip #104803

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Conversation

yuzefovich
Copy link
Member

This commit removes the dependency of the backup / restore on gossip. Previously, gossip was used to count the number of nodes in the cluster, and this information is used for telemetry reporting as well as for chunking up the working spans. However, that seems unnecessary and in some cases incorrect.

In particular, for backup telemetry we computed speed per node via dividing by the cluster node count, but we might have used less SQL instances, so we should actually be dividing by the number of SQL instances used in the backup plan. In restore we use all available SQL instances, and we now calculate that number right before using it for telemetry calculation. It's possible that we used different number of instances in the restore operations (which there appear to be three) when the instances went up or down, but it's probably not that important.

Addresses: #54252.
Epic: None.

Release note: None

@yuzefovich yuzefovich requested review from a team as code owners June 13, 2023 19:45
@blathers-crl
Copy link

blathers-crl bot commented Jun 13, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@dt dt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This commit removes the dependency of the backup / restore on gossip.
Previously, gossip was used to count the number of nodes in the cluster,
and this information is used for telemetry reporting as well as for
chunking up the working spans. However, that seems unnecessary and in
some cases incorrect.

In particular, for backup telemetry we computed speed per node via
dividing by the cluster node count, but we might have used less SQL
instances, so we should actually be dividing by the number of SQL
instances used in the backup plan. In restore we use all available SQL
instances, and we now calculate that number right before using it for
telemetry calculation. It's possible that we used different number of
instances in the restore operations (which there appear to be three)
when the instances went up or down, but it's probably not that
important.

Release note: None
@yuzefovich
Copy link
Member Author

CI failure is a known flake.

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 13, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 13, 2023

Build succeeded:

@craig craig bot merged commit 002c193 into cockroachdb:master Jun 13, 2023
@yuzefovich yuzefovich deleted the mt-backup branch June 14, 2023 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants