-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asim: add one voter lease thrashing reproduction
Add a simulation test where the replication factor is set to 1. This highlights lease thrashing, which causes replica and lease count convergence to take upwards of 20 minutes with two nodes. Informs: #108420 Release note: None
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# This test reproduces lease thrashing (#108420) when the replication factor is | ||
# set to 1. | ||
gen_cluster nodes=2 | ||
---- | ||
|
||
gen_ranges ranges=100 repl_factor=1 placement_skew=true | ||
---- | ||
|
||
eval duration=20m seed=42 | ||
---- | ||
OK | ||
|
||
plot stat=replicas | ||
---- | ||
---- | ||
|
||
100.00 ┼──────╭────────────╮ | ||
93.33 ┤ ╭╯ ╰╮ ╰────╮ | ||
86.67 ┤ │ ╰╮ ╭╰╮───────╮ | ||
80.00 ┤ │ ╰╮ ╭─╯ ╰╮ ╰─╭╮ | ||
73.33 ┤ ╭╯ ╰╮ ╭╯ ╰╮ ╭╯╰─────────╮ | ||
66.67 ┤ │ │ ╭─╯ ╰─╮ │ ╰─╮ ╭──╰─╮╭╮──╭╮╮ | ||
60.00 ┤ ╭╯ ╰╮ │ │ ╭╯ ╰─╯ ╰╯╰──╯╰────────╮╭╮╭─╮╮ | ||
53.33 ┤ │ │ ╭─╯ ╰╮ ╭╯ ╰╯ ╰╯╰╯╰╯ ╰────────── | ||
46.67 ┤ ╭╯ ╰╮ │ ╰─╯ | ||
40.00 ┤ │ │╭╯ | ||
33.33 ┤ │ ╰╯ | ||
26.67 ┤ ╭╯ | ||
20.00 ┤ │ | ||
13.33 ┤╭╯ | ||
6.67 ┤│ | ||
0.00 ┼╯ | ||
replicas | ||
---- | ||
---- | ||
|
||
plot stat=leases | ||
---- | ||
---- | ||
|
||
100.00 ┼──────╮ ╭───╮ | ||
93.33 ┤ ╰╮ ╭╯ ╰────╮ | ||
86.67 ┤ │ │ │ | ||
80.00 ┤ ╰╮ ╭╯ ╰╮ ╭─────╮ | ||
73.33 ┤ │ │ │ ╭╯ ╰─╮ ╭───╮ | ||
66.67 ┤ ╰╮╭╯ ╰╮ ╭╯ ╰╮ ╭╯ ╰─╮ ╭──╮ | ||
60.00 ┤ ││ │ │ │ │ ╰╮╭╯ ╰──╮ ╭──╮ | ||
53.33 ┤ ╭╯ ╰╮╯ ╰╭╯ │╯ ╰╭╯ ╰──╮───────╭─────── | ||
46.67 ┤ │╮ ╭╰╮ ╭╯╮ ╰╮ ╭╯╮ ╭──╰───────╯─────── | ||
40.00 ┤ ││ │ │ │ │ ╭╯╰╮ ╭──╯ ╰──╯ | ||
33.33 ┤ ╭╯╰╮ ╭╯ ╰╮ ╭╯ ╰╮ ╭─╯ ╰──╯ | ||
26.67 ┤ │ │ │ ╰╮ ╭─╯ ╰───╯ | ||
20.00 ┤ ╭╯ ╰╮ ╭╯ ╰─────╯ | ||
13.33 ┤ │ │ │ | ||
6.67 ┤ ╭╯ ╰╮ ╭────╯ | ||
0.00 ┼──────╯ ╰───╯ | ||
leases | ||
---- | ||
---- | ||
|
||
# vim:ft=sh |