]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Paxos: make 'paxos trim disabled max versions' much much larger
authorSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 23:56:06 +0000 (16:56 -0700)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 23:57:53 +0000 (16:57 -0700)
108000 is about 3 hours if paxos is going full-bore (1 proposal/second).
That ought to be pretty safe.  Otherwise, we start trimming to soon and a
slow sync will just have to restart when it finishes.

Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 71ebfe7e1abe4795b46cf00dfe1b03d1893368b0)

Conflicts:

src/common/config_opts.h

src/common/config_opts.h

index e97a055f6ce4a1cf1b04f19ff4f6fa98883da124..2b369ecf9ee176d13bcd3318e9ef3c4737316c09 100644 (file)
@@ -203,7 +203,7 @@ OPTION(paxos_propose_interval, OPT_DOUBLE, 1.0)  // gather updates for this long
 OPTION(paxos_min_wait, OPT_DOUBLE, 0.05)  // min time to gather updates for after period of inactivity
 OPTION(paxos_trim_min, OPT_INT, 500)  // number of extra proposals tolerated before trimming
 OPTION(paxos_trim_max, OPT_INT, 1000) // max number of extra proposals to trim at a time
-OPTION(paxos_trim_disabled_max_versions, OPT_INT, 100) // maximum amount of versions we shall allow passing by without trimming
+OPTION(paxos_trim_disabled_max_versions, OPT_INT, 108000) // maximum amount of versions we shall allow passing by without trimming
 OPTION(paxos_service_trim_min, OPT_INT, 500) // minimum amount of versions to trigger a trim (0 disables it)
 OPTION(paxos_service_trim_max, OPT_INT, 1000) // maximum amount of versions to trim during a single proposal (0 disables it)
 OPTION(clock_offset, OPT_DOUBLE, 0) // how much to offset the system clock in Clock.cc