创建多副本space后,leader分配不均衡

  • nebula 版本:1.1.0
  • 部署方式(分布式 / 单机 / Docker / DBaaS):
  • 硬件信息
  • 问题的具体描述
    创建多副本space后,leader分配不均衡

操作1:

nebula> CREATE SPACE test(PARTITION_NUM=100, REPLICA_FACTOR=3);

操作2:

nebula> SHOW HOSTS;
================================================================================================
| Ip            | Port  | Status | Leader count | Leader distribution | Partition distribution |
================================================================================================
| 192.168.8.210 | 34600 | online | 0            | test: 0             | test: 100              |
------------------------------------------------------------------------------------------------
| 192.168.8.210 | 34700 | online | 52           | test: 52            | test: 100              |
------------------------------------------------------------------------------------------------
| 192.168.8.210 | 34500 | online | 48           | test: 48            | test: 100              |
------------------------------------------------------------------------------------------------

https://docs.nebula-graph.com.cn/1.2.0/manual-CN/3.build-develop-and-administration/5.storage-service-administration/storage-balance/


做下 balance 呢?

1 个赞

那就是每次创建完space后都要执行balance吗

raft leader选举是不可控的,leader分布不平衡比较容易出现,balance leader就可以了,partition的分布是均匀的

https://docs.nebula-graph.com.cn/1.2.0/manual-CN/1.overview/2.quick-start/1.get-started/#_4

浙ICP备20010487号