Use fallback settings in throttling decider (#47261)
This commit replaces some uses of Setting#getRaw in the throttling allocation decider settings. Instead, these settings should be using fallback settings.
This commit is contained in:
parent
bd603b0a7b
commit
98989f7b37
|
@ -68,16 +68,18 @@ public class ThrottlingAllocationDecider extends AllocationDecider {
|
||||||
Setting.intSetting("cluster.routing.allocation.node_initial_primaries_recoveries",
|
Setting.intSetting("cluster.routing.allocation.node_initial_primaries_recoveries",
|
||||||
DEFAULT_CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES, 0,
|
DEFAULT_CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES, 0,
|
||||||
Property.Dynamic, Property.NodeScope);
|
Property.Dynamic, Property.NodeScope);
|
||||||
public static final Setting<Integer> CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_INCOMING_RECOVERIES_SETTING =
|
public static final Setting<Integer> CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_INCOMING_RECOVERIES_SETTING = new Setting<>(
|
||||||
new Setting<>("cluster.routing.allocation.node_concurrent_incoming_recoveries",
|
"cluster.routing.allocation.node_concurrent_incoming_recoveries",
|
||||||
CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES_SETTING::getRaw,
|
CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES_SETTING,
|
||||||
(s) -> Setting.parseInt(s, 0, "cluster.routing.allocation.node_concurrent_incoming_recoveries"),
|
(s) -> Setting.parseInt(s, 0, "cluster.routing.allocation.node_concurrent_incoming_recoveries"),
|
||||||
Property.Dynamic, Property.NodeScope);
|
Property.Dynamic,
|
||||||
public static final Setting<Integer> CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_OUTGOING_RECOVERIES_SETTING =
|
Property.NodeScope);
|
||||||
new Setting<>("cluster.routing.allocation.node_concurrent_outgoing_recoveries",
|
public static final Setting<Integer> CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_OUTGOING_RECOVERIES_SETTING = new Setting<>(
|
||||||
CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES_SETTING::getRaw,
|
"cluster.routing.allocation.node_concurrent_outgoing_recoveries",
|
||||||
|
CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES_SETTING,
|
||||||
(s) -> Setting.parseInt(s, 0, "cluster.routing.allocation.node_concurrent_outgoing_recoveries"),
|
(s) -> Setting.parseInt(s, 0, "cluster.routing.allocation.node_concurrent_outgoing_recoveries"),
|
||||||
Property.Dynamic, Property.NodeScope);
|
Property.Dynamic,
|
||||||
|
Property.NodeScope);
|
||||||
|
|
||||||
|
|
||||||
private volatile int primariesInitialRecoveries;
|
private volatile int primariesInitialRecoveries;
|
||||||
|
|
Loading…
Reference in New Issue