diff options
| author | banjiaojuhao <banjiaojuhao@qq.com> | 2021-12-23 23:24:10 +0800 |
|---|---|---|
| committer | banjiaojuhao <banjiaojuhao@qq.com> | 2021-12-23 23:25:05 +0800 |
| commit | 083bf3a1370c3c9b119fa1c1126e481b6b7ce750 (patch) | |
| tree | caa50c2efca45af832f4a1964c637568f30420e8 /weed/shell/command_fs_configure.go | |
| parent | b541e39a2c182d8f98f5900b35f9f025825f71f6 (diff) | |
| download | seaweedfs-083bf3a1370c3c9b119fa1c1126e481b6b7ce750.tar.xz seaweedfs-083bf3a1370c3c9b119fa1c1126e481b6b7ce750.zip | |
filer server: add "datacenter, rack and datanode" for path specific configuration
Diffstat (limited to 'weed/shell/command_fs_configure.go')
| -rw-r--r-- | weed/shell/command_fs_configure.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go index 25761d580..ece805db3 100644 --- a/weed/shell/command_fs_configure.go +++ b/weed/shell/command_fs_configure.go @@ -55,6 +55,9 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io diskType := fsConfigureCommand.String("disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag") fsync := fsConfigureCommand.Bool("fsync", false, "fsync for the writes") isReadOnly := fsConfigureCommand.Bool("readOnly", false, "disable writes") + dataCenter := fsConfigureCommand.String("dataCenter", "", "assign writes to this dataCenter") + rack := fsConfigureCommand.String("rack", "", "assign writes to this rack") + dataNode := fsConfigureCommand.String("dataNode", "", "assign writes to this dataNode") volumeGrowthCount := fsConfigureCommand.Int("volumeGrowthCount", 0, "the number of physical volumes to add if no writable volumes") isDelete := fsConfigureCommand.Bool("delete", false, "delete the configuration by locationPrefix") apply := fsConfigureCommand.Bool("apply", false, "update and apply filer configuration") @@ -77,6 +80,9 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io DiskType: *diskType, VolumeGrowthCount: uint32(*volumeGrowthCount), ReadOnly: *isReadOnly, + DataCenter: *dataCenter, + Rack: *rack, + DataNode: *dataNode, } // check collection |
