Machine
struct MachineA machine of a pool, and what's running on it.
Implements Copyable, Movable
- Fields
pool: String:ec2,kubernetesorworker:<pool>.kind: String:ec2,k8sorself-hosted.id: String: What its page is named by: the instance id, the pod name, the worker token's id.name: String: The instance id, the pod name, or the worker's host name (its token's label until it has claimed).state: String:live,drainingorgone.detail: String: What it's doing:starting,running,idle (pooled),ended,idle,revoked,expired,not seen.image: Stringcpus: Int: Its vCPUs; 0 if unknown.memory_mb: Int: Its memory; 0 if unknown.runs: List[Int]seen_ago: Int: Seconds since its last heartbeat (a sample, a worker's claim, a run's heartbeat); -1 if never.process: String: What orca runs there:headorworkerof a run,orca worker, orpods.instance_type: Stringmarket: Stringuptime: Int: Seconds since it launched; -1 if unknown.cpu: Float64: Its CPU % at the last sample; -1 without one.mem_pct: Float64spark_x: List[Float64]: Its CPU over the last 10 minutes, as in Fleet.spark_y: List[Float64]token: Int: Its worker token's id; 0 if it isn't a worker.label: String: The worker token's label.expires: Stringended: String: When an instance ended, and why, in UTC; empty while it's up.run_start: Int: The run's start an instance or a pod belongs to; 0 for a worker.
live
def live(self) -> Bool