Skip to content

Commit b7acf92

Browse files
ldrozdz93claude
andcommitted
perf(plugin): bump batch_apply_deadlock_retry_max_count default 1 -> 3
A single retry is enough to absorb a one-shot deadlock, but real deadlock storms tend to come in short clusters as concurrent batches retry into the same lock order. Default 3 gives the plugin a small budget to walk through those clusters without bubbling the error out to the reconciler client. 0 still disables retries; operators can lower or raise it via the plugin setting. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent edd231e commit b7acf92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

netbox_diode_plugin/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ class NetBoxDiodePluginConfig(PluginConfig):
5050

5151
# Max number of retries when the batch apply endpoint hits a
5252
# Postgres deadlock (40P01) or serialization failure (40001).
53-
# 0 disables retries; default 1 means up to one retry after the
54-
# initial attempt (2 attempts total).
55-
"batch_apply_deadlock_retry_max_count": 1,
53+
# 0 disables retries; default 3 means up to three retries after
54+
# the initial attempt (4 attempts total).
55+
"batch_apply_deadlock_retry_max_count": 3,
5656
}
5757

5858

0 commit comments

Comments
 (0)