feat(worker): replace aggregate asynq concurrency with per-pool governance
Split the monolithic upstream worker budget into explicit core, post-process, enrichment, maintenance, and shared elastic pools, expose live cluster capacity on the runtime dashboard, and retire the legacy asynq.concurrency setting.
This commit is contained in:
@@ -3496,11 +3496,14 @@ export default {
|
||||
detailsTitle: "Queue details",
|
||||
detailsDescription: "Live load and wait time for every processing lane.",
|
||||
poolsTitle: "Worker pools",
|
||||
poolsDescription: "Core parsing, enrichment, maintenance, and Wiki use isolated concurrency budgets.",
|
||||
perInstance: "Concurrency is per process",
|
||||
poolsDescription: "Each stage has guaranteed capacity; core and enrichment may also borrow the shared elastic pool.",
|
||||
perInstance: "Card value is cluster active/capacity",
|
||||
poolConfigured: "Per-process {value}",
|
||||
poolInstances: "{value} instances",
|
||||
poolUtilization: "{value}% utilized",
|
||||
queueCount: "{value} queues",
|
||||
weight: "Pool weight {value}",
|
||||
footnote: "Concurrency is a per-process cap (restart required); weight only controls scheduling within one pool; Active is cluster-wide.",
|
||||
footnote: "Card values show cluster active/live capacity; per-process configuration requires restart. The shared elastic pool only consumes core and enrichment queues.",
|
||||
updatedAt: "Updated at {value}",
|
||||
errors: {
|
||||
generic: "Failed to load queue stats",
|
||||
@@ -3541,18 +3544,23 @@ export default {
|
||||
},
|
||||
pools: {
|
||||
core: "Core parsing",
|
||||
postprocess: "Post-process orchestration",
|
||||
enrichment: "Enrichment",
|
||||
maintenance: "Maintenance & sync",
|
||||
shared: "Shared elastic",
|
||||
wiki: "Wiki pool",
|
||||
},
|
||||
poolDescriptions: {
|
||||
core: "Document parsing and post-process orchestration",
|
||||
core: "Guaranteed document and manual parsing capacity",
|
||||
postprocess: "Parse finalization and enrichment fan-out",
|
||||
enrichment: "Summaries, images, graph, and question generation",
|
||||
maintenance: "Source sync, batch work, and deletion cleanup",
|
||||
shared: "Borrowed by core or enrichment according to backlog",
|
||||
wiki: "Wiki content generation and global finalization",
|
||||
},
|
||||
queueNames: {
|
||||
default: "Default (document parse)",
|
||||
postprocess: "Post-process orchestration",
|
||||
summary: "Summary generation",
|
||||
sync: "Source sync",
|
||||
low: "Maintenance & batch jobs",
|
||||
@@ -3562,7 +3570,8 @@ export default {
|
||||
wiki: "Wiki ingest",
|
||||
},
|
||||
queueDescriptions: {
|
||||
default: "Document parsing, manual updates, and post-process orchestration",
|
||||
default: "Document parsing and manual updates",
|
||||
postprocess: "Parse finalization and enrichment task fan-out",
|
||||
summary: "Document and data-table summaries",
|
||||
sync: "Manual and scheduled data-source sync",
|
||||
low: "FAQ import, clone/move, batch reparse, and deletion cleanup",
|
||||
@@ -3584,7 +3593,11 @@ export default {
|
||||
default_storage_quota_gb: 'Default storage quota for new tenants (GB)',
|
||||
},
|
||||
asynq: {
|
||||
concurrency: 'Total upstream worker budget',
|
||||
core_concurrency: 'Guaranteed core parse concurrency',
|
||||
postprocess_concurrency: 'Post-process concurrency',
|
||||
enrichment_concurrency: 'Guaranteed enrichment concurrency',
|
||||
maintenance_concurrency: 'Maintenance concurrency',
|
||||
shared_concurrency: 'Shared elastic concurrency',
|
||||
wiki_concurrency: 'Wiki worker concurrency',
|
||||
},
|
||||
model: {
|
||||
@@ -3607,8 +3620,11 @@ export default {
|
||||
'Default storage quota (GB) assigned when a new tenant is created, covering vectors, originals, text, indexes, and related data. Read only at creation time — changes apply to newly created tenants only and do not retroactively update existing tenants. 0 or a negative value uses the built-in default of 10 GB.',
|
||||
},
|
||||
asynq: {
|
||||
concurrency:
|
||||
'Total per-process concurrency budget for upstream background work (excluding Wiki). It is split into isolated pools: 1/2 core parsing, 3/8 enrichment, and the remainder maintenance and sync. Minimum 3; requires a service restart.',
|
||||
core_concurrency: 'Guaranteed per-process concurrency for document and manual parsing. Core may also borrow the shared elastic pool. Minimum 1; requires a service restart.',
|
||||
postprocess_concurrency: 'Dedicated per-process concurrency for lightweight parse finalization and enrichment fan-out. Minimum 1; requires a service restart.',
|
||||
enrichment_concurrency: 'Guaranteed per-process concurrency for summaries, images, graph, and question generation. Enrichment may also borrow the shared elastic pool. Minimum 1; requires a service restart.',
|
||||
maintenance_concurrency: 'Per-process concurrency for source sync, batch work, and cleanup, hard-isolated from the user-facing pipeline. Minimum 1; requires a service restart.',
|
||||
shared_concurrency: 'Per-process elastic concurrency shared by core parsing and enrichment; whichever side has backlog borrows it automatically. Minimum 1; requires a service restart.',
|
||||
wiki_concurrency:
|
||||
'Per-process concurrency for the dedicated Wiki worker pool, isolated from upstream tasks. Minimum 1; requires a service restart.',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user