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 boolean
static final String
ReplicaKey creation is expensive if you have lots of regions.private org.apache.hadoop.conf.Configuration
private static final Supplier<ReplicaKeyCache>
static final int
static final String
If 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.Configuration
getConf()
static ReplicaKeyCache
getReplicaKey
(RegionInfo regionInfo) void
setConf
(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:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
-
getConf
- Specified by:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
-