Skip to content

Commit 756fc23

Browse files
committed
chore(workflow): add volume size limit
1 parent 9d98912 commit 756fc23

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

_scripts/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ storage:
482482
storageClass: "${STORAGE_MAINNODE_TIPD_PERSISTENCE_STORAGE_CLASS}"
483483
weed:
484484
replicas: ${STORAGE_MAINNODE_WEED_REPLICAS:-1}
485+
volumePreallocate: ${STORAGE_MAINNODE_WEED_PREALLOCATE:-false}
486+
volumeSizeLimitMB: ${STORAGE_MAINNODE_WEED_SIZE_LIMIT_MB:-512}
485487
defaultReplication: "${STORAGE_MAINNODE_WEED_DEFAULT_REPLICATION:-000}"
486488
persistence:
487489
enabled: true

src/quickstart/install-workflow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ STORAGE_MAINNODE_TIPD_REPLICAS | Number of storage mainode tipd
173173
STORAGE_MAINNODE_TIPD_PERSISTENCE_SIZE | The size of the persistence space allocated to `mainnode tipd`, which is `10Gi` by default
174174
STORAGE_MAINNODE_TIPD_PERSISTENCE_STORAGE_CLASS | StorangeClass of `mainnode tipd`; default storangeclass is used by default
175175
STORAGE_MAINNODE_WEED_REPLICAS | Number of storage mainode weed replicas to deploy
176+
STORAGE_MAINNODE_WEED_PREALLOCATE | Preallocate disk space for volumes, `false` is used by default
177+
STORAGE_MAINNODE_WEED_SIZE_LIMIT_MB | Master stops directing writes to oversized volumes, `30000` is used by default
176178
STORAGE_MAINNODE_WEED_DEFAULT_REPLICATION | default replication type if not specified, which is `000` by default
177179
STORAGE_MAINNODE_WEED_PERSISTENCE_SIZE | The size of the persistence space allocated to `mainnode weed`, which is `10Gi` by default
178180
STORAGE_MAINNODE_WEED_PERSISTENCE_STORAGE_CLASS | StorangeClass of `mainnode weed`; default storangeclass is used by default

0 commit comments

Comments
 (0)