Skip to main content

Overview

The Orchestration engine is a horizontally scalable service. Multiple engine worker processes can run on a single controller node or across multiple controller nodes, sharing work through a message queue. In convergence mode, the engine distributes individual resource operations across all available workers, enabling parallel provisioning of independent resources within a single stack.
Administrator Access Required — This operation requires the admin role. Contact your Polystack administrator if you do not have sufficient permissions.

Engine Worker Architecture


Worker Configuration

Engine Workers Per Node

The heat_engine_workers setting controls how many engine worker processes run on each controller node. Each worker is an independent process that picks up tasks from the message queue.
In the deployment console, navigate to Configuration → Services → Orchestration and adjust the Engine Workers slider. A common starting point is 2–4 workers per CPU core available on the controller node.

Worker Sizing Guidelines

Engine workers are I/O bound (waiting on cloud service API calls), not CPU bound. You can safely set heat_engine_workers higher than the physical CPU count. Monitor the message queue depth in Monitoring to identify bottlenecks.

Convergence Mode

Convergence mode enables the engine to process independent resources in a stack concurrently across all available workers. This significantly reduces total stack creation time for large templates.
Enable convergence in globals
Convergence mode requires the database to be accessible from all engine workers simultaneously. Ensure your database connection pool is sized appropriately: heat_db_max_pool_size should be at least heat_engine_workers * 2.

Performance Tuning


Monitoring Engine Health

List active engine services
Expected output — all services show status: up:
Set up an alert in Monitoring for orchestration_engine_up == 0 to detect engine worker failures before they affect user deployments.

Next Steps

Configuration

Full configuration reference for the Orchestration service

Security

Trust-based authorization and policy configuration

Architecture

Engine internals and dependency resolution design

Admin Troubleshooting

Resolve engine worker failures and performance degradation