MCPcopy Create free account
hub / github.com/PostHog/duckgres / AllSessionStatuses

Method AllSessionStatuses

controlplane/multitenant.go:121–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121func (a *orgRouterAdapter) BeginDrain() {
122 a.metadataSessions.KillAll()
123 a.router.BeginDrain()
124}
125
126func (a *orgRouterAdapter) ShutdownAll() {
127 a.metadataSessions.KillAll()
128 a.router.ShutdownAll()
129}
130
131func (a *orgRouterAdapter) ReleaseIdleHotWorkers() int {
132 return a.router.ReleaseIdleHotWorkers()
133}
134
135func (a *orgRouterAdapter) AllOrgStats() []admin.OrgStatus {
136 stacks := a.router.AllStacks()
137 stats := make([]admin.OrgStatus, 0, len(stacks))
138 for name, stack := range stacks {
139 sessionCount := stack.Sessions.SessionCount()

Callers

nothing calls this directly

Calls 2

AllStacksMethod · 0.80
AllSessionsMethod · 0.65

Tested by

no test coverage detected