Skip to content

Release v2.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 26 Jan 01:06
1bb6a8f
Add database keepalive pings. (#14)

Some microservice infrastructure configurations (notably, our usage of istio on
kubernetes) will detect long-running idle connections and kill them.  This
causes an issue with the connection pooling implemented by some sql.DB drivers
that will assume that once a connection is open it will remain open
indefinitely.

This commit adds the SendKeepalivePings func to our database package so that we
can periodically send lightweight database queries and prevent the connection
from getting killed.

(+semver: feature)

Signed-off-by: Jeff Cuevas-Koch <[email protected]>