O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

Proper tuning can lead to great performance improvements in your cluster during everyday I/O workloads and recovery/rebalance scenarios. Let's look at setting a recommended tuning profile for your OSD nodes:

  1. Create a file: /etc/sysctl.d/ceph-tuning.conf.

An example is shown in the following screenshot:

  1. Update with the following parameters:
        ### Network tuning ###        net.core.rmem_max = 56623104        net.core.wmem_max = 56623104        net.core.rmem_default = 56623104        net.core.wmem_default = 56623104        net.core.optmem_max = 40960        net.ipv4.tcp_rmem = 4096 87380 56623104        net.ipv4.tcp_wmem = 4096 65536 56623104        net.core.somaxconn = 1024 net.core.netdev_max_backlog ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required