Understanding database connection behaviour to external database #10684
Closed
ggeldenhuis
started this conversation in
General
Replies: 1 comment 3 replies
-
We use the default golang sql client libraries, which use a small connection pool by default. If additional connections are necessary to accommodate client requests, new connections will be opened. I'm not sure what certificate rotation would have to do with existing connections though; certificate validation only occurs at the start of the TLS connection, the certificate is not renegotiated after the connection is up. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to configure TLS for our postgres database that k3s connects to. Postgres supports reloading config which would load the new certificates and the assumption is that postgres would then serve the new certificate on every new connection after the reload but won't be touching existing connections.
So the question is how does k3s connect to postgres, does it open up a connection and reuse it, does it open up a new connection for every database write/read or something in between. I am trying to understand the possible failure modes during a certificate renewal, which would be every 3 months.
Beta Was this translation helpful? Give feedback.
All reactions