kvm низкая io производительность

Простое выравнивание нагрузки было бы достаточно для статического веб-контента. Если Вы ориентировали на сессию трафик (корзина, игры, возможно, другие), то или необходимо сохранить сессии липкими, или предусмотреть сессии для миграции между серверами в кластере.

Начните изучать выравнивание нагрузки и узнайте больше о Ваших определенных приложениях.

BTW - Я не назвал бы это облаком. Части его, вероятно, будут веб-фермой. "Кластер" обычно относится к обработке отказа, если Вы не делаете HPC (высокопроизводительные вычисления.) Вы могли бы хотеть провести некоторое время, рассматривая номенклатуру, даже если это - просто работа человека, увлеченного своим хобби.

6
задан 16 February 2012 в 11:07
2 ответа

The optimal configuration is (usually) as follows:

  1. On the host, set elevator=deadline
  2. Use virtio and only virtio
  3. use raw LVs whenever possible. Qcow2 gives overhead. Files on a FS also have overhead
  4. in the VM use the elevator=noop
  5. both in host and VM, use noatime,nodiratime in fstab wherever possible
  6. Make sure the virtio drivers are up to date, especially the windows ones.
  7. Debian based distros are (arguably) not as good as Fedora and RHEL for QEMU/KVM. Not to start a flamewar, but most of the development and testing is done on Fedora and RHEL, and in my own experience, there have been lots of issues on Ubuntu and Debian that I couldn't reproduce on Fedora and RHEL. You can ignore this particular bullet if you want, but if you're looking for a solution, a quick benchmark on another distro is usually worth a try
8
ответ дан 3 December 2019 в 00:19

Try setting "deadline" as the I/O scheduler for your host's disks before starting KVM:

 for f in /sys/block/sd*/queue/scheduler; do echo "deadline" > $f; done

If you have I/O bound load, it might be your best choice as this IBM paper suggests.

1
ответ дан 3 December 2019 в 00:19

Теги

Похожие вопросы