Configuration details

You must configure the following properties in the HBase cluster to use the cache-aware load balancer.

hbase.master.loadbalancer.class

This property defines the load balancer class to be used in the cluster. The default load balancer used by the cluster is the stochastic load balancer.

The supported value of the property is org.apache.hadoop.hbase.master.balancer.CacheAwareLoadBalancer.

The following is an example of the configuration property.

<property>
  <name>hbase.master.loadbalancer.class</name>
  <value>org.apache.hadoop.hbase.master.balancer.CacheAwareLoadBalancer</value>
</property>

hbase.bucketcache.persistent.path

This configuration defines the location of the file where the region servers persist the prefetch information. If this configuration is set, the region servers periodically write the metadata about the HFiles cached into the bucket cache. While restarting the region server, this information is reinstated by the region server. The cache-aware load balancer relies on this information to decide on the region assignment. The cache-aware load balancer does not work if this configuration does not exist.

The following is an example of the configuration property.

<property>
  <name>hbase.bucketcache.persistent.path</name>
  <value>/hadoopfs/ephfs1/persistent_cache</value>
</property>