File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -2578,6 +2578,38 @@ Sharding Parameters
25782578 - :parameter:`ShardingTaskExecutorPoolMinSize`
25792579
25802580
2581+ .. parameter:: loadRoutingTableOnStartup
2582+
2583+ .. versionadded:: 4.2.20
2584+
2585+ Type: boolean
2586+
2587+ *Default*: true
2588+
2589+ |mongos-only|
2590+
2591+ Configures a :binary:`~bin.mongos` instance to preload the routing
2592+ table for a sharded cluster on startup. With this setting
2593+ enabled, the :binary:`~bin.mongos` caches the cluster-wide routing
2594+ table for each sharded collection as part of its startup procedure,
2595+ before it begins accepting client connections.
2596+
2597+ Without this setting enabled, the :binary:`~bin.mongos` only loads
2598+ a routing table as needed for incoming client connections, and only
2599+ loads the specific routing table for the namespace of a given
2600+ request.
2601+
2602+ A :binary:`~bin.mongos` instance with the
2603+ :parameter:`loadRoutingTableOnStartup` parameter enabled may
2604+ experience longer startup times, but will result in faster servicing
2605+ of initial client connections once started.
2606+
2607+ :parameter:`loadRoutingTableOnStartup` is enabled by default.
2608+
2609+ You can only set this parameter on startup, use the
2610+ :setting:`setParameter` configuration file setting or the
2611+ :option:`--setParameter <mongos --setParameter>` command line option.
2612+
25812613.. parameter:: migrateCloneInsertionBatchDelayMS
25822614
25832615 .. versionadded:: 4.0.5
You can’t perform that action at this time.
0 commit comments