-
Notifications
You must be signed in to change notification settings - Fork 13
Setting object_storage_max_nodes #677
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
Conversation
|
This is an automated comment for commit ffe2ec9 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
| main_configs=["configs/cluster.xml", "configs/named_collections.xml"], | ||
| user_configs=["configs/users.xml"], | ||
| macros={"replica": "node1", "shard": "shard1"}, | ||
| macros={"replica": "replica1", "shard": "shard1"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to unification with other two nodes below, they have "replica": ""replicaX" macro.
| if (max_hosts > 0 && shards_info.size() > max_hosts) | ||
| { | ||
| pcg64_fast gen{randomSeed()}; | ||
| std::shuffle(shards_info.begin(), shards_info.end(), gen); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reasoning behind the shuffle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without shuffle nodes from list begin will be chosen. First nodes will be loaded, last nodes will be empty.
With shuffle loading will be more or less equal for every node independent of place in list.
arthurpassos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ffe2ec9 to
5b70ae4
Compare
arthurpassos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Third LGTM
Setting object_storage_max_nodes
Setting object_storage_max_nodes
Setting object_storage_max_nodes
Return of lost
object_storage_max_nodessetting.