# 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
