Node capacity locking
You can enable node capacity locking by enabling the property
yfs.nodecapacity.lock to true.
Working of node capacity locking
- Capacity check against threshold
- Every time the system checks capacity, it compares the available capacity with the threshold
defined in
yfs.nodecapacity.threshold. - Locking Behavior
- When locking is required, subsequent availability checks wait for the lock for the time
specified in
yfs.nodecapacity.timeout. - Retry Attempts
- You can configure how many times the system retries to acquire the lock using
nodecapacity.maxLockRetry. For example,nodecapacity.maxLockRetry= 2.
Summary of key properties
| Property name | Description | Default value |
|---|---|---|
yfs.nodecapacity.lock |
Enables node capacity locking. | false |
yfs.nodecapacity.threshold |
Capacity threshold in percentage. For example 20 for 20%. | 0 |
yfs.nodecapacity.timeout |
Lock wait time in seconds. | 0 that means no wait. |
nodecapacity.maxLockRetry |
Maximum retry attempts for lock acquisition. | 1 |