Operational services and tools
Armada's operational layer helps engineers observe running work, inspect worker-cluster activity, change workload state, and test platform behavior. It complements the submission and scheduling path with monitoring services, cluster actions, and command-line workflows.
Operational scope
Operational work starts with signals from Armada services and worker clusters. An engineer can then inspect job state or pod logs, apply a narrow control action, and use the same observation surfaces to confirm the result.
The main operational paths are:
| Need | Primary surface | Outcome |
|---|---|---|
| See service and cluster health | Prometheus metrics and recording rules | Trends for service health, job phases, resource requests, usage, and schedulable capacity |
| Inspect a running or recently running pod | Binoculars | Timestamped pod logs when the pod still exists |
| Pause or resume scheduling | armadactl or Binoculars | Queue, executor, or node capacity is kept out of scheduling or returned to service |
| Stop or reshape work | armadactl | Jobs are cancelled, preempted, or reprioritised at a chosen scope |
| Exercise the platform submission path | armada-load-tester | A repeatable submission run produces completion and success results |
| Exercise the Lookout data path | Broadside | A controlled database workload produces a structured performance result |
This separation keeps operator actions tied to the Armada API and worker-cluster permissions rather than requiring direct edits to scheduler state.
References: docs/system_overview.md• L15-23 cmd/…/root.go• L12-35 internal/…/server.go• L17-52
Monitoring services
Monitoring services turn internal service and Kubernetes signals into views that help an operator find a stalled job, a bad worker cluster, or a resource imbalance. Prometheus scrape definitions cover the main Armada services, while a separate cluster-monitoring chart derives queue and node views from Kubernetes metrics.
Service health signals
Each monitored service can publish a Prometheus ServiceMonitor. The deployment charts provide this opt-in path for Armada Server, Scheduler, Executor, Lookout, Binoculars, and the event and Lookout ingesters. These signals are best for service health and throughput questions; they do not replace job-level event or log inspection.
References: deployment/…/servicemonitor.yaml• L1-19 deployment/…/scheduler-servicemonitor.yaml• L1-20 deployment/…/servicemonitor.yaml• L1-20 deployment/…/servicemonitor.yaml• L1-20 deployment/…/servicemonitor.yaml• L1-20
Cluster resource signals
The executor cluster-monitoring service gives Prometheus derived views of Armada pods and worker nodes. It relates pod phase, queue, CPU request, and memory request to schedulable nodes so an operator can compare workload demand with available cluster capacity.
References: deployment/…/README.md• L1-13 deployment/…/prometheusrule.yaml• L9-52
Pod logs and node actions
Binoculars is the cluster-facing operational service. It retrieves logs for a job pod and can cordon a node, which marks the node as unavailable for new scheduling. Log access follows the caller's Kubernetes identity, while node cordon requires the specific permission for that action.
Logs are a point-in-time view rather than a durable job record. A completed job may no longer have a pod, so its logs may be unavailable after Kubernetes cleanup. The service also bounds the returned log size and includes timestamps so operators can relate output to job events.
For the monitoring and load-test view of these signals, see Monitoring and load tools.
References: internal/…/binoculars.go• L16-51 internal/…/logs.go• L21-94 internal/…/cordon.go• L26-68 deployment/…/ingressrest.yaml• L1-42
Command-line workflows
The command-line tools provide an operator-facing path to the Armada APIs. They use the same connection and authentication settings as the API clients, so the command scope is controlled by the caller's Armada permissions.
Armada administration
armadactl supports both read and control work. Its commands are grouped by the object or action being managed rather than by a separate operator subsystem.
| Workflow | What it supports |
|---|---|
| Observe | Watch events for a queue and job set, inspect queues and retry policies, and read scheduler reports for the system, a queue, or a job |
| Manage queues and policies | Create, update, read, and delete queues; assign retry policies to queues; manage retry policies; pause or resume selected queues |
| Control jobs | Submit, cancel, preempt, or reprioritise a job or job set |
| Control capacity | Pause or resume an executor; cancel or preempt work on an executor or node; remove an executor record when it is no longer valid |
Several write commands support dry-run or scoped selection. Use those controls when the desired change is uncertain, then use event watching or reports to confirm the resulting state.
For command syntax and workflow examples, see Armada CLI workflows.
References: cmd/…/root.go• L12-35 cmd/…/commands.go• L9-74 cmd/…/watch.go• L11-56 cmd/…/scheduling.go• L12-100 cmd/…/cordon.go• L13-180
Queue and retry policy management
Queues define a scheduling scope for submitted jobs. armadactl can create or replace queue settings such as ownership, priority, labels, scheduling pause state, and the ordered retry policies used for failed jobs. Queue updates replace the full queue definition, so omitted settings return to their defaults.
Retry policies are reusable rules that decide whether failed jobs should run again. Operators create or update them from a YAML or JSON file, then inspect or remove them by name. A queue update must include the intended retry-policy attachments or it clears them.
References: cmd/…/queue.go• L22-95 cmd/…/queue.go• L200-276 cmd/…/retrypolicy.go• L9-97
Machine-readable command output
Read commands for queues and retry policies can return YAML or JSON. The --output or -o choice is case-insensitive and applies before the command loads connection settings, so an invalid format fails without contacting Armada. Logs go to standard error, which keeps standard output usable for scripts and tools such as jq.
The default remains the command's normal YAML output. JSON is useful when another tool needs to select fields from queue or retry-policy data.
References: cmd/…/output.go• L11-36 cmd/…/output_test.go• L17-131 cmd/…/main.go• L10-17 cmd/…/README.md• L159-169
Armada submission load testing
armada-load-tester exercises the submission and completion path with a YAML test description. It can create the test queues, submit many jobs in parallel, watch their events until completion, and cancel work that remains when a time limit ends.
The tool can also check that every described job was submitted and that all watched jobs reached success. This makes it useful for a platform check after a deployment or configuration change, not only for measuring submission rate.
References: cmd/…/root.go• L12-40 cmd/…/loadtest.go• L20-124 pkg/…/load-test.go• L18-72 pkg/…/load-test.go• L105-190 pkg/…/load-test.go• L226-292
Broadside data-path testing
Broadside exercises the Lookout data path with a controlled workload. Its result records the test metadata, the workload configuration, and measurements for ingestion, queries, and optional bulk actions so engineers can compare runs against a known setup.
Broadside writes a versioned JSON result and keeps a generated JSON schema beside the result model. The schema is an operational contract for tools that validate or compare test output, so changes to the result shape must update the generated artifact.
References: internal/…/output.go• L13-19 internal/…/output.go• L108-112 internal/…/output.go• L443-479 internal/…/generate_schema.go• L155-175
Operational flow
An investigation combines broad signals with narrow controls. Metrics show where to look, job events show the Armada state transition, and pod logs show what happened inside the worker cluster.
The usual flow is:
flowchart LR
A[Metrics and job views] --> B[Select queue, job, executor, or node]
B --> C[Inspect events or pod logs]
C --> D{Action needed?}
D -->|No| E[Continue observation]
D -->|Yes| F[Apply scoped armadactl or Binoculars action]
F --> G[Watch events and metrics]
G --> E
H[Armada load-test specification] --> I[armada-load-tester]
I --> G
J[Broadside test configuration] --> K[Broadside]
K --> L[Compare structured result]
The observation step should identify the affected scope before a control command is used. A cluster load test follows the same loop: it creates known work, observes the resulting events, and reports whether the platform completed the expected work. Broadside produces a separate data-path result for comparison rather than acting as a live-cluster control tool.
References: cmd/…/watch.go• L11-56 cmd/…/loadtest.go• L20-124 pkg/…/load-test.go• L32-72 internal/…/output.go• L443-479
Related operational guides
- Monitoring and load tools covers the monitoring surfaces and load-test use cases in more detail.
- Armada CLI workflows covers command-line actions and operator workflows in more detail.
- Deployment and configuration explains how service and monitoring settings shape the operational surfaces.
- Platform contracts and clients explains the API and client boundaries used by the tools.
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the monitoring description aligned with every chart that adds or removes a Prometheus scrape target or cluster recording rule.
- Keep the Binoculars description aligned with the permissions and Kubernetes resources reached by its API.
- Keep the CLI workflow groups aligned with the top-level command registration so new control actions are not missed or placed in the wrong operational scope.
- Keep queue update guidance aligned with the full-replace behavior and with the retry-policy attachments sent in the same request.
- Keep output-format guidance aligned across command flags, accepted values, default YAML behavior, and standard-error logging.
- Keep the load-test guarantees aligned with the event-watch, timeout, cancellation, and success-check behavior.
- Keep Broadside result descriptions aligned with the result model, the generated JSON schema, and any tools that validate or compare saved results.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A pod is cleaned up before an operator requests its logs | Binoculars returns no logs because the source pod no longer exists | Capture or inspect logs before job cleanup when pod output is needed |
| A user lacks the node-cordon permission | The node action is denied and the node remains schedulable | Use an identity with the required permission and verify the affected node afterward |
| A queue or executor selection is broader than intended | A control command can pause, cancel, or preempt work outside the incident scope | Prefer explicit names, labels, priority classes, pools, or dry-run selection where supported |
| A queue update omits existing retry-policy attachments | The queue loses those attachments and uses default retry behavior | Treat queue updates as full replacements and pass every intended retry policy |
| An invalid output format is supplied | The read command fails before it makes an API connection | Use only yaml or json with --output or -o |
| Command logs are mixed with structured output | Scripts can fail to parse the YAML or JSON result | Keep machine-readable data on standard output and diagnostics on standard error |
| A load test reaches its timeout | Remaining test jobs are cancelled and the success check fails | Set a timeout that covers expected scheduling and execution time, then inspect the result |
| Prometheus scraping or cluster metrics are not enabled | Service and resource views are incomplete even when Armada is running | Enable the relevant ServiceMonitor and cluster monitoring resources |
| Broadside result fields change without regenerating its schema | Result consumers can reject valid output or accept an incomplete contract | Regenerate and review schema.json whenever the result model changes |
Key files
| File | Why to read it |
|---|---|
| docs/system_overview.md | Establishes the control-plane, executor, and worker-cluster relationship that the operational tools observe and affect |
| deployment/…/prometheusrule.yaml | Shows the high-level queue, pod-phase, resource, and schedulable-node signals made available to Prometheus |
| internal/…/binoculars.go | Defines the cluster-facing log and node-action boundary |
| internal/…/logs.go | Explains the operator-visible limits and lifecycle of pod log access |
| internal/…/cordon.go | Defines the permission-protected node scheduling action |
| cmd/…/root.go | Shows the complete top-level command surface for Armada administration |
| cmd/…/commands.go | Groups resource creation, deletion, update, retrieval, and scheduler reports |
| cmd/…/watch.go | Shows how operators follow job-set events |
| cmd/…/cordon.go | Shows queue and executor pause and resume workflows |
| cmd/…/queue.go | Defines queue selection, full replacement updates, and retry-policy attachments |
| cmd/…/retrypolicy.go | Defines retry-policy file management and read commands |
| cmd/…/output.go | Defines the shared YAML and JSON output choice for read commands |
| cmd/…/main.go | Keeps CLI diagnostics separate from machine-readable command output |
| cmd/…/loadtest.go | Defines the load-test command's watch, timeout, and success-check goals |
| pkg/…/load-test.go | Shows how test submissions, event tracking, completion, and cancellation relate |
| internal/…/output.go | Defines the structured result produced by Broadside runs |
| internal/…/generate_schema.go | Defines the generated JSON schema contract for Broadside results |
| internal/…/schema.json | Provides the generated artifact used to describe and validate Broadside output |