Skip to content

Commit a28d418

Browse files
committed
lookup for the primary even if it moved to another region
1 parent 3f253f2 commit a28d418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/haproxy.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ backend bk_db
3434
option httpchk GET /flycheck/role
3535
http-check expect string primary
3636
http-check disable-on-404
37-
server-template pg 10 $PRIMARY_REGION.$FLY_APP_NAME.internal:5433 check port 5500 resolvers flydns resolve-prefer ipv6 init-addr none on-marked-down shutdown-sessions
37+
server-template pg 10 $FLY_APP_NAME.internal:5433 check port 5500 resolvers flydns resolve-prefer ipv6 init-addr none on-marked-down shutdown-sessions
3838
server pg [$PG_LISTEN_ADDRESS]:5433 check backup port 5500 on-marked-down shutdown-sessions

0 commit comments

Comments
 (0)