@@ -38,37 +38,35 @@ public class ClusterDynamicSettingsModule extends AbstractModule {
3838
3939 public ClusterDynamicSettingsModule () {
4040 clusterDynamicSettings = new DynamicSettings ();
41- clusterDynamicSettings .addDynamicSettings (
42- AwarenessAllocationDecider .CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES ,
43- AwarenessAllocationDecider .CLUSTER_ROUTING_ALLOCATION_AWARENESS_FORCE_GROUP + "*" ,
44- BalancedShardsAllocator .SETTING_INDEX_BALANCE_FACTOR ,
45- BalancedShardsAllocator .SETTING_PRIMARY_BALANCE_FACTOR ,
46- BalancedShardsAllocator .SETTING_SHARD_BALANCE_FACTOR ,
47- BalancedShardsAllocator .SETTING_THRESHOLD ,
48- ConcurrentRebalanceAllocationDecider .CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE ,
49- DisableAllocationDecider .CLUSTER_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION ,
50- DisableAllocationDecider .CLUSTER_ROUTING_ALLOCATION_DISABLE_ALLOCATION ,
51- DisableAllocationDecider .CLUSTER_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION ,
52- ElectMasterService .DISCOVERY_ZEN_MINIMUM_MASTER_NODES ,
53- FilterAllocationDecider .CLUSTER_ROUTING_INCLUDE_GROUP + "*" ,
54- FilterAllocationDecider .CLUSTER_ROUTING_EXCLUDE_GROUP + "*" ,
55- FilterAllocationDecider .CLUSTER_ROUTING_REQUIRE_GROUP + "*" ,
56- IndicesFilterCache .INDICES_CACHE_FILTER_SIZE ,
57- IndicesFilterCache .INDICES_CACHE_FILTER_EXPIRE ,
58- IndicesStore .INDICES_STORE_THROTTLE_TYPE ,
59- IndicesStore .INDICES_STORE_THROTTLE_MAX_BYTES_PER_SEC ,
60- IndicesTTLService .INDICES_TTL_INTERVAL ,
61- MetaData .SETTING_READ_ONLY ,
62- RecoverySettings .INDICES_RECOVERY_FILE_CHUNK_SIZE ,
63- RecoverySettings .INDICES_RECOVERY_TRANSLOG_OPS ,
64- RecoverySettings .INDICES_RECOVERY_TRANSLOG_SIZE ,
65- RecoverySettings .INDICES_RECOVERY_COMPRESS ,
66- RecoverySettings .INDICES_RECOVERY_CONCURRENT_STREAMS ,
67- RecoverySettings .INDICES_RECOVERY_MAX_SIZE_PER_SEC ,
68- ThreadPool .THREADPOOL_GROUP + "*" ,
69- ThrottlingAllocationDecider .CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES ,
70- ThrottlingAllocationDecider .CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES
71- );
41+ clusterDynamicSettings .addDynamicSetting (AwarenessAllocationDecider .CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES );
42+ clusterDynamicSettings .addDynamicSetting (AwarenessAllocationDecider .CLUSTER_ROUTING_ALLOCATION_AWARENESS_FORCE_GROUP + "*" );
43+ clusterDynamicSettings .addDynamicSetting (BalancedShardsAllocator .SETTING_INDEX_BALANCE_FACTOR , Validator .FLOAT );
44+ clusterDynamicSettings .addDynamicSetting (BalancedShardsAllocator .SETTING_PRIMARY_BALANCE_FACTOR , Validator .FLOAT );
45+ clusterDynamicSettings .addDynamicSetting (BalancedShardsAllocator .SETTING_SHARD_BALANCE_FACTOR , Validator .FLOAT );
46+ clusterDynamicSettings .addDynamicSetting (BalancedShardsAllocator .SETTING_THRESHOLD , Validator .NON_NEGATIVE_FLOAT );
47+ clusterDynamicSettings .addDynamicSetting (ConcurrentRebalanceAllocationDecider .CLUSTER_ROUTING_ALLOCATION_CLUSTER_CONCURRENT_REBALANCE , Validator .INTEGER );
48+ clusterDynamicSettings .addDynamicSetting (DisableAllocationDecider .CLUSTER_ROUTING_ALLOCATION_DISABLE_NEW_ALLOCATION );
49+ clusterDynamicSettings .addDynamicSetting (DisableAllocationDecider .CLUSTER_ROUTING_ALLOCATION_DISABLE_ALLOCATION );
50+ clusterDynamicSettings .addDynamicSetting (DisableAllocationDecider .CLUSTER_ROUTING_ALLOCATION_DISABLE_REPLICA_ALLOCATION );
51+ clusterDynamicSettings .addDynamicSetting (ElectMasterService .DISCOVERY_ZEN_MINIMUM_MASTER_NODES , Validator .INTEGER );
52+ clusterDynamicSettings .addDynamicSetting (FilterAllocationDecider .CLUSTER_ROUTING_INCLUDE_GROUP + "*" );
53+ clusterDynamicSettings .addDynamicSetting (FilterAllocationDecider .CLUSTER_ROUTING_EXCLUDE_GROUP + "*" );
54+ clusterDynamicSettings .addDynamicSetting (FilterAllocationDecider .CLUSTER_ROUTING_REQUIRE_GROUP + "*" );
55+ clusterDynamicSettings .addDynamicSetting (IndicesFilterCache .INDICES_CACHE_FILTER_SIZE );
56+ clusterDynamicSettings .addDynamicSetting (IndicesFilterCache .INDICES_CACHE_FILTER_EXPIRE , Validator .TIME );
57+ clusterDynamicSettings .addDynamicSetting (IndicesStore .INDICES_STORE_THROTTLE_TYPE );
58+ clusterDynamicSettings .addDynamicSetting (IndicesStore .INDICES_STORE_THROTTLE_MAX_BYTES_PER_SEC , Validator .BYTES_SIZE );
59+ clusterDynamicSettings .addDynamicSetting (IndicesTTLService .INDICES_TTL_INTERVAL , Validator .TIME );
60+ clusterDynamicSettings .addDynamicSetting (MetaData .SETTING_READ_ONLY );
61+ clusterDynamicSettings .addDynamicSetting (RecoverySettings .INDICES_RECOVERY_FILE_CHUNK_SIZE , Validator .BYTES_SIZE );
62+ clusterDynamicSettings .addDynamicSetting (RecoverySettings .INDICES_RECOVERY_TRANSLOG_OPS , Validator .INTEGER );
63+ clusterDynamicSettings .addDynamicSetting (RecoverySettings .INDICES_RECOVERY_TRANSLOG_SIZE , Validator .BYTES_SIZE );
64+ clusterDynamicSettings .addDynamicSetting (RecoverySettings .INDICES_RECOVERY_COMPRESS );
65+ clusterDynamicSettings .addDynamicSetting (RecoverySettings .INDICES_RECOVERY_CONCURRENT_STREAMS , Validator .POSITIVE_INTEGER );
66+ clusterDynamicSettings .addDynamicSetting (RecoverySettings .INDICES_RECOVERY_MAX_SIZE_PER_SEC , Validator .BYTES_SIZE );
67+ clusterDynamicSettings .addDynamicSetting (ThreadPool .THREADPOOL_GROUP + "*" );
68+ clusterDynamicSettings .addDynamicSetting (ThrottlingAllocationDecider .CLUSTER_ROUTING_ALLOCATION_NODE_INITIAL_PRIMARIES_RECOVERIES , Validator .INTEGER );
69+ clusterDynamicSettings .addDynamicSetting (ThrottlingAllocationDecider .CLUSTER_ROUTING_ALLOCATION_NODE_CONCURRENT_RECOVERIES , Validator .INTEGER );
7270 }
7371
7472 public void addDynamicSettings (String ... settings ) {
0 commit comments