元数据节点
元数据节点是由多个元数据分片(meta partition)和基于multiRaft的对应个数的raft实例组成;每个元数据分片(meta partition)都是一个inode范围,且包含两个内存BTrees: inode BTree和dentry BTree。注意:metanode的实例最少需要3个
样例:
- {
- "role": "metanode",
- "listen": "9021",
- "prof": "9092",
- "logLevel": "debug",
- "localIP":"192.168.31.173",
- "metadataDir": "/export/Data/metanode",
- "logDir": "/export/Logs/metanode",
- "raftDir": "/export/Data/metanode/raft",
- "raftHeartbeatPort": "9093",
- "raftReplicaPort": "9094",
- "consulAddr": "http://consul.prometheus-cfs.local",
- "exporterPort": 9511,
- "totalMem": "17179869184",
- "masterAddr": [
- "192.168.31.173:80",
- "192.168.31.141:80",
- "192.168.30.200:80"
- ]
- }
启动服务
- nohup ./cfs-server -c metanode.json > nohup.out &