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

Method PerSessionThreads

controlplane/memory_rebalancer.go:197–199  ·  view source on GitHub ↗

PerSessionThreads returns the thread count for each session. Threads are not subdivided — every session gets the full budget.

()

Source from the content-addressed store, hash-verified

195// PerSessionThreads returns the thread count for each session.
196// Threads are not subdivided — every session gets the full budget.
197func (r *MemoryRebalancer) PerSessionThreads() int {
198 return r.threadBudget
199}
200
201// memoryLimit returns the memory limit for a session: the full budget,
202// with a floor of minMemoryPerSession (256MB).

Calls

no outgoing calls