mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: hostman setup tuned-adm profile virtual-host (#15918)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -367,6 +367,12 @@ func (h *SHostInfo) prepareEnv() error {
|
||||
return errors.Wrap(err, "Execute 'ethtool -h'")
|
||||
}
|
||||
|
||||
// setup tuned-adm
|
||||
_, err = procutils.NewRemoteCommandAsFarAsPossible("tuned-adm", "profile", "virtual-host").Output()
|
||||
if err != nil {
|
||||
log.Errorf("tuned-adm profile virtual-host fail: %s", err)
|
||||
}
|
||||
|
||||
supportedSchedulers, _ := fileutils2.GetAllBlkdevsIoSchedulers()
|
||||
// IoScheduler default to none scheduler
|
||||
ioParams := make(map[string]string, 0)
|
||||
|
||||
Reference in New Issue
Block a user