MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / recommendedDBPoolSize

Function recommendedDBPoolSize

server-source-code/cmd/server/startup_checks.go:22–24  ·  view source on GitHub ↗

recommendedDBPoolSize returns ceil(hosts * 1.5) rounded up to the nearest 10. Pure integer math: hosts*15+99 / 100 * 10. Examples: 51->80, 95->150, 100->150, 200->300.

(hosts int)

Source from the content-addressed store, hash-verified

20// Pure integer math: hosts*15+99 / 100 * 10. Examples: 51->80, 95->150,
21// 100->150, 200->300.
22func recommendedDBPoolSize(hosts int) int {
23 return ((hosts*15 + 99) / 100) * 10
24}
25
26// warnOidcSuperadminLockoutRisk emits a WARN log at startup when the OIDC
27// configuration cannot grant the superadmin role to any user.

Callers 2

warnDBPoolUndersizedFunction · 0.85

Calls

no outgoing calls

Tested by 1