Slurm's shared files and users: one path everywhere, accounts as Linux users
CI / test (push) Failing after 7m1s

slurm.shared mounts the site's NFS export, has an llmgw node export the path
over NFS to the Slurm machines alone (2049 in the firewall), or looks for a
file system the site mounts. slurm.users "llmgw" makes each active account a
Linux user on every Slurm machine: login from its e-mail, a UID from 200000
kept in slurm_users and never reused, its home on the shared path, its SSH
keys from the portal's Profile (or ctl slurm users keys) read by sshd from
/etc/llmgw/ssh-keys. server init --slurm chooses /shared from the first
machine and llmgw's users; --slurm-shared and --slurm-users change that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-11-12 21:34:34 +01:00
1 parent b9d20e7bba
commit d8ce573bdb
45 files changed
+2505 -79

No files matched your search

+273 -39
View File
@@ -5304,7 +5304,17 @@ type Slurm struct {
Files map[string]string `protobuf:"bytes,6,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// lent says Slurm may run jobs here now: resume the node if llmgw drained
// it. Otherwise it is drained, its jobs left to finish.
Lent bool `protobuf:"varint,7,opt,name=lent,proto3" json:"lent,omitempty"`
Lent bool `protobuf:"varint,7,opt,name=lent,proto3" json:"lent,omitempty"`
// shared is the file system every machine of the Slurm cluster sees at
// the same path; unset or with no path, none.
Shared *SlurmShared `protobuf:"bytes,8,opt,name=shared,proto3" json:"shared,omitempty"`
// manage_users has llmgw keep the Linux users below on this machine,
// and take away those it made that are no longer among them.
ManageUsers bool `protobuf:"varint,9,opt,name=manage_users,json=manageUsers,proto3" json:"manage_users,omitempty"`
Users []*SlurmUser `protobuf:"bytes,10,rep,name=users,proto3" json:"users,omitempty"`
// make_homes has this machine make the users' home directories: the one
// that exports the shared path, else the controller.
MakeHomes bool `protobuf:"varint,11,opt,name=make_homes,json=makeHomes,proto3" json:"make_homes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -5388,6 +5398,188 @@ func (x *Slurm) GetLent() bool {
return false
}
func (x *Slurm) GetShared() *SlurmShared {
if x != nil {
return x.Shared
}
return nil
}
func (x *Slurm) GetManageUsers() bool {
if x != nil {
return x.ManageUsers
}
return false
}
func (x *Slurm) GetUsers() []*SlurmUser {
if x != nil {
return x.Users
}
return nil
}
func (x *Slurm) GetMakeHomes() bool {
if x != nil {
return x.MakeHomes
}
return false
}
// SlurmShared is where the Slurm cluster's shared files come from.
type SlurmShared struct {
state protoimpl.MessageState `protogen:"open.v1"`
// path is where every machine sees them, as /shared.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// nfs is an export, host:/path, to mount at path; empty when this
// machine exports path itself (serve) or the site mounts it.
Nfs string `protobuf:"bytes,2,opt,name=nfs,proto3" json:"nfs,omitempty"`
// serve has this machine export path over NFS to clients.
Serve bool `protobuf:"varint,3,opt,name=serve,proto3" json:"serve,omitempty"`
// clients are the addresses the export answers.
Clients []string `protobuf:"bytes,4,rep,name=clients,proto3" json:"clients,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SlurmShared) Reset() {
*x = SlurmShared{}
mi := &file_llmgw_v1_agent_proto_msgTypes[49]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SlurmShared) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SlurmShared) ProtoMessage() {}
func (x *SlurmShared) ProtoReflect() protoreflect.Message {
mi := &file_llmgw_v1_agent_proto_msgTypes[49]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SlurmShared.ProtoReflect.Descriptor instead.
func (*SlurmShared) Descriptor() ([]byte, []int) {
return file_llmgw_v1_agent_proto_rawDescGZIP(), []int{49}
}
func (x *SlurmShared) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *SlurmShared) GetNfs() string {
if x != nil {
return x.Nfs
}
return ""
}
func (x *SlurmShared) GetServe() bool {
if x != nil {
return x.Serve
}
return false
}
func (x *SlurmShared) GetClients() []string {
if x != nil {
return x.Clients
}
return nil
}
// SlurmUser is a Linux user that runs jobs, the same on every machine.
type SlurmUser struct {
state protoimpl.MessageState `protogen:"open.v1"`
Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
// uid is also the user's own group's gid.
Uid uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
// name is the account's, for the GECOS field.
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Home string `protobuf:"bytes,4,opt,name=home,proto3" json:"home,omitempty"`
// ssh_keys are OpenSSH public keys, one a line of authorized_keys.
SshKeys []string `protobuf:"bytes,5,rep,name=ssh_keys,json=sshKeys,proto3" json:"ssh_keys,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SlurmUser) Reset() {
*x = SlurmUser{}
mi := &file_llmgw_v1_agent_proto_msgTypes[50]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SlurmUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SlurmUser) ProtoMessage() {}
func (x *SlurmUser) ProtoReflect() protoreflect.Message {
mi := &file_llmgw_v1_agent_proto_msgTypes[50]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SlurmUser.ProtoReflect.Descriptor instead.
func (*SlurmUser) Descriptor() ([]byte, []int) {
return file_llmgw_v1_agent_proto_rawDescGZIP(), []int{50}
}
func (x *SlurmUser) GetLogin() string {
if x != nil {
return x.Login
}
return ""
}
func (x *SlurmUser) GetUid() uint32 {
if x != nil {
return x.Uid
}
return 0
}
func (x *SlurmUser) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *SlurmUser) GetHome() string {
if x != nil {
return x.Home
}
return ""
}
func (x *SlurmUser) GetSshKeys() []string {
if x != nil {
return x.SshKeys
}
return nil
}
// SlurmStatus is what this node's Slurm daemons are doing, sent when it
// changes and every few minutes while the node has a part in Slurm.
type SlurmStatus struct {
@@ -5414,13 +5606,18 @@ type SlurmStatus struct {
// slurmdbd_running is the accounting daemon on the controller, which keeps
// the jobs' records in a MariaDB beside it.
SlurmdbdRunning bool `protobuf:"varint,10,opt,name=slurmdbd_running,json=slurmdbdRunning,proto3" json:"slurmdbd_running,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
// shared is the shared path as this machine has it: "mounted",
// "exported", "missing", or empty when there is none.
Shared string `protobuf:"bytes,11,opt,name=shared,proto3" json:"shared,omitempty"`
// users is how many of llmgw's users this machine has.
Users int32 `protobuf:"varint,12,opt,name=users,proto3" json:"users,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SlurmStatus) Reset() {
*x = SlurmStatus{}
mi := &file_llmgw_v1_agent_proto_msgTypes[49]
mi := &file_llmgw_v1_agent_proto_msgTypes[51]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -5432,7 +5629,7 @@ func (x *SlurmStatus) String() string {
func (*SlurmStatus) ProtoMessage() {}
func (x *SlurmStatus) ProtoReflect() protoreflect.Message {
mi := &file_llmgw_v1_agent_proto_msgTypes[49]
mi := &file_llmgw_v1_agent_proto_msgTypes[51]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -5445,7 +5642,7 @@ func (x *SlurmStatus) ProtoReflect() protoreflect.Message {
// Deprecated: Use SlurmStatus.ProtoReflect.Descriptor instead.
func (*SlurmStatus) Descriptor() ([]byte, []int) {
return file_llmgw_v1_agent_proto_rawDescGZIP(), []int{49}
return file_llmgw_v1_agent_proto_rawDescGZIP(), []int{51}
}
func (x *SlurmStatus) GetVersion() string {
@@ -5518,6 +5715,20 @@ func (x *SlurmStatus) GetSlurmdbdRunning() bool {
return false
}
func (x *SlurmStatus) GetShared() string {
if x != nil {
return x.Shared
}
return ""
}
func (x *SlurmStatus) GetUsers() int32 {
if x != nil {
return x.Users
}
return 0
}
var File_llmgw_v1_agent_proto protoreflect.FileDescriptor
const file_llmgw_v1_agent_proto_rawDesc = "" +
@@ -6023,7 +6234,7 @@ const file_llmgw_v1_agent_proto_rawDesc = "" +
"\x04kind\x18\x02 \x01(\tR\x04kind\x12\x10\n" +
"\x03seq\x18\x03 \x01(\x05R\x03seq\x12\x12\n" +
"\x04data\x18\x04 \x01(\fR\x04data\x12\x12\n" +
"\x04last\x18\x05 \x01(\bR\x04last\"\x8d\x02\n" +
"\x04last\x18\x05 \x01(\bR\x04last\"\xa9\x03\n" +
"\x05Slurm\x12\x1e\n" +
"\n" +
"controller\x18\x01 \x01(\bR\n" +
@@ -6034,11 +6245,28 @@ const file_llmgw_v1_agent_proto_rawDesc = "" +
"confServer\x12\x1b\n" +
"\tmunge_key\x18\x05 \x01(\fR\bmungeKey\x120\n" +
"\x05files\x18\x06 \x03(\v2\x1a.llmgw.v1.Slurm.FilesEntryR\x05files\x12\x12\n" +
"\x04lent\x18\a \x01(\bR\x04lent\x1a8\n" +
"\x04lent\x18\a \x01(\bR\x04lent\x12-\n" +
"\x06shared\x18\b \x01(\v2\x15.llmgw.v1.SlurmSharedR\x06shared\x12!\n" +
"\fmanage_users\x18\t \x01(\bR\vmanageUsers\x12)\n" +
"\x05users\x18\n" +
" \x03(\v2\x13.llmgw.v1.SlurmUserR\x05users\x12\x1d\n" +
"\n" +
"make_homes\x18\v \x01(\bR\tmakeHomes\x1a8\n" +
"\n" +
"FilesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xbd\x02\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"c\n" +
"\vSlurmShared\x12\x12\n" +
"\x04path\x18\x01 \x01(\tR\x04path\x12\x10\n" +
"\x03nfs\x18\x02 \x01(\tR\x03nfs\x12\x14\n" +
"\x05serve\x18\x03 \x01(\bR\x05serve\x12\x18\n" +
"\aclients\x18\x04 \x03(\tR\aclients\"v\n" +
"\tSlurmUser\x12\x14\n" +
"\x05login\x18\x01 \x01(\tR\x05login\x12\x10\n" +
"\x03uid\x18\x02 \x01(\rR\x03uid\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" +
"\x04home\x18\x04 \x01(\tR\x04home\x12\x19\n" +
"\bssh_keys\x18\x05 \x03(\tR\asshKeys\"\xeb\x02\n" +
"\vSlurmStatus\x12\x18\n" +
"\aversion\x18\x01 \x01(\tR\aversion\x12\x1a\n" +
"\bhardware\x18\x02 \x01(\tR\bhardware\x12%\n" +
@@ -6050,7 +6278,9 @@ const file_llmgw_v1_agent_proto_rawDesc = "" +
"\x05error\x18\b \x01(\tR\x05error\x12!\n" +
"\ffiles_sha256\x18\t \x01(\tR\vfilesSha256\x12)\n" +
"\x10slurmdbd_running\x18\n" +
" \x01(\bR\x0fslurmdbdRunning2O\n" +
" \x01(\bR\x0fslurmdbdRunning\x12\x16\n" +
"\x06shared\x18\v \x01(\tR\x06shared\x12\x14\n" +
"\x05users\x18\f \x01(\x05R\x05users2O\n" +
"\fAgentService\x12?\n" +
"\aConnect\x12\x16.llmgw.v1.AgentMessage\x1a\x18.llmgw.v1.ControlMessage(\x010\x01B\x93\x01\n" +
"\fcom.llmgw.v1B\n" +
@@ -6069,7 +6299,7 @@ func file_llmgw_v1_agent_proto_rawDescGZIP() []byte {
}
var file_llmgw_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_llmgw_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 59)
var file_llmgw_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 61)
var file_llmgw_v1_agent_proto_goTypes = []any{
(ShardStatus_State)(0), // 0: llmgw.v1.ShardStatus.State
(*AgentMessage)(nil), // 1: llmgw.v1.AgentMessage
@@ -6121,16 +6351,18 @@ var file_llmgw_v1_agent_proto_goTypes = []any{
(*TrainStatus)(nil), // 47: llmgw.v1.TrainStatus
(*TrainArtifact)(nil), // 48: llmgw.v1.TrainArtifact
(*Slurm)(nil), // 49: llmgw.v1.Slurm
(*SlurmStatus)(nil), // 50: llmgw.v1.SlurmStatus
nil, // 51: llmgw.v1.ControlMessage.TraceEntry
nil, // 52: llmgw.v1.Register.LabelsEntry
nil, // 53: llmgw.v1.Register.EngineVersionsEntry
nil, // 54: llmgw.v1.GPU.NicPathsEntry
nil, // 55: llmgw.v1.IBPort.CountersEntry
nil, // 56: llmgw.v1.Heartbeat.EngineVersionsEntry
nil, // 57: llmgw.v1.EngineWant.OfflineSha256Entry
nil, // 58: llmgw.v1.EngineProfile.EnvEntry
nil, // 59: llmgw.v1.Slurm.FilesEntry
(*SlurmShared)(nil), // 50: llmgw.v1.SlurmShared
(*SlurmUser)(nil), // 51: llmgw.v1.SlurmUser
(*SlurmStatus)(nil), // 52: llmgw.v1.SlurmStatus
nil, // 53: llmgw.v1.ControlMessage.TraceEntry
nil, // 54: llmgw.v1.Register.LabelsEntry
nil, // 55: llmgw.v1.Register.EngineVersionsEntry
nil, // 56: llmgw.v1.GPU.NicPathsEntry
nil, // 57: llmgw.v1.IBPort.CountersEntry
nil, // 58: llmgw.v1.Heartbeat.EngineVersionsEntry
nil, // 59: llmgw.v1.EngineWant.OfflineSha256Entry
nil, // 60: llmgw.v1.EngineProfile.EnvEntry
nil, // 61: llmgw.v1.Slurm.FilesEntry
}
var file_llmgw_v1_agent_proto_depIdxs = []int32{
8, // 0: llmgw.v1.AgentMessage.register:type_name -> llmgw.v1.Register
@@ -6143,7 +6375,7 @@ var file_llmgw_v1_agent_proto_depIdxs = []int32{
2, // 7: llmgw.v1.AgentMessage.kv_events:type_name -> llmgw.v1.KVEvents
47, // 8: llmgw.v1.AgentMessage.train_status:type_name -> llmgw.v1.TrainStatus
48, // 9: llmgw.v1.AgentMessage.train_artifact:type_name -> llmgw.v1.TrainArtifact
50, // 10: llmgw.v1.AgentMessage.slurm_status:type_name -> llmgw.v1.SlurmStatus
52, // 10: llmgw.v1.AgentMessage.slurm_status:type_name -> llmgw.v1.SlurmStatus
30, // 11: llmgw.v1.ControlMessage.start:type_name -> llmgw.v1.StartShard
33, // 12: llmgw.v1.ControlMessage.stop:type_name -> llmgw.v1.StopShard
34, // 13: llmgw.v1.ControlMessage.drain:type_name -> llmgw.v1.DrainShard
@@ -6161,11 +6393,11 @@ var file_llmgw_v1_agent_proto_depIdxs = []int32{
45, // 25: llmgw.v1.ControlMessage.train_start:type_name -> llmgw.v1.TrainStart
46, // 26: llmgw.v1.ControlMessage.train_cancel:type_name -> llmgw.v1.TrainCancel
49, // 27: llmgw.v1.ControlMessage.slurm:type_name -> llmgw.v1.Slurm
51, // 28: llmgw.v1.ControlMessage.trace:type_name -> llmgw.v1.ControlMessage.TraceEntry
52, // 29: llmgw.v1.Register.labels:type_name -> llmgw.v1.Register.LabelsEntry
53, // 28: llmgw.v1.ControlMessage.trace:type_name -> llmgw.v1.ControlMessage.TraceEntry
54, // 29: llmgw.v1.Register.labels:type_name -> llmgw.v1.Register.LabelsEntry
12, // 30: llmgw.v1.Register.gpus:type_name -> llmgw.v1.GPU
14, // 31: llmgw.v1.Register.fabrics:type_name -> llmgw.v1.FabricAttachment
53, // 32: llmgw.v1.Register.engine_versions:type_name -> llmgw.v1.Register.EngineVersionsEntry
55, // 32: llmgw.v1.Register.engine_versions:type_name -> llmgw.v1.Register.EngineVersionsEntry
11, // 33: llmgw.v1.Register.running_shards:type_name -> llmgw.v1.RunningShard
15, // 34: llmgw.v1.Register.weights:type_name -> llmgw.v1.LocalWeights
10, // 35: llmgw.v1.Register.storage:type_name -> llmgw.v1.Storage
@@ -6173,15 +6405,15 @@ var file_llmgw_v1_agent_proto_depIdxs = []int32{
21, // 37: llmgw.v1.Register.imex:type_name -> llmgw.v1.IMEX
0, // 38: llmgw.v1.RunningShard.state:type_name -> llmgw.v1.ShardStatus.State
27, // 39: llmgw.v1.RunningShard.compute:type_name -> llmgw.v1.Compute
54, // 40: llmgw.v1.GPU.nic_paths:type_name -> llmgw.v1.GPU.NicPathsEntry
56, // 40: llmgw.v1.GPU.nic_paths:type_name -> llmgw.v1.GPU.NicPathsEntry
13, // 41: llmgw.v1.GPU.mig:type_name -> llmgw.v1.MIGDevice
18, // 42: llmgw.v1.NodeLoad.shards:type_name -> llmgw.v1.ShardLoad
17, // 43: llmgw.v1.NodeLoad.gpus:type_name -> llmgw.v1.GPUSensor
55, // 44: llmgw.v1.IBPort.counters:type_name -> llmgw.v1.IBPort.CountersEntry
57, // 44: llmgw.v1.IBPort.counters:type_name -> llmgw.v1.IBPort.CountersEntry
20, // 45: llmgw.v1.IBPort.subnet_managers:type_name -> llmgw.v1.SubnetManager
10, // 46: llmgw.v1.Heartbeat.storage:type_name -> llmgw.v1.Storage
15, // 47: llmgw.v1.Heartbeat.weights:type_name -> llmgw.v1.LocalWeights
56, // 48: llmgw.v1.Heartbeat.engine_versions:type_name -> llmgw.v1.Heartbeat.EngineVersionsEntry
58, // 48: llmgw.v1.Heartbeat.engine_versions:type_name -> llmgw.v1.Heartbeat.EngineVersionsEntry
26, // 49: llmgw.v1.Heartbeat.provision:type_name -> llmgw.v1.ProvisionStatus
16, // 50: llmgw.v1.Heartbeat.load:type_name -> llmgw.v1.NodeLoad
19, // 51: llmgw.v1.Heartbeat.ib_ports:type_name -> llmgw.v1.IBPort
@@ -6189,21 +6421,23 @@ var file_llmgw_v1_agent_proto_depIdxs = []int32{
22, // 53: llmgw.v1.Heartbeat.gpu_fabric:type_name -> llmgw.v1.GPUFabricState
21, // 54: llmgw.v1.Heartbeat.imex:type_name -> llmgw.v1.IMEX
25, // 55: llmgw.v1.Provision.engines:type_name -> llmgw.v1.EngineWant
57, // 56: llmgw.v1.EngineWant.offline_sha256:type_name -> llmgw.v1.EngineWant.OfflineSha256Entry
59, // 56: llmgw.v1.EngineWant.offline_sha256:type_name -> llmgw.v1.EngineWant.OfflineSha256Entry
0, // 57: llmgw.v1.ShardStatus.state:type_name -> llmgw.v1.ShardStatus.State
29, // 58: llmgw.v1.ShardStatus.fetch:type_name -> llmgw.v1.FetchProgress
27, // 59: llmgw.v1.ShardStatus.compute:type_name -> llmgw.v1.Compute
31, // 60: llmgw.v1.StartShard.profile:type_name -> llmgw.v1.EngineProfile
58, // 61: llmgw.v1.EngineProfile.env:type_name -> llmgw.v1.EngineProfile.EnvEntry
60, // 61: llmgw.v1.EngineProfile.env:type_name -> llmgw.v1.EngineProfile.EnvEntry
44, // 62: llmgw.v1.EngineProfile.adapters:type_name -> llmgw.v1.LoraAdapter
59, // 63: llmgw.v1.Slurm.files:type_name -> llmgw.v1.Slurm.FilesEntry
1, // 64: llmgw.v1.AgentService.Connect:input_type -> llmgw.v1.AgentMessage
3, // 65: llmgw.v1.AgentService.Connect:output_type -> llmgw.v1.ControlMessage
65, // [65:66] is the sub-list for method output_type
64, // [64:65] is the sub-list for method input_type
64, // [64:64] is the sub-list for extension type_name
64, // [64:64] is the sub-list for extension extendee
0, // [0:64] is the sub-list for field type_name
61, // 63: llmgw.v1.Slurm.files:type_name -> llmgw.v1.Slurm.FilesEntry
50, // 64: llmgw.v1.Slurm.shared:type_name -> llmgw.v1.SlurmShared
51, // 65: llmgw.v1.Slurm.users:type_name -> llmgw.v1.SlurmUser
1, // 66: llmgw.v1.AgentService.Connect:input_type -> llmgw.v1.AgentMessage
3, // 67: llmgw.v1.AgentService.Connect:output_type -> llmgw.v1.ControlMessage
67, // [67:68] is the sub-list for method output_type
66, // [66:67] is the sub-list for method input_type
66, // [66:66] is the sub-list for extension type_name
66, // [66:66] is the sub-list for extension extendee
0, // [0:66] is the sub-list for field type_name
}
func init() { file_llmgw_v1_agent_proto_init() }
@@ -6249,7 +6483,7 @@ func file_llmgw_v1_agent_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_llmgw_v1_agent_proto_rawDesc), len(file_llmgw_v1_agent_proto_rawDesc)),
NumEnums: 1,
NumMessages: 59,
NumMessages: 61,
NumExtensions: 0,
NumServices: 1,
},
+40
View File
@@ -1010,6 +1010,41 @@ message Slurm {
// lent says Slurm may run jobs here now: resume the node if llmgw drained
// it. Otherwise it is drained, its jobs left to finish.
bool lent = 7;
// shared is the file system every machine of the Slurm cluster sees at
// the same path; unset or with no path, none.
SlurmShared shared = 8;
// manage_users has llmgw keep the Linux users below on this machine,
// and take away those it made that are no longer among them.
bool manage_users = 9;
repeated SlurmUser users = 10;
// make_homes has this machine make the users' home directories: the one
// that exports the shared path, else the controller.
bool make_homes = 11;
}
// SlurmShared is where the Slurm cluster's shared files come from.
message SlurmShared {
// path is where every machine sees them, as /shared.
string path = 1;
// nfs is an export, host:/path, to mount at path; empty when this
// machine exports path itself (serve) or the site mounts it.
string nfs = 2;
// serve has this machine export path over NFS to clients.
bool serve = 3;
// clients are the addresses the export answers.
repeated string clients = 4;
}
// SlurmUser is a Linux user that runs jobs, the same on every machine.
message SlurmUser {
string login = 1;
// uid is also the user's own group's gid.
uint32 uid = 2;
// name is the account's, for the GECOS field.
string name = 3;
string home = 4;
// ssh_keys are OpenSSH public keys, one a line of authorized_keys.
repeated string ssh_keys = 5;
}
// SlurmStatus is what this node's Slurm daemons are doing, sent when it
@@ -1037,4 +1072,9 @@ message SlurmStatus {
// slurmdbd_running is the accounting daemon on the controller, which keeps
// the jobs' records in a MariaDB beside it.
bool slurmdbd_running = 10;
// shared is the shared path as this machine has it: "mounted",
// "exported", "missing", or empty when there is none.
string shared = 11;
// users is how many of llmgw's users this machine has.
int32 users = 12;
}