最少的停机时间

一种允许 VM 在典型情况下迁移的策略。
VM 不应经历任何重大停机时间。
如果 VM 迁移长时间没有收敛,迁移将被中止。
来宾代理挂钩机制已启用。

从 engine-config MigrationPolicies,我们可以获得:

最大并行迁移数:2
最大停顿限制为 6.
如果停顿 6 后仍然停顿,则迁移将中止。
它有以下几毫秒的停机时间:

  • 初始停机时间(initialItems):100
  • 停止 1 次迭代,将停机时间设置为 150
  • 停止 2 次迭代,将停机时间设置为 200
  • 停止 3 次迭代,将停机时间设置为 300
  • 停止 4 次迭代,将停机时间设置为 400
  • 停止 6 次迭代,将停机时间设置为 500
  • 如果仍然停止,中止
MigrationPolicies-Minimal downtime:
[{"id":{"uuid":"80554327-0569-496b-bdeb-fcbbf52b827b"},"maxMigrations":2,"autoConvergence":true,"migrationCompression":false,"enableGuestEvents":true,"name":"Minimal downtime","description":"A policy that lets the VM migrate in typical situations. The VM should not experience any significant downtime. If the VM migration is not converging for a long time, the migration will be aborted. The guest agent hook mechanism is enabled.","config":{"convergenceItems":[{"stallingLimit":1,"convergenceItem":{"action":"setDowntime","params":["150"]}},{"stallingLimit":2,"convergenceItem":{"action":"setDowntime","params":["200"]}},{"stallingLimit":3,"convergenceItem":{"action":"setDowntime","params":["300"]}},{"stallingLimit":4,"convergenceItem":{"action":"setDowntime","params":["400"]}},{"stallingLimit":6,"convergenceItem":{"action":"setDowntime","params":["500"]}}],"initialItems":[{"action":"setDowntime","params":["100"]}],"lastItems":[{"action":"abort","params":[]}]}}

复制后迁移

VM 不应经历任何重大停机时间。
如果VM迁移长时间不收敛,迁移将切换到post-copy。
来宾代理挂钩机制已启用。

在后复制 VM 迁移中,VM 在开始迁移时立即暂停。
它的 CPU 状态被转移到目标主机,而它的内存状态仍然驻留在源主机上。
只有在所有 内存 都已转移后,VM 迁移才会切换到在目标主机上运行。
与“最小停机时间”和“根据需要暂停工作负载”相比,后复制对网络带宽更友好,因为后复制仅通过网络传输每个 VM 页面一次,与“最小”中的写入密集型应用程序 VM 相比,它提供的总迁移时间更短停机时间”和“如果需要暂停工作负载”。
但是,如果在 post-copy 模式下出现网络中断,也将无法恢复,这意味着如果在迁移过程中发生网络故障,VM 可能会丢失。

从 engine-config MigrationPolicies,我们可以获得:

最大并行迁移数:1
最大停顿限制为 2.

  • 初始停机时间(initialItems):100
  • 停止 1 次迭代,将停机时间设置为 150
  • 停止 2 次迭代,将停机时间设置为 200
  • 如果仍然停止,中止
MigrationPolicies-Post-copy migration:
{"id":{"uuid":"a7aeedb2-8d66-4e51-bb22-32595027ce71"},"maxMigrations":2,"autoConvergence":true,"migrationCompression":false,"enableGuestEvents":true,"name":"Post-copy migration","description":"The VM should not experience any significant downtime. If the VM migration is not converging for a long time, the migration will be switched to post-copy. The guest agent hook mechanism is enabled.","config":{"convergenceItems":[{"stallingLimit":1,"convergenceItem":{"action":"setDowntime","params":["150"]}},{"stallingLimit":2,"convergenceItem":{"action":"setDowntime","params":["200"]}}],"initialItems":[{"action":"setDowntime","params":["100"]}],"lastItems":[{"action":"postcopy","params":[]},{"action":"abort","params":[]}]}}]
RHV 集群迁移策略

在 RHV 4.3.6 中,存在三种迁移策略:最小停机时间、根据需要暂停工作负载和复制后迁移。
这篇文章将详细解释它们。

Live VM 迁移主要涉及将 VM 的 CPU、内存和 I/O 状态从源 KVM 主机转移到目标 KVM 主机。
关于“最小停机时间”和“如果需要暂停工作负载”,源 KVM 主机会将所有 VM 的内存页面标记为 内存 脏,并迭代地将 VM 的内存状态传输到目标 KVM 主机。
传输是在 VM 仍在源主机上运行的情况下实时执行的。
在第一次迭代中,源主机将虚拟机的整个内存传输到目的地,在后续迭代中只会传输被修改的页面。
目标 KVM 具有所有 VM 内存页面的最新版本,并且 VM 在目标 KVM 主机上重新启动。

www. On IT Road .com

如果需要,暂停工作负载

允许 VM 在大多数情况下迁移的策略,包括运行繁重工作负载的 VM。
另一方面,VM 可能会遇到更严重的停机时间。
对于极端工作负载,迁移可能仍会中止。
来宾代理挂钩机制已启用。

除了 maxMigrations 为 1 之外,它与“最小停机时间”非常相似,并且在停止 6 和中止之间有一个另外的时间表。

从 engine-config MigrationPolicies,我们可以获得:

最大并行迁移数:1
最大停止限制为 6.
如果这个非常长的停机时间 5 秒没有帮助,迁移将被中止。

  • 初始停机时间(initialItems):100
  • 停止 1 次迭代,将停机时间设置为 150
  • 停止 2 次迭代,将停机时间设置为 200
  • 停止 3 次迭代,将停机时间设置为 300
  • 停止 4 次迭代,将停机时间设置为 400
  • 停止 6 次迭代,将停机时间设置为 500
  • 如果仍然停止,将停机时间设置为 5000
  • 如果仍然停止,中止
MigrationPolicies-Suspend workload if needed:
{"id":{"uuid":"80554327-0569-496b-bdeb-fcbbf52b827c"},"maxMigrations":1,"autoConvergence":true,"migrationCompression":true,"enableGuestEvents":true,"name":"Suspend workload if needed","description":"A policy that lets the VM migrate in most situations, including VMs running heavy workloads. On the other hand, the VM may experience a more significant downtime. The migration may still be aborted for extreme workloads. The guest agent hook mechanism is enabled.","config":{"convergenceItems":[{"stallingLimit":1,"convergenceItem":{"action":"setDowntime","params":["150"]}},{"stallingLimit":2,"convergenceItem":{"action":"setDowntime","params":["200"]}},{"stallingLimit":3,"convergenceItem":{"action":"setDowntime","params":["300"]}},{"stallingLimit":4,"convergenceItem":{"action":"setDowntime","params":["400"]}},{"stallingLimit":6,"convergenceItem":{"action":"setDowntime","params":["500"]}}],"initialItems":[{"action":"setDowntime","params":["100"]}],"lastItems":[{"action":"setDowntime","params":["5000"]},{"action":"abort","params":[]}]}}
日期:2020-09-17 00:12:53 来源:oir作者:oir