nodeset管理

列出所有nodeset

./udbto-cli nodeset list

ID     Cap    Zone         MetaNum    CanAllocMeta DataNum    CanAllocData
1      18     default      3          3            3          3           

获取单个nodeset信息

./udbto-cli nodeset info [NODESET ID]

NodeSet ID:       1
Capacity:         18
Zone:             default
CanAllocDataNode: 3
CanAllocMetaNode: 3
DataNodeSelector: CarryWeight
MetaNodeSelector: CarryWeight
DataTotal:     469.86 GB
DataUsed:      139.22 GB
DataAvail:     330.63 GB
MetaTotal:     10.28 GB
MetaUsed:      413.81 MB
MetaAvail:     9.88 GB

DataNodes[3]:
  ID        ADDRESS                                                              WRITABLE    STATUS      TOTAL         USED          AVAIL     
  2         192.168.2.162:15310(localhost.localdomain:15310)                     Yes         Active      369.94 GB     120.35 GB     249.59 GB 
  3         192.168.2.181:15310                                                  Yes         Active      49.96 GB      10.82 GB      39.14 GB  
  4         192.168.2.185:15310                                                  Yes         Active      49.96 GB      8.05 GB       41.90 GB  

MetaNodes[3]:
  ID        ADDRESS                                                              WRITABLE    STATUS      TOTAL         USED          AVAIL     
  6         192.168.2.181:15210                                                  Yes         Active      3.43 GB       144.91 MB     3.29 GB   
  7         192.168.2.185:15210                                                  Yes         Active      3.43 GB       138.83 MB     3.29 GB   
  5         192.168.2.162:15210(localhost.localdomain:15210)                     Yes         Active      3.43 GB       130.07 MB     3.30 GB

更新nodeset信息

./udbto-cli nodeset update [NODESET ID] [flags]

Flags:
    --dataNodeSelector string   Set the node select policy(datanode) for specify nodeset
    -h, --help                      help for update
    --metaNodeSelector string   Set the node select policy(metanode) for specify nodeset