以下是Ubuntu下HBase性能优化策略,涵盖硬件、配置、表设计等核心方面:
vm.swappiness=0
)。-XX:+UseG1GC
)。IN_MEMORY=true
。hbase.regionserver.global.memstore.size
(默认0.4,可根据写负载调整)和hfile.block.cache.size
(读多写少场景可增大至0.5-0.6)。Bloom Filter
)减少无效磁盘扫描。Put
列表批量写入,增大Scan
缓存(如scan.setCaching(500)
)。hbase.hstore.compaction.min
和hbase.hregion.majorcompaction
减少小文件。hbase.hregionserver.thread.compaction.large
限制Compaction线程数,避免高峰期资源争抢。hbase hbck
工具检查并手动调整Region分配。参考来源: