gateway: answer 503 for a store outage and 429 for the rate limit, and retry both in swarm-logs and swarm-metrics
This commit is contained in:
parent
57b071cc34
commit
790cdd43c8
1 changed files with 709 additions and 125 deletions
|
|
@ -294,7 +294,10 @@ because logs are the more sensitive. Grant one with
|
|||
`swarmctl agent permissions set <agent>` (listing it with the others) or the
|
||||
create-agent screen; the setup assistant creates ruth with both, through the `ruth` archetype. An agent
|
||||
without it gets a 403 from the store's gateway when `swarm-logs` or
|
||||
`swarm-metrics` queries; a bad secret is still a 401.
|
||||
`swarm-metrics` queries; a bad secret is still a 401. A 503 means the store
|
||||
behind the gateway couldn't answer, and a 429 means the agent's host is over
|
||||
its rate. `swarm-logs` and `swarm-metrics` retry both, and neither is a missing
|
||||
permission.
|
||||
|
||||
An agent decodes its own record, in its harness
|
||||
(`hive-agent/src/swarm_permissions.rs`, through `swarm_queue_client::agent_permissions::read`),
|
||||
|
|
|
|||
Loading…
Reference in a new issue