×

OpenShift Virtualization在控制平面级别提供以下调优选项

  • highBurst 配置文件使用固定的QPSburst速率,一次性创建数百个虚拟机 (VM)

  • 基于工作负载类型调整迁移设置

配置highBurst配置文件

使用highBurst配置文件在一个集群中创建和维护大量虚拟机 (VM)。

步骤
  • 应用以下补丁以启用highBurst调优策略配置文件

    $ oc patch hyperconverged kubevirt-hyperconverged -n openshift-cnv \
      --type=json -p='[{"op": "add", "path": "/spec/tuningPolicy", \
      "value": "highBurst"}]'
验证
  • 运行以下命令以验证已启用highBurst调优策略配置文件

    $ oc get kubevirt.kubevirt.io/kubevirt-kubevirt-hyperconverged \
      -n openshift-cnv -o go-template --template='{{range $config, \
      $value := .spec.configuration}} {{if eq $config "apiConfiguration" \
      "webhookConfiguration" "controllerConfiguration" "handlerConfiguration"}} \
      {{"\n"}} {{$config}} = {{$value}} {{end}} {{end}} {{"\n"}}