Description
Proposal
It would be nice to be able to set startup CPU boost to Nomad Job. Provides tasks with a temporary increase in CPU resources during their startup phase. Allow tasks with heavy initialization routines (such as application bootstrapping, data migration, or pre-warming caches) to run more efficiently and start faster without permanently over-provisioning CPU resources.
The feature could be implemented as an optional task configuration parameter (for example, startup_cpu_boost
under resources
stanza) that accepts a CPU boost factor or specifies a temporary CPU quota for a configurable duration (e.g., the first 10–30 seconds of task execution). Once the startup phase completes, the task would automatically revert to its normal CPU allocation.
Use-cases
-
Faster Application Bootstrapping:
Applications with heavy initialization work (compiling assets, loading large configurations, pre-warming caches) can reduce startup latency significantly by temporarily boosting CPU resources. -
Resource-Intensive Data Migrations:
When a task performs initial data migrations or data processing on startup, a temporary CPU boost can decrease processing times and reduce overall service downtime. -
Autoscaling Improvements:
In environments where tasks are rapidly scaled up in response to demand, a startup boost ensures that new instances become fully operational more quickly, enhancing responsiveness and user experience. -
Efficient Batch Processing:
Batch jobs that require substantial computation at the beginning can complete their critical phases faster, leading to improved throughput and resource utilization without the need for permanently higher resource allocations.
Attempted Solutions
Manually edit spec and adjust resource, but:
- Nomad create new allocation, instead just update resource on existing allocation or task
- Inefficient for quick response or batch job
Metadata
Metadata
Assignees
Type
Projects
Status