[pkgsite] internal/config: reduce default max idle SQL connections

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Mar 4, 2026, 4:58:58 PM (21 hours ago) Mar 4
to Michael Pratt, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, kokoro, Go LUCI, Hyang-Ah Hana Kim, Nicholas Husin, Nicholas Husin, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
internal/config: reduce default max idle SQL connections

Prior to CL 747620, we used the database/sql.DB default idle connection
limit of 2. An increase from 2 to 10 is quite extreme. If there are many
instances, the total number of connections can be quite high.

Reduce the limit to 6, which is selected as enough to handle the
concurrent requests for median instances.
Change-Id: I38772cef6f365a65b82842f5a389e50f6a6a6964
Reviewed-by: Hyang-Ah Hana Kim <hya...@gmail.com>
kokoro-CI: kokoro <noreply...@google.com>
Auto-Submit: Michael Pratt <mpr...@google.com>
Reviewed-by: Nicholas Husin <n...@golang.org>
Reviewed-by: Nicholas Husin <hu...@google.com>
Files:
  • M internal/config/config.go
Change size: XS
Delta: 1 file changed, 2 insertions(+), 2 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Hyang-Ah Hana Kim, +1 by Nicholas Husin, +2 by Nicholas Husin
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
  • requirement satisfiedkokoro-CI-Passes: kokoro-CI+1 by kokoro
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: pkgsite
Gerrit-Branch: master
Gerrit-Change-Id: I38772cef6f365a65b82842f5a389e50f6a6a6964
Gerrit-Change-Number: 751540
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
Gerrit-Reviewer: kokoro <noreply...@google.com>
Gerrit-CC: kokoro <noreply...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages