Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions protect/control/v1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,14 @@ message ZoneDiskStatus {
bool delete = 6;
}

enum ZoneMemoryPressureState {
ZONE_MEMORY_PRESSURE_STATE_UNKNOWN = 0;
ZONE_MEMORY_PRESSURE_STATE_OK = 1;
ZONE_MEMORY_PRESSURE_STATE_SOFT = 2;
ZONE_MEMORY_PRESSURE_STATE_HARD = 3;
ZONE_MEMORY_PRESSURE_STATE_CRITICAL = 4;
}

message ZoneMountStatus {
uint64 device_id = 1;
string host_path = 2;
Expand Down
14 changes: 14 additions & 0 deletions protect/control/v1/control.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
syntax = "proto3";

package protect.control.v1;
Expand Down Expand Up @@ -550,6 +550,7 @@
WorkloadChangedEvent workload_changed = 2;
AdvertiseServiceEvent advertise_service = 3;
UnadvertiseServiceEvent unadvertise_service = 4;
ZoneMemoryPressureChangedEvent zone_memory_pressure_changed = 5;
}
}

Expand Down Expand Up @@ -1004,3 +1005,16 @@
message ListObjectCapabilitiesReply {
repeated ObjectCapabilityInfo object_capabilities = 1;
}

// Carries a guest NUMA node's memory-pressure state transition for a zone.
message ZoneMemoryPressureChangedEvent {
string zone_id = 1;
uint32 nid = 2;
ZoneMemoryPressureState old_state = 3;
ZoneMemoryPressureState new_state = 4;
uint64 transition_timestamp = 5;
// Set only for kube-managed zones.
optional string namespace = 6;
optional string pod = 7;
}

Loading