Updated Production Setup (markdown)

Chris Lu 2020-04-09 14:41:07 -07:00
parent 34f84a6f15
commit 41420a44db

@ -63,23 +63,29 @@ Additional notes:
Adding volume servers is easy. Actually this is much easier than most other systems.
#### For machine with one disk to use
* **For machine with one disk to use**
Run this to setup:
```
weed volume -master=ip1:9333,ip2:9333,ip3:9333 -dataCenter=dc1 -rack=rack1 -dir=/data/seaweedfs/volume -ip=xxx.xxx.xxx.xxx -max=0
```
#### For machine with multiple disks
* **For machine with multiple disks**
Configure the `-dir` to be comma separated directory list, and set `-max` for corresponding directories, assuming the `/data/seaweedfs/volume[x]` are on different disks.
```
weed volume -master=ip1:9333,ip2:9333,ip3:9333 -dataCenter=dc1 -rack=rack1 -ip=xxx.xxx.xxx.xxx -dir=/data/seaweedfs/volume1,/data/seaweedfs/volume2,/data/seaweedfs/volume3 -max=0,0,0
```
Do not use directories on the same disk. The automatic volume count limit will double count the capacity.
Do not use multiple directories on the same disk. The automatic volume count limit will double count the capacity.
#### For machine with multiple disks
You can also create multiple volume servers on different ports.
* **For machine with multiple disks**
You can also create multiple volume servers on different ports. It could be easier for changing disks.
```
weed volume -master=ip1:9333,ip2:9333,ip3:9333 -dataCenter=dc1 -rack=rack1 -dir=/data/seaweedfs/volume -ip=xxx.xxx.xxx.xxx -max=0
weed volume -master=ip1:9333,ip2:9333,ip3:9333 -dataCenter=dc1 -rack=rack1 -dir=/data/seaweedfs/volume1 -ip=xxx.xxx.xxx.xxx -max=0 -port=8081
weed volume -master=ip1:9333,ip2:9333,ip3:9333 -dataCenter=dc1 -rack=rack1 -dir=/data/seaweedfs/volume2 -ip=xxx.xxx.xxx.xxx -max=0 -port=8082
weed volume -master=ip1:9333,ip2:9333,ip3:9333 -dataCenter=dc1 -rack=rack1 -dir=/data/seaweedfs/volume3 -ip=xxx.xxx.xxx.xxx -max=0 -port=8083
```
Additional notes: