Short answer: not directly.
Clockspring does not provide a setting to cap CPU at a fixed percentage. That is intentional. CPU usage in Clockspring is an outcome of flow design, concurrency, and downstream behavior, not a knob you dial.
This article explains why and what you can control instead.
Why There Is No CPU Throttle
Clockspring is built to:
process data as fast as possible
keep pipelines moving
avoid idle resources when work exists
A hard CPU cap would:
reduce throughput unpredictably
amplify backpressure
hide real bottlenecks
create unstable performance under load
In practice, CPU throttles cause more problems than they solve.
What Actually Controls CPU Usage
CPU usage is influenced indirectly by several things you do control.
Concurrent Tasks
Each processor can run multiple concurrent tasks.
More tasks:
increases parallelism
increases CPU usage
increases context switching and GC pressure
Too many tasks can reduce throughput even while CPU rises.
Flow Design
Design choices have a major impact on CPU:
excessive splitting of records
tight loops and rapid retries
unnecessary attribute manipulation
heavy serialization and deserialization
Poor design can burn CPU without moving data forward.
Downstream Systems
When downstream systems are slow:
threads block
retries increase
CPU overhead rises
throughput drops
CPU spikes in this case are often wasted effort.
Backpressure and Queues
Backpressure slows ingestion but does not instantly reduce CPU.
When queues hover near limits:
processors wake up frequently
threads contend for work
CPU stays active with little progress
This looks like “high CPU for no reason,” but it’s a symptom of pressure.
Why OS-Level CPU Limits Are a Bad Idea
Using OS controls to cap CPU:
makes performance unpredictable
increases latency
causes uneven processing
complicates troubleshooting
You end up fighting the scheduler instead of fixing the flow.
If CPU contention exists, the better fix is:
reduce concurrency
fix downstream bottlenecks
improve flow efficiency
scale appropriately
When Reducing CPU Does Make Sense
Reducing effective CPU usage can be appropriate when:
a node is starving other critical services
concurrency is clearly too high
GC pressure is caused by oversubscription
In these cases, adjust:
concurrent tasks
scheduling strategy
batch sizes
Do not treat CPU reduction as the primary goal.
The Right Mental Model
Think of CPU as a speedometer, not a governor.
High CPU means the engine is working
Low CPU does not mean things are healthy
The question is whether distance is being covered
Throughput and stability matter more than CPU percentage.
Summary
Clockspring does not provide a direct CPU cap because CPU usage is a result, not a control.
To influence CPU behavior:
tune concurrency
fix flow design
address downstream bottlenecks
watch GC and I/O
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article