Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'Speed up bootstrap with large number of tokens in the cluster …
…10X' from Asias He === Setup === 1) start node1 with ``` scylla --num-tokens 20000 --smp 1 ``` The large number of tokens per node is used to simulate large number of nodes in the cluster (large total number of tokens for the cluster). 2) start node2 with ``` scylla --num-tokens 20000 --smp 1 ``` 3) Measure the time to finish bootstrap === Result === 1) With speed up patch: ``` node1 (16s) INFO 2022-06-21 14:30:00,038 [shard 0] init - Scylla version 5.1.dev-0.20220621.a7b927bda764 with build-id d78b6233e8227975cc26259280ceabf2cf7817b9 starting ... INFO 2022-06-21 14:30:16,019 [shard 0] init - Scylla version 5.1.dev-0.20220621.a7b927bda764 initialization completed. node2 (bootstrap node,174s) INFO 2022-06-21 14:30:40,954 [shard 0] init - Scylla version 5.1.dev-0.20220621.a7b927bda764 with build-id d78b6233e8227975cc26259280ceabf2cf7817b9 starting ... INFO 2022-06-21 14:33:34,899 [shard 0] init - Scylla version 5.1.dev-0.20220621.a7b927bda764 initialization completed. ``` 2) Without speed up patch: ``` node1 (171s) INFO 2022-06-21 14:38:49,065 [shard 0] init - Scylla version 5.1.dev-0.20220621.6f4bfea99431 with build-id f22bfa5a75887258ab48ee092ec49b5299365168 starting ... INFO 2022-06-21 14:41:40,601 [shard 0] init - Scylla version 5.1.dev-0.20220621.6f4bfea99431 initialization completed. node2 (bootstrap node, 1181s) INFO 2022-06-21 14:41:46,997 [shard 0] init - Scylla version 5.1.dev-0.20220621.6f4bfea99431 with build-id f22bfa5a75887258ab48ee092ec49b5299365168 starting ... INFO 2022-06-21 15:01:27,507 [shard 0] init - Scylla version 5.1.dev-0.20220621.6f4bfea99431 initialization completed. ``` The improvements for bootstrap time: node1: 171s / 16s = 10.68X node2: 1181s / 174s = 6.78X Refs #10337 Refs #10817 Refs #10836 Refs #10837 Closes #10850 * github.com:scylladb/scylla: locator: Speed up abstract_replication_strategy::get_address_ranges locator: Speed up simple_strategy::calculate_natural_endpoint token_metadata: Speed up count_normal_token_owners
- Loading branch information