Repository navigation
Conversation
…ESOURCE GROUP Document the resource group features of QuestDB Enterprise 4.2.0: the cpu_limit and scheduling_policy parameters, the new resource_groups() columns, SET and RESET RESOURCE GROUP with the resource_group parameter of /execute, and the USE RESOURCE GROUP permission. Correct when CPU scheduling engages and how the parallel tasks of CREATE TABLE AS SELECT are charged.
|
🚀 Build success! Latest successful preview: https://preview-631--questdb-documentation.netlify.app/docs/ Commit SHA: 0db515a
|
- Revoking one group leaves a database-level USE RESOURCE GROUP grant in force; say so on the GRANT, REVOKE and SET RESOURCE GROUP pages. - The session or request choice does not reach COPY ... TO, /exp or QWP queries, and only connection pools that reset sessions clear it. - cpu_min_share_pct ignores CPU limits, a limit only caps, and whole-core limits have no budget; document the one-task waiver on the concept page. - A degraded scheduler stops enforcing limits and fair as well as weights, the built-in admin always runs in DEFAULT, and dropping or renaming a group affects USE grants and sessions that chose it. - Fix the CTAS charging paragraph, the COPY classification, admission slot holding, case-sensitive group names and several stale statements.
# Conflicts: # documentation/changelog.mdx # documentation/operations/resource-groups.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Document the resource group updates in QuestDB Enterprise 4.2.2. Operators can cap a group's query CPU, choose how its users share that CPU, and authorize clients to choose a group for selected work.
CPU limits and scheduling
cpu_limitandscheduling_policyto theCREATE RESOURCE GROUPandALTER RESOURCE GROUPreferences. Explain how percentages convert to cores, how whole-core limits cap worker count, and how a fractional limit uses a refilling CPU budget.CREATE TABLE ... AS SELECTholding its worker, the exception that can let one parallel task exceed the worker cap, and the CPU accounting for copies in uncapped groups.fifoorder and howfairallocates workers by user and then by query. Underfair, the next admission slot goes to a queued user with the fewest admitted queries.fairpolicy is sufficient even whenDEFAULTis the only group. Idle time accrues zero scheduling credit or debt, and an admitted query keeps its slot while waiting for CPU.Group selection and access
SET RESOURCE GROUPandRESET RESOURCE GROUPreference for PostgreSQL and QWP egress. Document theresource_groupparameter for/api/v1/sql/execute, connection reuse and reconnect behavior, and the mapped group used byCOPY ... TOand/expexports.Operations and inspection
resource_groups()columnscpu_min_share_pct,cpu_limit_pct,cpu_limit_cores, andscheduling_policy. Explain how to read the configured weight share alongside the CPU cap, and update thecurrent_resource_group()andactive_grants()references.fairscheduling are suspended until restart.Upgrade and schema replay
fifoand an unlimited CPU cap. Document the native memory reserved for reduce queues and how a replica upgraded first reads the older group catalog until the primary adds the new columns.SHOW CREATE DATABASEreplay notes and the schema-copy cookbook. Recreate custom groups, reapplyDEFAULTsettings and principal mappings, and rerun grants on individual groups after replay. ThePERMISSIONSoutput includes database-wide resource-group grants.Dependencies
Target the QuestDB Enterprise 4.2.2 release. The companion engine changes are in questdb/questdb#8146.