Skip to navigation

Tune worker settings

Tune after you’ve run the alerts in notify-only mode and counted false alarms. Tune the alert thresholds first, then use your baseline to decide when and whether to change worker settings. For which values to change and by how much, see Tune rate limits. For how to apply a change, see Configure rate limits.

Tune alert thresholds

Tune the alerts first, starting from the false alarms you counted in Notify. For each alert that fired without needing action, change one value and watch it for a week.

  • Raise the alert’s for: duration if it fired on short spikes. Shorten it only if the alert caught a real problem late. Don’t go below 5 minutes, because CPU uses 5-minute rates.
  • Raise the demand floors, 10 jobs and 50 tasks per minute, if the demand alerts fired on loads that caused no slowdown. Lower them if a real surge stayed under.
  • Change the CPU cut-offs, 70% and 85%, only if your hosts normally run above them, judging by your 30-day host CPU p95. Change the rules and the decision matrix together.

After each change, run promtool check rules and reload Prometheus.

Check capacity before and after a change

Changing task_worker_thread_count or task_worker_rate_limit in configuration requires a Platform restart, which interrupts in-flight jobs. Plan the change for a maintenance window or a quiet period. For a change without a restart, see Configure rate limits.

1

Confirm the cause

Use the decision matrix to confirm the cause is capacity, not failing workflows or a slow downstream system.

2

Record a before window

Record 24 hours of jobs started per minute, Redis queue latency, host CPU, Workflow Engine CPU, MongoDB and Redis memory, and API responsiveness.

3

Change one setting

Make one small change, following Tune rate limits.

4

Compare

Run through a representative load period, then compare the same measurements with your before window and your baseline.

5

Update the divisor

If you raised task_worker_thread_count, update the divisor in itential:wfe_cpu:ceiling_pct to the new value and reload Prometheus. Nodes still on the old value read wrongly until every node restarts, so keep notifications off until then.

Stop raising threads when host CPU stays near 80%. At 90% to 95%, reduce task_worker_thread_count immediately. For more guidance, see Adjust number of task workers.

If the Workflow Engine is at its thread ceiling with the maximum number of worker threads, add Platform nodes. If Pronghorn Core is the hot process, worker threads don’t help it.

Next steps