All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.cluster.routing.allocation.decider.ShardsLimitAllocationDecider.class Maven / Gradle / Ivy

????4?Scom/groupbyinc/flux/cluster/routing/allocation/decider/ShardsLimitAllocationDeciderHcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider!ShardsLimitAllocationDecider.java4com/groupbyinc/flux/common/settings/Setting$Property+com/groupbyinc/flux/common/settings/SettingProperty%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandles
LookupNAMELjava/lang/String;shards_limitclusterShardLimitI#INDEX_TOTAL_SHARDS_PER_NODE_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;BLcom/groupbyinc/flux/common/settings/Setting;%CLUSTER_TOTAL_SHARDS_PER_NODE_SETTINGf(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V
	getB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;!"
	#java/lang/Integer%intValue()I'(
&)	+"java/lang/invoke/LambdaMetafactory-metafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;/0
.12(Ljava/lang/Object;)V4setClusterShardLimit(I)V67
89(Ljava/lang/Integer;)V;acceptt(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/ShardsLimitAllocationDecider;)Ljava/util/function/Consumer;=>?3com/groupbyinc/flux/common/settings/ClusterSettingsAaddSettingsUpdateConsumerM(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)VCD
BEthisULcom/groupbyinc/flux/cluster/routing/allocation/decider/ShardsLimitAllocationDecider;settings.Lcom/groupbyinc/flux/common/settings/Settings;clusterSettings5Lcom/groupbyinc/flux/common/settings/ClusterSettings;canAllocate?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;'(Ljava/lang/Object;Ljava/lang/Object;)ZOlambda$canAllocate$0)(Ljava/lang/Integer;Ljava/lang/Integer;)ZQR
STRtest"()Ljava/util/function/BiPredicate;WXYdoDecide(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Ljava/util/function/BiPredicate;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;[\
]shardRouting2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;node1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
allocationBLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;	canRemainlambda$canRemain$1fR
ghY@com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocationkmetaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;mn
lo0com/groupbyinc/flux/cluster/routing/ShardRoutingqindex#()Lcom/groupbyinc/flux/index/Index;st
ru-com/groupbyinc/flux/cluster/metadata/MetaDatawgetIndexSafeW(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;yz
x{	}2com/groupbyinc/flux/cluster/metadata/IndexMetaDatagetSettings0()Lcom/groupbyinc/flux/common/settings/Settings;??
??IJ	?p(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;!?
	??com/groupbyinc/flux/cluster/routing/allocation/decider/Decision?YESALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;??	??>total shard limits are disabled: [index: %d, cluster: %d] <= 0?java/lang/Object?valueOf(I)Ljava/lang/Integer;??
&?decision?(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;??
l?/com/groupbyinc/flux/cluster/routing/RoutingNode?iterator()Ljava/util/Iterator;??
??java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????
relocating??
r?com/groupbyinc/flux/index/Index?equals(Ljava/lang/Object;)Z??
??java/util/function/BiPredicate?WO??NO??	??Dtoo many shards [%d] allocated to this node, cluster setting [%s=%d]?getKey()Ljava/lang/String;??
	?Qtoo many shards [%d] allocated to this node for index [%s], index setting [%s=%d]?getIndexName??
r?bthe shard count [%d] for this node is under the index limit [%d] and cluster level node limit [%d]?	nodeSharddeciderHLjava/util/function/BiPredicate; Ljava/util/function/BiPredicate;indexMd4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;indexShardLimitindexShardCountnodeShardCount?(Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;3total shard limits are disabled: [cluster: %d] <= 0?Mthe shard count [%d] for this node is under the cluster level node limit [%d]?countLjava/lang/Integer;limit()V.index.routing.allocation.total_shards_per_node?Dynamic6Lcom/groupbyinc/flux/common/settings/Setting$Property;??	?
IndexScope??	?
intSettingz(Ljava/lang/String;II[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
	?0cluster.routing.allocation.total_shards_per_node?	NodeScope??	?
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTable0(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Ljava/util/function/BiPredicate;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;BootstrapMethods
SourceFileInnerClasses!?B??	?n$*+?*? +?$?&?*?,,? *?@?F?? $GH$IJ$KL?MNO#P67?>*?,??GH?
STMN?U
*+,-?Z?^??*
GH
_`
ab
cd?XeN?U
*+,-?j?^??*
GH
_`
ab
cd?][\?~L-?p+?v?|:?~??*?????&?*6*?,6?(?#-?????Y??SY??S???66	,??:

???2
???r:??????	?v+?v????????@	???????,-?????Y	??SY? ??SY??S????G???????3-?????Y??SY+??SY?~??SY??S???-?????Y	??SY??SY??S????pv ?`LGHL_`LabLcdL??
???$(?*"W??Z??	?L???nc
d$g*i4jDkPjTnWoZpvr~s?u?v?w?y?{?|?~?|????? ?$?4?H??$?T???? r???A?H??M??^?*?,>?,?????Y??S???6+??:??? ???r:??????????1?+,?????Y??SY? ??SY??S???,?????Y??SY??S????>??`?GH?ab?cd?#~??J??	??? ?#???G?J?M?P?Z?j?~????????? ??? r?1
fR?P*?*+?*?????????]?@
QR?P*?*+?*?????????X?@???]5??Y??SY??S??~??Y??SY??S?? ??@AH.I4H? 35:<3PUV3PiV??	
@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy