at.happyproto.admin.defs
Details · defs
| Kind | defs |
|---|---|
| Authority | admin.happyproto.at |
| Indexed |
#autoscale
objectThe autoscaler's settings and what it is waiting on.
Properties
blockedBy
stringA failed request that holds off new ones until staff retry or cancel it.
cooldownUntil
string · datetimeNo new request before this. Absent once it has passed.
costEur
stringWhat each host it orders costs a month, in euros, as a decimal string.
On in the provisioner's config, with the GitHub App set up.
hosts
integerHosts that are not retired.
inFlight
integerRequests under way: 0 or 1.
lowSince
string · datetimeSince when free capacity has been below a threshold. Absent while it is fine.
maxHosts
integerThe most hosts it may bring the fleet to.
Paused by staff: no new requests, though one under way carries on.
pausedAt
string · datetimepausedBy
string · didThe staff DID that paused it.
thresholds
ref#encryptionKey
objectAn instance's encryption key and where it is in a rotation.
Properties
blockedBy
stringWhy a rotation cannot start now, when it cannot: the code rotateEncryptionKey would refuse with.
knownValues: OperationInProgress | RotationInProgress | InstanceStopped | NotLive | RotationUnsupported | AgentUnreachable | NotSettled
Whether a rotation can start now.
failure
refThe instance's latest operation, when it failed and the instance with it. Any kind: a KeyMismatch can fail an update or an upgrade too.
operation
refThe rotate_key or retire_key operation in progress, if any.
rotatedAt
string · datetimeWhen the current key became current. Absent for the key the instance was created with.
none: one key. rotating: a new key is made but not live yet. sealing: it is live and HappyView is re-sealing what the old key sealed. retiring: the old key is being removed. failed: the instance is failed and its latest operation is a failed rotate_key or retire_key; retrying the instance sends its keys again.
knownValues: none | rotating | sealing | retiring | failed
#event
objectOne line of a request's timeline.
Properties
knownValues: requested | dispatched | step_started | step_finished | ordering | configuring | verifying | registered | failed | cancelled | retried | cancel_requested | deploy_cancelled
message
stringWhat happened, in the provisioner's words.
runUrl
string · uriThe GitHub Actions run the event came from.
#freeCapacity
objectFree capacity across the active hosts. An over-committed host counts as none.
Properties
freeDiskGb
integerfreeMemoryMb
integer#hostRequest
objectA tenant host the autoscaler asked for.
Properties
cancelRunUrl
string · uricostEur
stringThe host's monthly cost in euros, as a decimal string.
currentStep
stringThe workflow step running now.
deployRunUrl
string · uridispatchedAt
string · datetimeerror
stringWhy it failed.
finishedAt
string · datetimeA UUID.
The host's name, like tenant-4.
requestedBy
stringsystem, or the staff DID.
knownValues: requested | ordering | configuring | verifying | registered | failed | cancelling | cancelled
updatedAt
string · datetimeworkflowRunUrl
string · uri#keyFailure
objectProperties
errorCode
stringThe provisioner's error code. KeyMismatch: the host refused an apply that would drop the key the instance seals with. It needs an operator, not a retry.
knownValues: KeyMismatch
The operation's kind, as on #operation.
#sealing
objectProperties
Whether the instance runs with both keys. False when its rotate_key has not reached it, for instance because it failed: then remaining reads 0 without anything being re-sealed, and retrying the instance sends both keys again.
Values only the old key opens. The old key is retired once this reaches 0.
minimum: 0
Values neither key opens. They were unreadable before the rotation, too.
minimum: 0
#thresholds
objectWhen the autoscaler orders a host: free capacity across active hosts below either figure for sustainSecs, and no request in the last cooldownSecs.
Properties
#trigger
objectFree capacity when the request was made, and the thresholds it was below.
Properties
freeDiskGb
integerfreeMemoryMb
integerhosts
arraylowSince
string · datetimethresholds
ref#triggerHost
objectProperties
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
The autoscaler: on or paused, how many hosts it may add, what it is waiting on, and free capacity against its thresholds. Staff only.