Administration
fly workers
To list the currently registered workers, including additional metadata, run:
This can be useful for monitoring the status of your workers, if you suspect that one keeps dropping out of the pool or getting tasked with too many containers, etc.
fly prune-worker
To remove a stalled, landing, landed, or retiring worker, run:
To prune all stalled workers, run:
This is for those cases where you know a worker is not coming back.
Note
Running workers cannot be pruned, since they'll just re-register themselves anyway.
fly land-worker
To initiate landing of a worker and eventually (after draining) cause it to exit, run:
fly containers
To list the active containers across all your workers, run:
This can be useful when discovering the containers available for fly intercepting.
fly volumes
To list the active volumes across all your workers, run:
This can be useful to observe the caches warming across your cluster, and could be a good indicator of disk use.
fly curl
To execute an arbitrary API request, you can run something like the following:
This command is just a shim that runs curl under the hood. To pass flags to curl, pass a -- argument after the
path so that fly can distinguish them from its own flags:
fly -t example curl /api/v1/builds -- \
-X PUT \
-H "Content-type: application/json" \
-d @plan.json
Note
If you use this command the assumption is that you know what you're doing. If you find yourself using this command often, let us know - perhaps there's a missing command!