mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 03:29:55 +08:00
allow optionally change volume max count
This commit is contained in:
@@ -9,11 +9,17 @@ case "$1" in
|
|||||||
|
|
||||||
'volume')
|
'volume')
|
||||||
ARGS="-dir=/data -max=0"
|
ARGS="-dir=/data -max=0"
|
||||||
|
if [[ $@ == *"-max="* ]]; then
|
||||||
|
ARGS="-dir=/data"
|
||||||
|
fi
|
||||||
exec /usr/bin/weed $@ $ARGS
|
exec /usr/bin/weed $@ $ARGS
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'server')
|
'server')
|
||||||
ARGS="-dir=/data -volume.max=0 -master.volumePreallocate -master.volumeSizeLimitMB=1024"
|
ARGS="-dir=/data -volume.max=0 -master.volumePreallocate -master.volumeSizeLimitMB=1024"
|
||||||
|
if [[ $@ == *"-volume.max="* ]]; then
|
||||||
|
ARGS="-dir=/data -master.volumePreallocate -master.volumeSizeLimitMB=1024"
|
||||||
|
fi
|
||||||
exec /usr/bin/weed $@ $ARGS
|
exec /usr/bin/weed $@ $ARGS
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user