boulder/cmd
Samantha e0510056cc
Enhancements to SQL driver tuning via JSON config (#5235)
Historically the only database/sql driver setting exposed via JSON
config was maxDBConns. This change adds support for maxIdleConns,
connMaxLifetime, connMaxIdleTime, and renames maxDBConns to
maxOpenConns. The addition of these settings will give our SRE team a
convenient method for tuning the reuse/closure of database connections.

A new struct, DBSettings, has been added to SA. The struct, and each of
it's fields has been commented.

All new fields have been plumbed through to the relevant Boulder
components and exported as Prometheus metrics. Tests have been
added/modified to ensure that the fields are being set. There should be
no loss in coverage

Deployability concerns for the migration from maxDBConns to maxOpenConns
have been addressed with the temporary addition of the helper method
cmd.DBConfig.GetMaxOpenConns(). This method can be removed once
test/config is defaulted to using maxOpenConns. Relevant sections of the
code have TODOs added that link back to an newly opened issue.

Fixes #5199
2021-01-25 15:34:55 -08:00
..
admin-revoker Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
akamai-purger Add gRPC Health service to all Boulder services (#5093) 2020-10-06 12:14:02 -07:00
bad-key-revoker Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
boulder-ca Add logging of OCSP generation events (#5223) 2021-01-12 15:31:49 -08:00
boulder-janitor Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
boulder-publisher Add gRPC Health service to all Boulder services (#5093) 2020-10-06 12:14:02 -07:00
boulder-ra RA: Multi-issuer support for OCSP purging (#5160) 2020-11-06 13:58:32 -08:00
boulder-sa Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
boulder-va Add gRPC Health service to all Boulder services (#5093) 2020-10-06 12:14:02 -07:00
boulder-wfe Remove cmd.LoadCert in favor of core.LoadCert (#5165) 2020-11-10 13:00:46 -08:00
boulder-wfe2 Remove /issuer-cert endpoint from v2 API (#5215) 2021-01-04 11:44:50 -08:00
caa-log-checker cmd/caa-log-checker: non-zero exit when errors are found (#5041) 2020-08-27 13:57:37 -07:00
ceremony ceremony: Clarify key labels. (#5077) 2020-09-14 18:55:17 -07:00
cert-checker Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
expiration-mailer Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
expired-authz-purger2 Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
id-exporter Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
log-validator Reduce chance of log-validator having runaway output. (#4926) 2020-07-10 11:16:18 -07:00
nonce-service Add gRPC Health service to all Boulder services (#5093) 2020-10-06 12:14:02 -07:00
notify-mailer Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
ocsp-responder Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
ocsp-updater Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
orphan-finder Use error wrapping for berrors and tests (#5169) 2020-11-06 13:17:11 -08:00
testdata Switch to DSNs (#4044) 2019-02-11 10:46:07 -08:00
clock_generic.go Replace clock.Default() with clock.New() (#4761) 2020-04-08 17:23:43 -07:00
clock_integration.go Provide formatting logger functions. (#3699) 2018-05-10 11:06:29 -07:00
config.go Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
config_test.go Enhancements to SQL driver tuning via JSON config (#5235) 2021-01-25 15:34:55 -08:00
shell.go Remove cmd.LoadCert in favor of core.LoadCert (#5165) 2020-11-10 13:00:46 -08:00
shell_test.go Remove cmd.LoadCert in favor of core.LoadCert (#5165) 2020-11-10 13:00:46 -08:00