graphql-engine/server/src-lib/Hasura/Server/Init
Brandon Simmons cc6f1c3b69 multitenant: make ourIdleGC parameters tunable, and with better defaults (SRE-191)
Context: https://hasurahq.atlassian.net/browse/SRE-10

Also remove an overlapping instance.

-----

The new flags if this needs to be tweaked on production by SRE are:

- --idleGCIdleInterval : "When the system has been idle for idleGCIdleInterval we may opportunistically try a major GC to run finalizers"
-  --idleGCMinGCInterval : "We never run an opportunistic GC unless it has been at least idleGCMinGCInterval seconds since the last major GC"
-  --idleGCMaxNoGCInterval : "If it has been longer than idleGCMaxNoGCInterval since the last major GC, force a GC to run finalizers"

Be aware: we may see memory usage grow to higher peaks than before, especially when under load

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6449
GitOrigin-RevId: 662d2f968f0d73b3b6eebb857c49aaede3312705
2022-10-19 21:36:56 +00:00
..
Arg server: switch to ghc 9.2 (2nd try) 2022-10-06 09:09:01 +00:00
Arg.hs Use NonNegative types for arg/env parsing 2022-08-17 01:09:19 +00:00
Config.hs server: Console Sentry DSN support 2022-09-27 14:51:52 +00:00
Env.hs multitenant: make ourIdleGC parameters tunable, and with better defaults (SRE-191) 2022-10-19 21:36:56 +00:00
Logging.hs server: Console Sentry DSN support 2022-09-27 14:51:52 +00:00