Fault Domain Configuration and Management
Upgrade and Configuration Items
Enabling fault domains requires adding cluster-level configuration, otherwise it cannot be distinguished. Adding a new zone is a fault domain zone or belongs to the original cross_zone.
FaultDomain bool // Default is false
crossZone bool # Cross-zone
default_priority bool # True means prefer the original zone rather than allocating from the fault domain
- For existing clusters, whether self-built or community-built, whether single zone or cross-zone, if fault domains need to be enabled, the cluster needs to support it, the master needs to be restarted, the configuration needs to be updated, and the policy for updating existing volumes needs to be managed. Otherwise, continue to use the original policy.
- If the cluster supports it but the volume does not choose to use it, continue to use the original volume policy and allocate resources according to the original policy in the original zone. Use new zone resources when existing resources are exhausted.
- If the cluster does not support it, the volume cannot enable its own fault domain policy.
|Cluster:faultDomain||Vol:crossZone||Vol:normalZonesFirst||Rules for volume to use domain|
|N||N/A||N/A||Do not support domain|
|Y||N||N/A||Write origin resources first before fault domain until origin reach threshold|
|Y||Y||N||Write fault domain only|
|Y||Y||Y||Write origin resources first before fault domain until origin reach threshold|
Fault domains solve the problem of copyset distribution without planning in multi-zone scenarios, which affects the durability of data, but existing data cannot be automatically migrated.
- After enabling fault domains, all devices in the new region will be added to the fault domain.
- The volume created will prefer the resources of the original zone.
- When creating a new volume, use the domain resources according to the configuration items in the table above. By default, if available, the original zone resources are used first.
Create a volume using fault domains
|crossZone||string||Whether to cross zones|
|normalZonesFirst||bool||Non-fault domain priority|
Check if Fault Domain is Enabled
Check Fault Domain Usage
curl -v "http://192.168.0.11:17010/admin/getDomainInfo"
Check the usage of fault domain copyset groups
Update the upper limit of non-fault domain data usage