]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: change mon_globalid_prealloc to 10000 (from 100)
authorSage Weil <sage@redhat.com>
Sun, 18 Jan 2015 18:39:25 +0000 (10:39 -0800)
committerSage Weil <sage@redhat.com>
Mon, 21 Sep 2015 18:01:02 +0000 (14:01 -0400)
100 ids (session 100 authentications) can be consumed quite quickly if
the monitor is being queried by the CLI via scripts or on a large cluster,
especially if the propose interval is long (many seconds).  These live in
a 64-bit value and are only "lost" if we have a mon election before they
are consumed, so there's no real risk here.

Backport: giant, firefly
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 1d1215fe5f95c2bafee5b670cdae1353104636a0)

src/common/config_opts.h

index 315ac82c5e57764026edf93769a81dfdba15072c..3206749ce9431e757b3811ceda3ea1c0728a6069 100644 (file)
@@ -173,7 +173,7 @@ OPTION(mon_cache_target_full_warn_ratio, OPT_FLOAT, .66) // position between poo
 OPTION(mon_osd_full_ratio, OPT_FLOAT, .95) // what % full makes an OSD "full"
 OPTION(mon_osd_nearfull_ratio, OPT_FLOAT, .85) // what % full makes an OSD near full
 OPTION(mon_allow_pool_delete, OPT_BOOL, true) // allow pool deletion
-OPTION(mon_globalid_prealloc, OPT_INT, 100)   // how many globalids to prealloc
+OPTION(mon_globalid_prealloc, OPT_INT, 10000)   // how many globalids to prealloc
 OPTION(mon_osd_report_timeout, OPT_INT, 900)    // grace period before declaring unresponsive OSDs dead
 OPTION(mon_force_standby_active, OPT_BOOL, true) // should mons force standby-replay mds to be active
 OPTION(mon_warn_on_old_mons, OPT_BOOL, true) // should mons set health to WARN if part of quorum is old?