Skip to content

Conversation

hao-tk
Copy link

@hao-tk hao-tk commented Jul 1, 2025

We've seen logs pointing to dns issues after restarting control plane instances. Seeing these logs on existing pgbouncer instances on new connections created after the control plane restart. We're connecting to RDS within the same region. Seems like others are having similar issues: pgbouncer/pgbouncer#1119

WARNING DNS lookup failed: xxxx.yyyy.zzzz.rds.amazonaws.com: result=-4
xxxxxx@(bad-af):0 closing because: server DNS lookup failed (age=14s)
xxxxxx@ip:port closing because: server login has been failing, cached error: server DNS lookup failed (server_login_retry) (age=3430s)
WARNING C-0xdeadbeef: xxxxxx@ip:port pooler error: server login has been failing, cached error: server DNS lookup failed (server_login_retry)

@hao-tk hao-tk force-pushed the hao/use-c-ares-pgbouncer-image branch 3 times, most recently from df8dd9f to 85bae79 Compare July 1, 2025 23:50
Signed-off-by: Hao Su <hao@turnkey.io>
@hao-tk hao-tk force-pushed the hao/use-c-ares-pgbouncer-image branch from 85bae79 to 2e8b13c Compare July 1, 2025 23:51
@@ -23,7 +23,7 @@ ARG PGBOUNCER_VERSION
# Install build dependencies.
RUN set -ex; \
apt-get update && apt-get upgrade -y; \
apt-get install -y --no-install-recommends curl make pkg-config libevent-dev build-essential libssl-dev libudns-dev openssl ; \
apt-get install -y --no-install-recommends curl make pkg-config libevent-dev build-essential libssl-dev libudns-dev libc-ares2 libc-ares-dev openssl ; \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would we be able to remove libudns-dev from the list now that --with-udns is removed below?

@@ -50,7 +50,7 @@ LABEL name="PgBouncer Container Images" \

RUN set -ex; \
apt-get update && apt-get upgrade -y; \
apt-get install -y libevent-dev libssl-dev libudns-dev libvshadow-utils findutils; \
apt-get install -y libevent-dev libssl-dev libudns-dev libvshadow-utils findutils libc-ares2 libc-ares-dev; \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you wouldn't want the -dev package in the final image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants