From e057ca9147c94f19443524c1195eb67101ab9d94 Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Mon, 23 Nov 2026 21:35:54 +1100 Subject: [PATCH] Raise consul nginx proxy_read_timeout to 360s (#582) OpenTofu's consul backend holds its state lock via blocking KV GETs that use consul's default 5m wait (plus up to wait/16 jitter). The consul.service.consul proxy uses the nginx module's 90s proxy_read_timeout, so nginx 504s the long-poll and the lock is lost mid-apply. - set nginx::proxy_read_timeout to 360s for the consul role Reviewed-on: https://git.unkin.net/unkin/puppet-prod/pulls/582 Co-authored-by: unkin-agent Co-committed-by: unkin-agent --- hieradata/roles/infra/storage/consul.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/hieradata/roles/infra/storage/consul.yaml b/hieradata/roles/infra/storage/consul.yaml index 1dd60d8..9a95b21 100644 --- a/hieradata/roles/infra/storage/consul.yaml +++ b/hieradata/roles/infra/storage/consul.yaml @@ -44,6 +44,7 @@ profiles::nginx::simpleproxy::nginx_aliases: profiles::nginx::simpleproxy::proxy_port: 8500 profiles::nginx::simpleproxy::proxy_path: '/' nginx::client_max_body_size: 512M +nginx::proxy_read_timeout: '360s' # consul profiles::consul::client::node_rules: