Skip to content

Commit

Permalink
feat(qrm): Support for OOM priority as a QoS enhancement
Browse files Browse the repository at this point in the history
Signed-off-by: ricky <[email protected]>
  • Loading branch information
y-ykcir committed Nov 13, 2023
1 parent 03a3686 commit d84cc2a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/consts/qos.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const (

PodAnnotationMemoryEnhancementNumaExclusive = "numa_exclusive"
PodAnnotationMemoryEnhancementNumaExclusiveEnable = "true"

PodAnnotationMemoryEnhancementOOMPriority = "oom_priority"
)

// const variables for pod annotations about qos level enhancement in cpu
Expand Down
31 changes: 31 additions & 0 deletions pkg/consts/qrm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
Copyright 2022 The Katalyst Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package consts

// QRMPhase is the phase of each rpc call in qrm plugin lifecycle
type QRMPhase int

const (
QRMPhaseGetTopologyHints QRMPhase = iota
QRMPhaseRemovePod
QRMPhaseGetResourcesAllocation
QRMPhaseGetTopologyAwareResources
QRMPhaseGetTopologyAwareAllocatableResources
QRMPhaseGetResourcePluginOptions
QRMPhaseAllocate
QRMPhasePreStartContainer
)

0 comments on commit d84cc2a

Please sign in to comment.