diff --git a/internal/common/metrics/scheduler_metrics.go b/internal/common/metrics/scheduler_metrics.go index 063a80b5738..80403bf412e 100644 --- a/internal/common/metrics/scheduler_metrics.go +++ b/internal/common/metrics/scheduler_metrics.go @@ -174,7 +174,7 @@ var ClusterAvailableCapacityDesc = prometheus.NewDesc( var ClusterCordonedStatusDesc = prometheus.NewDesc( MetricPrefix+"cluster_cordoned_status", "Cluster cordoned status", - []string{"cluster", "reason"}, + []string{"cluster", "reason", "setByUser"}, nil, ) @@ -382,8 +382,8 @@ func NewClusterTotalCapacity(value float64, cluster string, pool string, resourc return prometheus.MustNewConstMetric(ClusterCapacityDesc, prometheus.GaugeValue, value, cluster, pool, resource, nodeType) } -func NewClusterCordonedStatus(value float64, cluster string, reason string) prometheus.Metric { - return prometheus.MustNewConstMetric(ClusterCordonedStatusDesc, prometheus.GaugeValue, value, cluster, reason) +func NewClusterCordonedStatus(value float64, cluster string, reason string, setByUser string) prometheus.Metric { + return prometheus.MustNewConstMetric(ClusterCordonedStatusDesc, prometheus.GaugeValue, value, cluster, reason, setByUser) } func NewQueueAllocated(value float64, queue string, cluster string, pool string, priorityClass string, resource string, nodeType string) prometheus.Metric { diff --git a/internal/scheduler/database/executor_repository.go b/internal/scheduler/database/executor_repository.go index ac45b083647..4b02c93a37d 100644 --- a/internal/scheduler/database/executor_repository.go +++ b/internal/scheduler/database/executor_repository.go @@ -9,6 +9,7 @@ import ( "github.com/armadaproject/armada/internal/common/armadacontext" "github.com/armadaproject/armada/internal/common/compress" + protoutil "github.com/armadaproject/armada/internal/common/proto" "github.com/armadaproject/armada/internal/scheduler/schedulerobjects" ) @@ -109,6 +110,8 @@ func (r *PostgresExecutorRepository) GetExecutorSettings(ctx *armadacontext.Cont ExecutorId: result.ExecutorId, Cordoned: result.Cordoned, CordonReason: result.CordonReason, + SetByUser: result.SetByUser, + SetAtTime: protoutil.ToTimestamp(result.SetAtTime), } executorSettings[i] = settings } diff --git a/internal/scheduler/database/migrations/016_add_user_and_timestamp_executor_settings.sql b/internal/scheduler/database/migrations/016_add_user_and_timestamp_executor_settings.sql new file mode 100644 index 00000000000..2e13633fa78 --- /dev/null +++ b/internal/scheduler/database/migrations/016_add_user_and_timestamp_executor_settings.sql @@ -0,0 +1,2 @@ +ALTER TABLE executor_settings ADD COLUMN set_by_user text; +ALTER TABLE executor_settings ADD COLUMN set_at_time timestamptz; diff --git a/internal/scheduler/database/models.go b/internal/scheduler/database/models.go index 355b6705a14..6e752700812 100644 --- a/internal/scheduler/database/models.go +++ b/internal/scheduler/database/models.go @@ -85,4 +85,6 @@ type ExecutorSettings struct { ExecutorId string `db:"executor_id"` Cordoned bool `db:"cordoned"` CordonReason string `db:"cordon_reason"` + SetByUser string `db:"set_by_user"` + SetAtTime time.Time `db:"set_at_time"` } diff --git a/internal/scheduler/database/query.sql.go b/internal/scheduler/database/query.sql.go index d672c271204..af77c1716c6 100644 --- a/internal/scheduler/database/query.sql.go +++ b/internal/scheduler/database/query.sql.go @@ -763,18 +763,20 @@ func (q *Queries) UpsertExecutor(ctx context.Context, arg UpsertExecutorParams) } const upsertExecutorSettings = `-- name: UpsertExecutorSettings :exec -INSERT INTO executor_settings (executor_id, cordoned, cordon_reason) -VALUES($1::text, $2::boolean, $3::text) -ON CONFLICT (executor_id) DO UPDATE SET (cordoned, cordon_reason) = (excluded.cordoned, excluded.cordon_reason)` +INSERT INTO executor_settings (executor_id, cordoned, cordon_reason, set_by_user, set_at_time) +VALUES($1::text, $2::boolean, $3::text, $4::text, $5::timestamptz) +ON CONFLICT (executor_id) DO UPDATE SET (cordoned, cordon_reason, set_by_user, set_at_time) = (excluded.cordoned, excluded.cordon_reason, excluded.set_by_user, excluded.set_at_time)` type UpsertExecutorSettingsParams struct { ExecutorID string `db:"executor_id"` Cordoned bool `db:"cordoned"` CordonReason string `db:"cordon_reason"` + SetByUser string `db:"set_by_user"` + SetAtTime time.Time `db:"set_at_time"` } func (q *Queries) UpsertExecutorSettings(ctx context.Context, arg UpsertExecutorSettingsParams) error { - _, err := q.db.Exec(ctx, upsertExecutorSettings, arg.ExecutorID, arg.Cordoned, arg.CordonReason) + _, err := q.db.Exec(ctx, upsertExecutorSettings, arg.ExecutorID, arg.Cordoned, arg.CordonReason, arg.SetByUser, arg.SetAtTime) return err } @@ -792,7 +794,7 @@ func (q *Queries) DeleteExecutorSettings(ctx context.Context, arg DeleteExecutor } const selectAllExecutorSettings = `-- name: SelectAllExecutorSettings :many -SELECT executor_id, cordoned, cordon_reason FROM executor_settings +SELECT executor_id, cordoned, cordon_reason, set_by_user, set_at_time FROM executor_settings ` func (q *Queries) SelectAllExecutorSettings(ctx context.Context) ([]ExecutorSettings, error) { @@ -804,7 +806,7 @@ func (q *Queries) SelectAllExecutorSettings(ctx context.Context) ([]ExecutorSett var items []ExecutorSettings for rows.Next() { var i ExecutorSettings - if err := rows.Scan(&i.ExecutorId, &i.Cordoned, &i.CordonReason); err != nil { + if err := rows.Scan(&i.ExecutorId, &i.Cordoned, &i.CordonReason, &i.SetByUser, &i.SetAtTime); err != nil { return nil, err } items = append(items, i) diff --git a/internal/scheduler/metrics.go b/internal/scheduler/metrics.go index 78e22da11a2..43d9bbe21b2 100644 --- a/internal/scheduler/metrics.go +++ b/internal/scheduler/metrics.go @@ -256,8 +256,9 @@ type clusterMetricKey struct { } type clusterCordonedStatus struct { - status float64 - reason string + status float64 + reason string + setByUser string } func (c *MetricsCollector) updateClusterMetrics(ctx *armadacontext.Context) ([]prometheus.Metric, error) { @@ -290,8 +291,9 @@ func (c *MetricsCollector) updateClusterMetrics(ctx *armadacontext.Context) ([]p for _, executor := range executors { // We may not have executorSettings for all known executors, but we still want a cordon status metric for them. cordonedStatusByCluster[executor.Id] = &clusterCordonedStatus{ - status: 0.0, - reason: "", + status: 0.0, + reason: "", + setByUser: "", } for _, node := range executor.Nodes { nodePool := node.GetPool() @@ -387,11 +389,13 @@ func (c *MetricsCollector) updateClusterMetrics(ctx *armadacontext.Context) ([]p if cordonedValue, ok := cordonedStatusByCluster[executorSetting.ExecutorId]; ok { cordonedValue.status = 1.0 cordonedValue.reason = executorSetting.CordonReason + cordonedValue.setByUser = executorSetting.SetByUser } else { // We may have settings for executors that don't exist in the repository. cordonedStatusByCluster[executorSetting.ExecutorId] = &clusterCordonedStatus{ - status: 1.0, - reason: executorSetting.CordonReason, + status: 1.0, + reason: executorSetting.CordonReason, + setByUser: executorSetting.SetByUser, } } } @@ -439,7 +443,7 @@ func (c *MetricsCollector) updateClusterMetrics(ctx *armadacontext.Context) ([]p clusterMetrics = append(clusterMetrics, commonmetrics.NewClusterTotalCapacity(float64(v), k.cluster, k.pool, "nodes", k.nodeType)) } for cluster, v := range cordonedStatusByCluster { - clusterMetrics = append(clusterMetrics, commonmetrics.NewClusterCordonedStatus(v.status, cluster, v.reason)) + clusterMetrics = append(clusterMetrics, commonmetrics.NewClusterCordonedStatus(v.status, cluster, v.reason, v.setByUser)) } return clusterMetrics, nil } diff --git a/internal/scheduler/metrics_test.go b/internal/scheduler/metrics_test.go index 50b0627fbd0..d576713618f 100644 --- a/internal/scheduler/metrics_test.go +++ b/internal/scheduler/metrics_test.go @@ -220,7 +220,7 @@ func TestMetricsCollector_TestCollect_ClusterMetrics(t *testing.T) { commonmetrics.NewClusterTotalCapacity(64, "cluster-1", testfixtures.TestPool, "cpu", "type-1"), commonmetrics.NewClusterTotalCapacity(512*1024*1024*1024, "cluster-1", testfixtures.TestPool, "memory", "type-1"), commonmetrics.NewClusterTotalCapacity(2, "cluster-1", testfixtures.TestPool, "nodes", "type-1"), - commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", ""), + commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", "", ""), }, expectedExecutorSettings: []*schedulerobjects.ExecutorSettings{}, }, @@ -240,7 +240,7 @@ func TestMetricsCollector_TestCollect_ClusterMetrics(t *testing.T) { commonmetrics.NewClusterTotalCapacity(32, "cluster-1", testfixtures.TestPool, "cpu", "type-2"), commonmetrics.NewClusterTotalCapacity(256*1024*1024*1024, "cluster-1", testfixtures.TestPool, "memory", "type-2"), commonmetrics.NewClusterTotalCapacity(1, "cluster-1", testfixtures.TestPool, "nodes", "type-2"), - commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", ""), + commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", "", ""), }, expectedExecutorSettings: []*schedulerobjects.ExecutorSettings{}, }, @@ -254,7 +254,7 @@ func TestMetricsCollector_TestCollect_ClusterMetrics(t *testing.T) { commonmetrics.NewClusterTotalCapacity(64, "cluster-1", testfixtures.TestPool, "cpu", "type-1"), commonmetrics.NewClusterTotalCapacity(512*1024*1024*1024, "cluster-1", testfixtures.TestPool, "memory", "type-1"), commonmetrics.NewClusterTotalCapacity(2, "cluster-1", testfixtures.TestPool, "nodes", "type-1"), - commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", ""), + commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", "", ""), }, expectedExecutorSettings: []*schedulerobjects.ExecutorSettings{}, }, @@ -274,7 +274,7 @@ func TestMetricsCollector_TestCollect_ClusterMetrics(t *testing.T) { commonmetrics.NewClusterTotalCapacity(32, "cluster-1", testfixtures.TestPool, "cpu", "type-1"), commonmetrics.NewClusterTotalCapacity(256*1024*1024*1024, "cluster-1", testfixtures.TestPool, "memory", "type-1"), commonmetrics.NewClusterTotalCapacity(1, "cluster-1", testfixtures.TestPool, "nodes", "type-1"), - commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", ""), + commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", "", ""), }, expectedExecutorSettings: []*schedulerobjects.ExecutorSettings{}, }, @@ -290,7 +290,7 @@ func TestMetricsCollector_TestCollect_ClusterMetrics(t *testing.T) { commonmetrics.NewClusterTotalCapacity(32, "cluster-1", testfixtures.TestPool, "cpu", "type-1"), commonmetrics.NewClusterTotalCapacity(256*1024*1024*1024, "cluster-1", testfixtures.TestPool, "memory", "type-1"), commonmetrics.NewClusterTotalCapacity(1, "cluster-1", testfixtures.TestPool, "nodes", "type-1"), - commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", ""), + commonmetrics.NewClusterCordonedStatus(0.0, "cluster-1", "", ""), }, expectedExecutorSettings: []*schedulerobjects.ExecutorSettings{}, }, @@ -314,7 +314,7 @@ func TestMetricsCollector_TestCollect_ClusterMetrics(t *testing.T) { commonmetrics.NewClusterTotalCapacity(64, "cluster-1", testfixtures.TestPool, "cpu", "type-1"), commonmetrics.NewClusterTotalCapacity(512*1024*1024*1024, "cluster-1", testfixtures.TestPool, "memory", "type-1"), commonmetrics.NewClusterTotalCapacity(2, "cluster-1", testfixtures.TestPool, "nodes", "type-1"), - commonmetrics.NewClusterCordonedStatus(1.0, "cluster-1", "bad executor"), + commonmetrics.NewClusterCordonedStatus(1.0, "cluster-1", "bad executor", ""), }, expectedExecutorSettings: []*schedulerobjects.ExecutorSettings{ { diff --git a/internal/scheduler/schedulerobjects/schedulerobjects.pb.go b/internal/scheduler/schedulerobjects/schedulerobjects.pb.go index 037f4bbfc3e..fce7b391122 100644 --- a/internal/scheduler/schedulerobjects/schedulerobjects.pb.go +++ b/internal/scheduler/schedulerobjects/schedulerobjects.pb.go @@ -12,8 +12,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + types "github.com/gogo/protobuf/types" v1 "k8s.io/api/core/v1" resource "k8s.io/apimachinery/pkg/api/resource" ) @@ -689,9 +689,11 @@ func (m *PodRequirements) GetResourceRequirements() v1.ResourceRequirements { } type ExecutorSettings struct { - ExecutorId string `protobuf:"bytes,1,opt,name=executorId,proto3" json:"executorId,omitempty"` - Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` - CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` + ExecutorId string `protobuf:"bytes,1,opt,name=executorId,proto3" json:"executorId,omitempty"` + Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` + CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` + SetByUser string `protobuf:"bytes,4,opt,name=setByUser,proto3" json:"setByUser,omitempty"` + SetAtTime *types.Timestamp `protobuf:"bytes,5,opt,name=setAtTime,proto3" json:"setAtTime,omitempty"` } func (m *ExecutorSettings) Reset() { *m = ExecutorSettings{} } @@ -748,6 +750,20 @@ func (m *ExecutorSettings) GetCordonReason() string { return "" } +func (m *ExecutorSettings) GetSetByUser() string { + if m != nil { + return m.SetByUser + } + return "" +} + +func (m *ExecutorSettings) GetSetAtTime() *types.Timestamp { + if m != nil { + return m.SetAtTime + } + return nil +} + func init() { proto.RegisterEnum("schedulerobjects.JobRunState", JobRunState_name, JobRunState_value) proto.RegisterType((*Executor)(nil), "schedulerobjects.Executor") @@ -772,114 +788,116 @@ func init() { } var fileDescriptor_97dadc5fbd620721 = []byte{ - // 1697 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x8f, 0xe3, 0x48, - 0x15, 0x6f, 0xf7, 0x67, 0x52, 0xe9, 0x8f, 0xa4, 0xba, 0x77, 0xc6, 0x93, 0x99, 0x8d, 0x43, 0x76, - 0x17, 0xf5, 0x00, 0xeb, 0x68, 0x7b, 0x39, 0x8c, 0x06, 0x84, 0x14, 0xcf, 0x34, 0x4c, 0x0f, 0xb3, - 0xe9, 0x5e, 0xf7, 0xb4, 0x10, 0x48, 0xac, 0x55, 0xb1, 0x2b, 0x19, 0x6f, 0x3b, 0x55, 0x5e, 0xbb, - 0x3c, 0x10, 0xee, 0x1c, 0x10, 0x97, 0x05, 0x2d, 0x12, 0x12, 0x27, 0xfe, 0x09, 0x6e, 0x08, 0x8e, - 0x73, 0xdc, 0x23, 0x27, 0x83, 0x66, 0x6e, 0xfe, 0x0f, 0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 0x31, 0x26, 0xe2, 0x9c, 0xde, 0x5e, 0xb2, 0xa3, 0xac, 0x64, 0x15, 0x6e, 0x74, 0x89, - 0x31, 0x11, 0xc5, 0x9a, 0xae, 0x60, 0x0f, 0x6c, 0x33, 0xe4, 0x12, 0x16, 0xaa, 0x5b, 0xe2, 0x28, - 0xef, 0xe8, 0x29, 0x2d, 0x75, 0xe4, 0xbb, 0x3a, 0xa7, 0xae, 0xfe, 0xf2, 0x23, 0xfd, 0x39, 0xd7, - 0x30, 0xf6, 0x33, 0x57, 0x99, 0x81, 0x99, 0xfd, 0x85, 0x17, 0x60, 0xdb, 0x43, 0x03, 0xec, 0x85, - 0xea, 0xb6, 0x70, 0xd1, 0x59, 0xcc, 0x06, 0xfd, 0x99, 0x50, 0x3a, 0x25, 0x2c, 0x98, 0x18, 0x47, - 0x49, 0xac, 0xd5, 0x53, 0x2b, 0x69, 0x97, 0x99, 0x1f, 0x68, 0x81, 0x03, 0x46, 0x19, 0xf2, 0xac, - 0xfc, 0x1a, 0x84, 0xea, 0x8e, 0xd8, 0x69, 0xab, 0xec, 0xda, 0xcc, 0x54, 0x9e, 0xb9, 0x21, 0x33, - 0x6e, 0xe5, 0x04, 0x11, 0xe6, 0xb9, 0x28, 0x34, 0xe7, 0xd6, 0xf0, 0x6f, 0x0a, 0x78, 0x1f, 0x79, - 0x1e, 0xb5, 0x11, 0x43, 0x03, 0x0f, 0x5b, 0x83, 0x89, 0xe5, 0x07, 0x2e, 0x0d, 0x5c, 0x36, 0xb1, - 0x10, 0x71, 0xa6, 0x71, 0xd5, 0x8a, 0xd8, 0xd1, 0x0f, 0x97, 0xec, 0xa8, 0x57, 0xb8, 0x30, 0x26, - 0x17, 0x99, 0x83, 0x1e, 0x71, 0xf2, 0x40, 0xe9, 0x5e, 0x8f, 0xb3, 0xa4, 0xda, 0x68, 0x85, 0xba, - 0xb9, 0x52, 0x03, 0x06, 0xe0, 0x30, 0x64, 0x88, 0x89, 0x8c, 0x33, 0x4e, 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, 0xe7, 0xa6, 0x4b, 0xaf, 0xf1, 0x74, 0x48, 0xd4, 0xfd, - 0xeb, 0x91, 0x78, 0x9e, 0xf3, 0x70, 0xfa, 0xa7, 0x11, 0x22, 0xcc, 0x65, 0x93, 0x95, 0xe7, 0xf8, - 0xd5, 0x16, 0x68, 0x3c, 0xa5, 0x83, 0xcb, 0x74, 0xa3, 0x2e, 0x19, 0x9d, 0x91, 0x21, 0xe5, 0x63, - 0x88, 0xe7, 0x0e, 0x31, 0x1f, 0x62, 0x45, 0x7a, 0x7b, 0xe9, 0x18, 0x92, 0x63, 0xf2, 0x18, 0x92, - 0x63, 0xf0, 0x21, 0xd8, 0x45, 0xcc, 0x1a, 0xd3, 0x90, 0x59, 0x94, 0xd8, 0x69, 0xbe, 0x15, 0x43, - 0x4d, 0x62, 0xed, 0x08, 0xb1, 0x4f, 0x68, 0xc8, 0xce, 0x89, 0x2d, 0x5b, 0x82, 0x02, 0x85, 0x3f, - 0x00, 0x35, 0x3f, 0xc0, 0x1c, 0x77, 0x79, 0x03, 0xdf, 0x10, 0xa6, 0x77, 0x92, 0x58, 0x7b, 0x47, - 0x82, 0x25, 0x5b, 0x59, 0x1b, 0x3e, 0x01, 0x75, 0x9b, 0x12, 0x3b, 0x0a, 0x02, 0x4c, 0xec, 0x89, - 0x15, 0xa2, 0x21, 0x56, 0x37, 0x85, 0x87, 0x77, 0x93, 0x58, 0xbb, 0x23, 0xc9, 0x2e, 0xd1, 0x50, - 0xf6, 0x72, 0x30, 0x27, 0xe2, 0xcf, 0xc0, 0xf4, 0xd1, 0xb7, 0x3d, 0x14, 0x86, 0x96, 0x18, 0xda, - 0xb6, 0x8b, 0x67, 0x20, 0x17, 0x3f, 0xe2, 0xd2, 0xfe, 0xec, 0x04, 0xd7, 0x28, 0x09, 0xe1, 0x25, - 0xa8, 0x85, 0xd1, 0x60, 0xec, 0x32, 0x4b, 0x94, 0x72, 0x67, 0xe5, 0x70, 0x96, 0x8f, 0x2b, 0x20, - 0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0x37, 0xfd, - 0xdf, 0xc4, 0x28, 0xa4, 0x44, 0xbc, 0x35, 0xd5, 0xf4, 0xee, 0xc9, 0xb8, 0x7c, 0xf7, 0x64, 0xfc, - 0x3b, 0xe7, 0xa0, 0x26, 0xcd, 0x6e, 0xb0, 0x06, 0x76, 0xae, 0xfa, 0x3f, 0xed, 0x9f, 0xff, 0xac, - 0x5f, 0x5f, 0xe3, 0x8b, 0x8b, 0xd3, 0xfe, 0xe3, 0xb3, 0xfe, 0x4f, 0xea, 0x0a, 0x5f, 0x98, 0x57, - 0xfd, 0x3e, 0x5f, 0xac, 0xc3, 0x3d, 0x50, 0xbd, 0xbc, 0x7a, 0xf4, 0xe8, 0xf4, 0xf4, 0xf1, 0xe9, - 0xe3, 0xfa, 0x06, 0x04, 0x60, 0xfb, 0xc7, 0xbd, 0xb3, 0x67, 0xa7, 0x8f, 0xeb, 0x9b, 0xc6, 0x2f, - 0x5f, 0xbd, 0x6e, 0x29, 0x5f, 0xbf, 0x6e, 0x29, 0xff, 0x79, 0xdd, 0x52, 0xbe, 0x7c, 0xd3, 0x5a, - 0xfb, 0xfa, 0x4d, 0x6b, 0xed, 0x5f, 0x6f, 0x5a, 0x6b, 0xbf, 0x78, 0x24, 0xfd, 0xb2, 0x83, 0x82, - 0x31, 0x72, 0x90, 0x1f, 0x50, 0x7e, 0x61, 0xb2, 0x55, 0xf7, 0x06, 0x3f, 0x61, 0x0d, 0xb6, 0xc5, - 0x2b, 0xf3, 0xf1, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xee, 0x59, 0x58, 0xf0, 0x12, 0x00, - 0x00, + // 1735 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6f, 0xdb, 0xc8, + 0x15, 0x37, 0xfd, 0x29, 0x8d, 0xfc, 0x21, 0x8d, 0xbd, 0x09, 0xa3, 0x64, 0x45, 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 0x0b, 0xf1, 0x53, 0x3a, 0x1a, 0x84, 0x44, + 0x4e, 0xb2, 0x51, 0x12, 0x76, 0xfe, 0xb7, 0x03, 0xd6, 0xf9, 0xae, 0x6e, 0x56, 0x46, 0x82, 0x26, + 0x58, 0xdd, 0x2e, 0xca, 0xc8, 0xd7, 0x72, 0x19, 0xf9, 0x1a, 0x1e, 0x81, 0x0a, 0xce, 0x0e, 0x47, + 0xdd, 0x17, 0xba, 0xb7, 0x92, 0x58, 0x83, 0x39, 0x26, 0xe9, 0x4f, 0xf5, 0xe0, 0x27, 0xa0, 0xca, + 0x77, 0x6a, 0x06, 0x18, 0x13, 0x71, 0x4e, 0xd7, 0x97, 0xec, 0x20, 0x2b, 0x59, 0x85, 0x1b, 0x9d, + 0x63, 0x4c, 0x44, 0xb1, 0xa6, 0x2b, 0xd8, 0x03, 0x9b, 0x0c, 0x39, 0x84, 0x05, 0xea, 0x86, 0x38, + 0xca, 0x3b, 0x7a, 0x4a, 0x4b, 0x1d, 0x79, 0x8e, 0xce, 0xa9, 0xab, 0xbf, 0xfa, 0x48, 0x7f, 0xc1, + 0x35, 0x8c, 0xdd, 0xcc, 0x55, 0x66, 0x30, 0xc8, 0xfe, 0xc2, 0x33, 0xb0, 0xe9, 0xa2, 0x11, 0x76, + 0x03, 0x75, 0x53, 0xb8, 0xe8, 0x2c, 0x66, 0x83, 0xfe, 0x4c, 0x28, 0x1d, 0x13, 0xe6, 0x47, 0xc6, + 0x41, 0x12, 0x6b, 0xf5, 0xd4, 0x4a, 0xda, 0x65, 0xe6, 0x07, 0x9a, 0x60, 0x8f, 0x51, 0x86, 0x5c, + 0x33, 0xbf, 0x06, 0x81, 0xba, 0x25, 0x76, 0xda, 0x2a, 0xbb, 0x1e, 0x64, 0x2a, 0xcf, 0x9c, 0x80, + 0x19, 0xb7, 0x72, 0x82, 0x08, 0xf3, 0x5c, 0x14, 0x0c, 0xe6, 0xd6, 0xf0, 0xef, 0x0a, 0x78, 0x1f, + 0xb9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0xfc, 0xb8, 0xbe, 0x6e, 0xfc, 0xea, 0xf5, 0x9b, 0x96, 0xf2, 0xd5, 0x9b, 0x96, 0xf2, 0xdf, + 0x37, 0x2d, 0xe5, 0x8b, 0xb7, 0xad, 0x95, 0xaf, 0xde, 0xb6, 0x56, 0xfe, 0xfd, 0xb6, 0xb5, 0xf2, + 0xcb, 0x47, 0xd2, 0x6f, 0x4c, 0xc8, 0x9f, 0x20, 0x1b, 0x79, 0x3e, 0xe5, 0x57, 0x37, 0x5b, 0x75, + 0x6f, 0xf0, 0x63, 0xda, 0x68, 0x53, 0xec, 0xf3, 0xe3, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x4f, + 0xef, 0xf8, 0x20, 0x7a, 0x13, 0x00, 0x00, } func (m *Executor) Marshal() (dAtA []byte, err error) { @@ -1522,6 +1540,25 @@ func (m *ExecutorSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.SetAtTime != nil { + { + size, err := m.SetAtTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchedulerobjects(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.SetByUser) > 0 { + i -= len(m.SetByUser) + copy(dAtA[i:], m.SetByUser) + i = encodeVarintSchedulerobjects(dAtA, i, uint64(len(m.SetByUser))) + i-- + dAtA[i] = 0x22 + } if len(m.CordonReason) > 0 { i -= len(m.CordonReason) copy(dAtA[i:], m.CordonReason) @@ -1833,6 +1870,14 @@ func (m *ExecutorSettings) Size() (n int) { if l > 0 { n += 1 + l + sovSchedulerobjects(uint64(l)) } + l = len(m.SetByUser) + if l > 0 { + n += 1 + l + sovSchedulerobjects(uint64(l)) + } + if m.SetAtTime != nil { + l = m.SetAtTime.Size() + n += 1 + l + sovSchedulerobjects(uint64(l)) + } return n } @@ -4121,6 +4166,74 @@ func (m *ExecutorSettings) Unmarshal(dAtA []byte) error { } m.CordonReason = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetByUser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulerobjects + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSchedulerobjects + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchedulerobjects + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SetByUser = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetAtTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchedulerobjects + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchedulerobjects + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchedulerobjects + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetAtTime == nil { + m.SetAtTime = &types.Timestamp{} + } + if err := m.SetAtTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipSchedulerobjects(dAtA[iNdEx:]) diff --git a/internal/scheduler/schedulerobjects/schedulerobjects.proto b/internal/scheduler/schedulerobjects/schedulerobjects.proto index 042f6623db3..c93cfcd6762 100644 --- a/internal/scheduler/schedulerobjects/schedulerobjects.proto +++ b/internal/scheduler/schedulerobjects/schedulerobjects.proto @@ -121,4 +121,6 @@ message ExecutorSettings { string executorId = 1; bool cordoned = 2; string cordonReason = 3; + string setByUser = 4; + google.protobuf.Timestamp setAtTime = 5; } diff --git a/internal/scheduleringester/dbops.go b/internal/scheduleringester/dbops.go index c0f4f7346c5..4ac250d9931 100644 --- a/internal/scheduleringester/dbops.go +++ b/internal/scheduleringester/dbops.go @@ -67,6 +67,8 @@ type ExecutorSettingsUpsert struct { ExecutorID string Cordoned bool CordonReason string + SetByUser string + SetAtTime time.Time } type ExecutorSettingsDelete struct { diff --git a/internal/scheduleringester/instructions.go b/internal/scheduleringester/instructions.go index f565488f485..9834f25be71 100644 --- a/internal/scheduleringester/instructions.go +++ b/internal/scheduleringester/instructions.go @@ -406,7 +406,8 @@ func (c *ControlPlaneEventsInstructionConverter) dbOperationFromControlPlaneEven switch ev := event.Event.(type) { case *controlplaneevents.Event_ExecutorSettingsUpsert: - operations, err = c.handleExecutorSettingsUpsert(event.GetExecutorSettingsUpsert()) + eventTime := protoutil.ToStdTime(event.Created) + operations, err = c.handleExecutorSettingsUpsert(event.GetExecutorSettingsUpsert(), eventTime) case *controlplaneevents.Event_ExecutorSettingsDelete: operations, err = c.handleExecutorSettingsDelete(event.GetExecutorSettingsDelete()) default: @@ -420,13 +421,15 @@ func (c *ControlPlaneEventsInstructionConverter) dbOperationFromControlPlaneEven return operations } -func (c *ControlPlaneEventsInstructionConverter) handleExecutorSettingsUpsert(upsert *controlplaneevents.ExecutorSettingsUpsert) ([]DbOperation, error) { +func (c *ControlPlaneEventsInstructionConverter) handleExecutorSettingsUpsert(upsert *controlplaneevents.ExecutorSettingsUpsert, setAtTime time.Time) ([]DbOperation, error) { return []DbOperation{ UpsertExecutorSettings{ upsert.Name: &ExecutorSettingsUpsert{ ExecutorID: upsert.Name, Cordoned: upsert.Cordoned, CordonReason: upsert.CordonReason, + SetByUser: upsert.SetByUser, + SetAtTime: setAtTime, }, }, }, nil diff --git a/internal/scheduleringester/schedulerdb.go b/internal/scheduleringester/schedulerdb.go index 380c8d5a677..5b99b1f22a2 100644 --- a/internal/scheduleringester/schedulerdb.go +++ b/internal/scheduleringester/schedulerdb.go @@ -360,6 +360,8 @@ func (s *SchedulerDb) WriteDbOp(ctx *armadacontext.Context, tx pgx.Tx, op DbOper ExecutorID: settingsUpsert.ExecutorID, Cordoned: settingsUpsert.Cordoned, CordonReason: settingsUpsert.CordonReason, + SetByUser: settingsUpsert.SetByUser, + SetAtTime: settingsUpsert.SetAtTime, }) if err != nil { return errors.Wrapf(err, "error upserting executor settings for %s", settingsUpsert.ExecutorID) diff --git a/internal/server/executor/executor.go b/internal/server/executor/executor.go index 373617633ac..fff09bf7ef9 100644 --- a/internal/server/executor/executor.go +++ b/internal/server/executor/executor.go @@ -53,6 +53,8 @@ func (s *Server) UpsertExecutorSettings(grpcCtx context.Context, req *api.Execut return nil, fmt.Errorf("cordon reason must be specified if cordoning") } + requestingPrincipal := auth.GetPrincipal(ctx) + es := &controlplaneevents.Event{ Created: protoutil.ToTimestamp(s.clock.Now().UTC()), Event: &controlplaneevents.Event_ExecutorSettingsUpsert{ @@ -60,6 +62,7 @@ func (s *Server) UpsertExecutorSettings(grpcCtx context.Context, req *api.Execut Name: req.Name, Cordoned: req.Cordoned, CordonReason: req.CordonReason, + SetByUser: requestingPrincipal.GetName(), }, }, } diff --git a/pkg/controlplaneevents/events.pb.go b/pkg/controlplaneevents/events.pb.go index 5eebbd67d90..45e2e1b0bd3 100644 --- a/pkg/controlplaneevents/events.pb.go +++ b/pkg/controlplaneevents/events.pb.go @@ -121,6 +121,7 @@ type ExecutorSettingsUpsert struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Cordoned bool `protobuf:"varint,2,opt,name=cordoned,proto3" json:"cordoned,omitempty"` CordonReason string `protobuf:"bytes,3,opt,name=cordonReason,proto3" json:"cordonReason,omitempty"` + SetByUser string `protobuf:"bytes,4,opt,name=setByUser,proto3" json:"setByUser,omitempty"` } func (m *ExecutorSettingsUpsert) Reset() { *m = ExecutorSettingsUpsert{} } @@ -177,6 +178,13 @@ func (m *ExecutorSettingsUpsert) GetCordonReason() string { return "" } +func (m *ExecutorSettingsUpsert) GetSetByUser() string { + if m != nil { + return m.SetByUser + } + return "" +} + type ExecutorSettingsDelete struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } @@ -232,33 +240,34 @@ func init() { } var fileDescriptor_2ccee8bdbf348752 = []byte{ - // 410 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6a, 0xdb, 0x40, - 0x10, 0x86, 0x25, 0xb7, 0xae, 0xed, 0x6d, 0x29, 0x74, 0xa1, 0xc2, 0xf8, 0x20, 0x19, 0xbb, 0x94, - 0x52, 0xca, 0x0a, 0x5c, 0xe8, 0xb1, 0xb4, 0x6a, 0x0d, 0x2d, 0xb9, 0x18, 0x27, 0xb9, 0xe4, 0xb6, - 0x96, 0x26, 0x8a, 0x12, 0x49, 0x2b, 0x56, 0x6b, 0x93, 0xbc, 0x42, 0x4e, 0x79, 0x8e, 0x9c, 0xf3, - 0x10, 0x39, 0xfa, 0x98, 0x93, 0x08, 0xf6, 0x4d, 0x2f, 0x90, 0x6b, 0xf0, 0xae, 0x95, 0x28, 0x58, - 0x09, 0x3e, 0x49, 0xbb, 0xf3, 0xfd, 0x33, 0xff, 0x8c, 0x46, 0xa8, 0x9f, 0x9c, 0xf8, 0xb6, 0xcb, - 0x62, 0xc1, 0x59, 0x98, 0x84, 0x34, 0x06, 0x98, 0x41, 0x2c, 0x52, 0x5b, 0x3d, 0x48, 0xc2, 0x99, - 0x60, 0x18, 0x6f, 0x02, 0x1d, 0xcb, 0x67, 0xcc, 0x0f, 0xc1, 0x96, 0xc4, 0x64, 0x7a, 0x68, 0x8b, - 0x20, 0x82, 0x54, 0xd0, 0x28, 0x51, 0xa2, 0xde, 0x5d, 0x0d, 0xd5, 0x87, 0x2b, 0x16, 0xef, 0xa0, - 0x86, 0xcb, 0x81, 0x0a, 0xf0, 0xda,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0x3e, 0x5f, 0x98, 0xfa, 0xed, - 0xc2, 0xd4, 0x2f, 0x96, 0xa6, 0x36, 0x5f, 0x9a, 0xda, 0xcd, 0xd2, 0xd4, 0x0e, 0x7e, 0xf8, 0x81, - 0x38, 0x9a, 0x4e, 0x88, 0xcb, 0x22, 0x9b, 0xf2, 0x88, 0x7a, 0x34, 0xe1, 0xec, 0x18, 0x5c, 0xb1, - 0x3e, 0xd9, 0xd5, 0xbf, 0xc1, 0x65, 0xad, 0xff, 0x5b, 0xc6, 0x47, 0x8a, 0x26, 0xff, 0x19, 0xf9, - 0xa3, 0xa8, 0xd1, 0x8a, 0x92, 0xfb, 0x9d, 0x4e, 0xde, 0xc8, 0x3d, 0xfe, 0x7e, 0x1f, 0x00, 0x00, - 0xff, 0xff, 0x34, 0x77, 0x66, 0x52, 0x4d, 0x03, 0x00, 0x00, + // 431 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xb1, 0x8e, 0xd3, 0x40, + 0x10, 0x86, 0xed, 0x70, 0xc7, 0x5d, 0x16, 0x84, 0xc4, 0x22, 0x8c, 0x95, 0xc2, 0x3e, 0xe5, 0x10, + 0x42, 0x08, 0xad, 0xa5, 0x43, 0x50, 0x22, 0x30, 0x9c, 0x04, 0xa2, 0x39, 0x05, 0xae, 0xa1, 0xdb, + 0xd8, 0x83, 0x31, 0xd8, 0x5e, 0x6b, 0x77, 0x72, 0x22, 0xaf, 0x40, 0xc5, 0x73, 0xf0, 0x24, 0x94, + 0x29, 0xa9, 0x2c, 0x94, 0x74, 0xe6, 0x01, 0x68, 0x51, 0x76, 0xe3, 0xc4, 0x28, 0xe6, 0x94, 0xca, + 0xde, 0x99, 0xef, 0x9f, 0xf9, 0x67, 0xec, 0x25, 0xc7, 0xe5, 0xe7, 0x24, 0x88, 0x44, 0x81, 0x52, + 0x64, 0x65, 0xc6, 0x0b, 0x80, 0x0b,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 0xd0, 0xa9, 0x2b, 0x9f, + 0x36, 0xb1, 0x16, 0xbf, 0xe6, 0xe8, 0x53, 0x72, 0xdd, 0xbc, 0x8f, 0x80, 0x2b, 0x51, 0xe8, 0x0d, + 0xf4, 0xc3, 0x41, 0x5d, 0xf9, 0x4e, 0x3b, 0xde, 0xd2, 0xfe, 0xc3, 0xd3, 0xc7, 0xa4, 0xaf, 0x00, + 0xc3, 0xe9, 0xb9, 0x02, 0xe9, 0xee, 0x69, 0xf1, 0x9d, 0xba, 0xf2, 0x6f, 0xad, 0x83, 0x2d, 0xe5, + 0x86, 0x1c, 0x3e, 0xdb, 0x1e, 0xd6, 0x2c, 0x64, 0xd7, 0x61, 0xc3, 0x8b, 0x1f, 0x73, 0xcf, 0x9e, + 0xcd, 0x3d, 0xfb, 0xd7, 0xdc, 0xb3, 0xbf, 0x2d, 0x3c, 0x6b, 0xb6, 0xf0, 0xac, 0x9f, 0x0b, 0xcf, + 0x7a, 0xff, 0x24, 0x49, 0xf1, 0xe3, 0x64, 0xcc, 0x22, 0x91, 0x07, 0x5c, 0xe6, 0x3c, 0xe6, 0xa5, + 0x14, 0x9f, 0x20, 0xc2, 0xd5, 0x29, 0xe8, 0xbe, 0x3d, 0xdf, 0x7b, 0xc7, 0xcf, 0x75, 0xfe, 0xcc, + 0xd0, 0xec, 0xb5, 0x60, 0x2f, 0x0c, 0x75, 0xb6, 0xa4, 0xf4, 0xb5, 0x50, 0xe3, 0xab, 0xfa, 0xf7, + 0x7f, 0xf4, 0x37, 0x00, 0x00, 0xff, 0xff, 0xdc, 0xdc, 0xc1, 0xeb, 0x84, 0x03, 0x00, 0x00, } func (m *Event) Marshal() (dAtA []byte, err error) { @@ -367,6 +376,13 @@ func (m *ExecutorSettingsUpsert) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l + if len(m.SetByUser) > 0 { + i -= len(m.SetByUser) + copy(dAtA[i:], m.SetByUser) + i = encodeVarintEvents(dAtA, i, uint64(len(m.SetByUser))) + i-- + dAtA[i] = 0x22 + } if len(m.CordonReason) > 0 { i -= len(m.CordonReason) copy(dAtA[i:], m.CordonReason) @@ -492,6 +508,10 @@ func (m *ExecutorSettingsUpsert) Size() (n int) { if l > 0 { n += 1 + l + sovEvents(uint64(l)) } + l = len(m.SetByUser) + if l > 0 { + n += 1 + l + sovEvents(uint64(l)) + } return n } @@ -783,6 +803,38 @@ func (m *ExecutorSettingsUpsert) Unmarshal(dAtA []byte) error { } m.CordonReason = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetByUser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEvents + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEvents + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SetByUser = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvents(dAtA[iNdEx:]) diff --git a/pkg/controlplaneevents/events.proto b/pkg/controlplaneevents/events.proto index 44dea1dabba..7241f56763d 100644 --- a/pkg/controlplaneevents/events.proto +++ b/pkg/controlplaneevents/events.proto @@ -18,6 +18,7 @@ message ExecutorSettingsUpsert { string name = 1; bool cordoned = 2; string cordonReason = 3; + string setByUser = 4; } message ExecutorSettingsDelete {