Fix missing localities for fdbserver#7995
Merged
Merged
Conversation
The localities are stored in ServerDBInfo for calculating distances to other processes. The localities are not set when creating ServerDBInfo, thus any distances calculated before UpdateServerDBInfoRequest will be wrong. This PR fixes this issue, thus preventing unnecessary cross DC calls, especially for index prefetching on the storage servers.
Collaborator
Doxense CI Report for Windows 10
|
Contributor
Result of foundationdb-pr on Linux CentOS 7
|
flowguru
previously approved these changes
Aug 25, 2022
Collaborator
Doxense CI Report for Windows 10
|
Contributor
Result of foundationdb-pr on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Contributor
Author
|
CI failure is unrelated to this change: |
Contributor
Result of foundationdb-pr-macos on macOS BigSur 11.5.2
|
Contributor
Result of foundationdb-pr on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
flowguru
reviewed
Aug 26, 2022
| break; | ||
| } else if (badServers == alternatives->countBest() && i == badServers) { | ||
| TraceEvent("AllLocalAlternativesFailed") | ||
| .suppressFor(1.0) |
Contributor
There was a problem hiding this comment.
Do we want to do 0.1 here?
Contributor
Author
There was a problem hiding this comment.
This can be quite noisy, as we observed in tests. For prod clusters that are larger, I worry too many such events even if we suppress with 0.1s. So I choose 1s, i.e., at most 3600 per server hour.
Contributor
There was a problem hiding this comment.
Can you change it in main branch as well? Now we have diverging PR, it is not a strictly cherry pick anymore
flowguru
approved these changes
Aug 26, 2022
alecgrieser
approved these changes
Aug 26, 2022
Contributor
Result of foundationdb-pr on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherrypick #7994
The localities are stored in ServerDBInfo for calculating distances to other
processes. The localities are not set when creating ServerDBInfo, thus any
distances calculated before UpdateServerDBInfoRequest will be wrong.
This PR fixes this issue, thus preventing unnecessary cross DC calls,
especially for index prefetching on the storage servers.
Also added more traces for load balancing.
100k 20220825-215215-jzhou-786b84e5fa1170a5 passed.
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branchormainif this is the youngest branch)