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)
| 20 | // Pure integer math: hosts*15+99 / 100 * 10. Examples: 51->80, 95->150, |
| 21 | // 100->150, 200->300. |
| 22 | func 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. |
no outgoing calls