Documentation ¶
Index ¶
- Variables
- type Agent
- func (*Agent) Descriptor() ([]byte, []int)deprecated
- func (x *Agent) GetAddresses() []string
- func (x *Agent) GetContainers() map[string]*containerv1.Container
- func (x *Agent) GetDraining() bool
- func (x *Agent) GetEnabled() bool
- func (x *Agent) GetId() string
- func (x *Agent) GetRegisteredTime() *timestamp.Timestamp
- func (x *Agent) GetResourcePools() []string
- func (x *Agent) GetSlotStats() *SlotStats
- func (x *Agent) GetSlots() map[string]*Slot
- func (x *Agent) GetVersion() string
- func (*Agent) ProtoMessage()
- func (x *Agent) ProtoReflect() protoreflect.Message
- func (x *Agent) Reset()
- func (x *Agent) String() string
- type DeviceStats
- func (*DeviceStats) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceStats) GetDisabled() int32
- func (x *DeviceStats) GetDraining() int32
- func (x *DeviceStats) GetStates() map[string]int32
- func (x *DeviceStats) GetTotal() int32
- func (*DeviceStats) ProtoMessage()
- func (x *DeviceStats) ProtoReflect() protoreflect.Message
- func (x *DeviceStats) Reset()
- func (x *DeviceStats) String() string
- type Slot
- func (*Slot) Descriptor() ([]byte, []int)deprecated
- func (x *Slot) GetContainer() *containerv1.Container
- func (x *Slot) GetDevice() *devicev1.Device
- func (x *Slot) GetDraining() bool
- func (x *Slot) GetEnabled() bool
- func (x *Slot) GetId() string
- func (*Slot) ProtoMessage()
- func (x *Slot) ProtoReflect() protoreflect.Message
- func (x *Slot) Reset()
- func (x *Slot) String() string
- type SlotStats
- func (*SlotStats) Descriptor() ([]byte, []int)deprecated
- func (x *SlotStats) GetBrandStats() map[string]*DeviceStats
- func (x *SlotStats) GetTypeStats() map[string]*DeviceStats
- func (*SlotStats) ProtoMessage()
- func (x *SlotStats) ProtoReflect() protoreflect.Message
- func (x *SlotStats) Reset()
- func (x *SlotStats) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_determined_agent_v1_agent_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { // The unique id of the agent. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The time when the agent registered with the master. RegisteredTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=registered_time,json=registeredTime,proto3" json:"registered_time,omitempty"` // A map of slot id to each slot of this agent. Slots map[string]*Slot `` /* 151-byte string literal not displayed */ // A map of container id to all containers assigned to this agent. Containers map[string]*containerv1.Container `` /* 161-byte string literal not displayed */ // The addresses of the agent. Addresses []string `protobuf:"bytes,7,rep,name=addresses,proto3" json:"addresses,omitempty"` // Flag notifying if containers can be scheduled on this agent. Enabled bool `protobuf:"varint,8,opt,name=enabled,proto3" json:"enabled,omitempty"` // Flag notifying if this agent is in the draining mode: current containers // will be allowed to finish but no new ones will be scheduled. Draining bool `protobuf:"varint,9,opt,name=draining,proto3" json:"draining,omitempty"` // The Determined version that this agent was built from. Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` // The name of the resource pools the agent is in. Only slurm can contain // multiples. ResourcePools []string `protobuf:"bytes,6,rep,name=resource_pools,json=resourcePools,proto3" json:"resource_pools,omitempty"` // The slot stats for this agent. SlotStats *SlotStats `protobuf:"bytes,11,opt,name=slot_stats,json=slotStats,proto3" json:"slot_stats,omitempty"` // contains filtered or unexported fields }
Agent is a pool of resources where containers are run.
func (*Agent) Descriptor
deprecated
func (*Agent) GetAddresses ¶
func (*Agent) GetContainers ¶
func (x *Agent) GetContainers() map[string]*containerv1.Container
func (*Agent) GetDraining ¶
func (*Agent) GetEnabled ¶
func (*Agent) GetRegisteredTime ¶
func (*Agent) GetResourcePools ¶
func (*Agent) GetSlotStats ¶
func (*Agent) GetVersion ¶
func (*Agent) ProtoMessage ¶
func (*Agent) ProtoMessage()
func (*Agent) ProtoReflect ¶
func (x *Agent) ProtoReflect() protoreflect.Message
type DeviceStats ¶
type DeviceStats struct { // The number of slots in each state if there's an associated container. States map[string]int32 `` /* 154-byte string literal not displayed */ // the number of draining slots. Draining int32 `protobuf:"varint,2,opt,name=draining,proto3" json:"draining,omitempty"` // the number of disabled slots. Disabled int32 `protobuf:"varint,3,opt,name=disabled,proto3" json:"disabled,omitempty"` // the total number of slots. Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
DeviceStats contains statistics about a single device group.
func (*DeviceStats) Descriptor
deprecated
func (*DeviceStats) Descriptor() ([]byte, []int)
Deprecated: Use DeviceStats.ProtoReflect.Descriptor instead.
func (*DeviceStats) GetDisabled ¶
func (x *DeviceStats) GetDisabled() int32
func (*DeviceStats) GetDraining ¶
func (x *DeviceStats) GetDraining() int32
func (*DeviceStats) GetStates ¶
func (x *DeviceStats) GetStates() map[string]int32
func (*DeviceStats) GetTotal ¶
func (x *DeviceStats) GetTotal() int32
func (*DeviceStats) ProtoMessage ¶
func (*DeviceStats) ProtoMessage()
func (*DeviceStats) ProtoReflect ¶
func (x *DeviceStats) ProtoReflect() protoreflect.Message
func (*DeviceStats) Reset ¶
func (x *DeviceStats) Reset()
func (*DeviceStats) String ¶
func (x *DeviceStats) String() string
type Slot ¶
type Slot struct { // The unqiue id of the slot for a given agent. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The individual resource this slot wraps. Device *devicev1.Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` // Flag notifying if containers can be scheduled on this slot. Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` // Container that is currently running on this agent. It is unset if there is // no container currently running on this slot. Container *containerv1.Container `protobuf:"bytes,4,opt,name=container,proto3" json:"container,omitempty"` // Flag notifying if this slot is in the draining mode: current containers // will be allowed to finish but no new ones will be scheduled. Draining bool `protobuf:"varint,5,opt,name=draining,proto3" json:"draining,omitempty"` // contains filtered or unexported fields }
Slot wraps a single device on the agent.
func (*Slot) Descriptor
deprecated
func (*Slot) GetContainer ¶
func (x *Slot) GetContainer() *containerv1.Container
func (*Slot) GetDraining ¶
func (*Slot) GetEnabled ¶
func (*Slot) ProtoMessage ¶
func (*Slot) ProtoMessage()
func (*Slot) ProtoReflect ¶
func (x *Slot) ProtoReflect() protoreflect.Message
type SlotStats ¶
type SlotStats struct { // Map of device type to device stats. TypeStats map[string]*DeviceStats `` /* 176-byte string literal not displayed */ // Map of device brands to device stats. BrandStats map[string]*DeviceStats `` /* 179-byte string literal not displayed */ // contains filtered or unexported fields }
SlotStats contains statistics about a set of slots.
func (*SlotStats) Descriptor
deprecated
func (*SlotStats) GetBrandStats ¶
func (x *SlotStats) GetBrandStats() map[string]*DeviceStats
func (*SlotStats) GetTypeStats ¶
func (x *SlotStats) GetTypeStats() map[string]*DeviceStats
func (*SlotStats) ProtoMessage ¶
func (*SlotStats) ProtoMessage()
func (*SlotStats) ProtoReflect ¶
func (x *SlotStats) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.