Skip to content

Commit

Permalink
enable tmo memadvisor plugin by default for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LuyaoZhong committed Mar 3, 2024
1 parent 44e8004 commit 05a8b89
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package memory

import (
memadivsor "github.com/kubewharf/katalyst-core/pkg/agent/sysadvisor/plugin/qosaware/resource/memory/plugin"
"github.com/kubewharf/katalyst-core/pkg/agent/sysadvisor/types"
"github.com/kubewharf/katalyst-core/pkg/config/agent/sysadvisor/qosaware/resource/memory/headroom"
"github.com/kubewharf/katalyst-core/pkg/config/agent/sysadvisor/qosaware/resource/memory/plugins"
Expand All @@ -36,7 +37,8 @@ func NewMemoryAdvisorConfiguration() *MemoryAdvisorConfiguration {
return &MemoryAdvisorConfiguration{
MemoryHeadroomPolicies: make([]types.MemoryHeadroomPolicyName, 0),
MemoryHeadroomPolicyConfiguration: headroom.NewMemoryHeadroomPolicyConfiguration(),
MemoryAdvisorPlugins: make([]types.MemoryAdvisorPluginName, 0),
// TODO: remove this hardcode after testing
MemoryAdvisorPlugins: []types.MemoryAdvisorPluginName{memadivsor.TransparentMemoryOffloading},
MemoryAdvisorPluginsConfiguration: plugins.NewMemoryAdvisorPluginsConfiguration(),
}
}

0 comments on commit 05a8b89

Please sign in to comment.