Overview
The cluster module enables distributed agent execution across multiple worker instances. Each cluster worker can execute jobs independently while reporting back to the main event handler.Cluster management is an advanced feature for scaling agent job execution across multiple machines or containers.
Exports
thepopebot/cluster
React components for cluster management UI:
ClustersLayout
Layout component for cluster management pages.
ClustersPage
Dashboard showing all registered cluster workers and their status.
ClusterRolesPage
Page for managing cluster worker roles and permissions.
ClusterPage
Detailed view of a specific cluster worker with logs and controls.
thepopebot/cluster/actions
Server actions for cluster operations:
Cluster Webhooks
Each cluster worker has a unique webhook endpoint:Architecture
- Event Handler assigns jobs to workers
- Workers execute jobs independently
- Workers report back via webhooks
- Results are aggregated by the main handler
Use Cases
- High Volume: Process many jobs simultaneously across multiple workers
- Geographic Distribution: Run workers in different regions for lower latency
- Resource Isolation: Separate workers for different job types or clients
- Fault Tolerance: Continue processing even if individual workers fail
Related
- Architecture - Understanding the two-layer design
- Docker Agent - How individual agents execute
- Configuration - Environment setup for clusters