summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-07-22 01:45:31 +0000
committerGerrit Code Review <review@openstack.org>2022-07-22 01:45:31 +0000
commit5ff37a0d5ec445919ea4f6c667cb049c6306a011 (patch)
tree402d3c2f269862de8e4958a003fcdaa74708eb2b /etc
parentc3aa1ce66c20c0c9148a4d3e22d3ff5bcd12bfdb (diff)
parentbf4edefce4990a9c8c3f6a92696af37d840d2008 (diff)
downloadswift-5ff37a0d5ec445919ea4f6c667cb049c6306a011.tar.gz
Merge "DB Replicator: Add handoff_delete option"
Diffstat (limited to 'etc')
-rw-r--r--etc/account-server.conf-sample13
-rw-r--r--etc/container-server.conf-sample13
2 files changed, 22 insertions, 4 deletions
diff --git a/etc/account-server.conf-sample b/etc/account-server.conf-sample
index 89c1ea350..ef274cbfd 100644
--- a/etc/account-server.conf-sample
+++ b/etc/account-server.conf-sample
@@ -187,8 +187,8 @@ use = egg:swift#recon
# ionice_class =
# ionice_priority =
#
-# The handoffs_only mode option is for special-case emergency
-# situations such as full disks in the cluster. This option SHOULD NOT
+# The handoffs_only and handoff_delete options are for special-case emergency
+# situations such as full disks in the cluster. These options SHOULD NOT
# BE ENABLED except in emergencies. When handoffs_only mode is enabled
# the replicator will *only* replicate from handoff nodes to primary
# nodes and will not sync primary nodes with other primary nodes.
@@ -205,6 +205,15 @@ use = egg:swift#recon
# long-term use.
#
# handoffs_only = no
+#
+# handoff_delete is the number of replicas which are ensured in swift.
+# If the number less than the number of replicas is set, account-replicator
+# could delete local handoffs even if all replicas are not ensured in the
+# cluster. The replicator would remove local handoff account database after
+# syncing when the number of successful responses is greater than or equal to
+# this number. By default(auto), handoff partitions will be
+# removed when it has successfully replicated to all the canonical nodes.
+# handoff_delete = auto
[account-auditor]
# You can override the default log routing for this app here (don't use set!):
diff --git a/etc/container-server.conf-sample b/etc/container-server.conf-sample
index e1f8482c6..93887f60a 100644
--- a/etc/container-server.conf-sample
+++ b/etc/container-server.conf-sample
@@ -197,8 +197,8 @@ use = egg:swift#recon
# ionice_class =
# ionice_priority =
#
-# The handoffs_only mode option is for special-case emergency
-# situations such as full disks in the cluster. This option SHOULD NOT
+# The handoffs_only and handoff_delete options are for special-case emergency
+# situations such as full disks in the cluster. These options SHOULD NOT
# BE ENABLED except in emergencies. When handoffs_only mode is enabled
# the replicator will *only* replicate from handoff nodes to primary
# nodes and will not sync primary nodes with other primary nodes.
@@ -215,6 +215,15 @@ use = egg:swift#recon
# long-term use.
#
# handoffs_only = no
+#
+# handoff_delete is the number of replicas which are ensured in swift.
+# If the number less than the number of replicas is set, container-replicator
+# could delete local handoffs even if all replicas are not ensured in the
+# cluster. The replicator would remove local handoff container database after
+# syncing when the number of successful responses is greater than or equal to
+# this number. By default(auto), handoff partitions will be
+# removed when it has successfully replicated to all the canonical nodes.
+# handoff_delete = auto
[container-updater]
# You can override the default log routing for this app here (don't use set!):