Class ReplicaKeyCache
java.lang.Object
org.apache.hadoop.hbase.master.balancer.replicas.ReplicaKeyCache
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
@Private
public final class ReplicaKeyCache
extends Object
implements org.apache.hadoop.conf.Configurable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final StringReplicaKey creation is expensive if you have lots of regions.private org.apache.hadoop.conf.Configurationprivate static final Supplier<ReplicaKeyCache>static final intstatic final StringIf memory is available, then set this to a value greater than your region count to maximize replica distribution performance.private org.apache.hbase.thirdparty.com.google.common.cache.LoadingCache<RegionInfo,ReplicaKey> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationgetConf()static ReplicaKeyCachegetReplicaKey(RegionInfo regionInfo) voidsetConf(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
CACHE_REPLICA_KEYS_KEY
ReplicaKey creation is expensive if you have lots of regions. If your HMaster has adequate memory, and you would like balancing to be faster, then you can turn on this flag to cache ReplicaKey objects.- See Also:
-
CACHE_REPLICA_KEYS_DEFAULT
- See Also:
-
REPLICA_KEY_CACHE_SIZE_KEY
If memory is available, then set this to a value greater than your region count to maximize replica distribution performance.- See Also:
-
REPLICA_KEY_CACHE_SIZE_DEFAULT
- See Also:
-
INSTANCE
-
replicaKeyCache
private volatile org.apache.hbase.thirdparty.com.google.common.cache.LoadingCache<RegionInfo,ReplicaKey> replicaKeyCache -
conf
-
-
Constructor Details
-
ReplicaKeyCache
private ReplicaKeyCache()
-
-
Method Details
-
getInstance
-
getReplicaKey
-
setConf
- Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
getConf
- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-