{"version":"2.1.274","anchor":"self-hosted-gateway-retries-postgres-connection-at-boot","canonical_anchor":"self-hosted-gateway-retries-postgres-connection-at-boot","heading":"Self-hosted gateway retries Postgres connection at boot","tier":"internal","area":"Gateway","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274\/e\/self-hosted-gateway-retries-postgres-connection-at-boot","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274","markdown":"### Self-hosted gateway retries Postgres connection at boot\n\nSelf-hosted gateway now retries the Postgres connection up to 3 times at startup instead of failing immediately\n\n**What**\n\nA new retry wrapper, internally called `Ote`, has been added around the Postgres database connection that the self-hosted gateway makes while loading its configuration at startup. If the connection attempt fails with a connection-refused-style error, it is retried up to 3 times before the gateway gives up.\n\n**Why**\n\nThis helps the gateway start up cleanly in cases where Postgres isn't quite ready yet (for example if the database container is still starting), instead of failing on the first attempt.\n\n- Area: Gateway\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 1\/5"}