Home / Companies / Cockroach Labs / Blog / Post Details
Content Deep Dive

Goroutine Scheduling & Elastic Admission Control in CockroachDB

Blog post from Cockroach Labs

Post Details
Company
Date Published
Author
David Taylor
Word Count
3,776
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

CockroachDB v26.1 introduces an innovative approach to balancing background operations and user queries by integrating elastic admission control with a modification to the Go runtime scheduler. This combination allows background tasks—such as backups and schema changes—to utilize available CPU capacity without impacting the latency of user queries. The elastic admission control dynamically adjusts the CPU allocation for background work based on real-time scheduler latency, while a new cooperative yielding mechanism ensures that lower-priority tasks can step aside when high-priority work needs to run. This system significantly reduces scheduling delays, maintaining foreground query performance even at high CPU utilization. The approach is validated through extensive testing, showing minimal overhead and improved throughput for background operations, and is now incorporated into CockroachDB's latest version. This methodology, while currently specific to CockroachDB, has potential applications across systems needing to manage background processing alongside interactive traffic.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Observability 1 4,900 921 200 +5%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.