官术网_书友最值得收藏!

  • Mastering Ceph
  • Nick Fisk
  • 352字
  • 2021-07-09 19:55:09

Memory

Official recommendations are for 1 GB of memory for every 1 TB of storage. In truth, there are a number of variables that lead to this recommendation, but suffice to say that you never want to find yourself where your OSDs are running low on memory and any excess memory will be used to improve performance.

Aside from the baseline memory usage of OSD, the main variable effecting memory usage is the number of PGs running on OSD. Although total data size does have an impact on memory usage, it is dwarfed by the effect of the number of PGs. A healthy cluster running within the recommendations of 200 PGs per OSD will probably use less than 2 GB of RAM per OSD. However, in a cluster where the number of PGs has been set higher against best practice, memory usage will be higher. It is also worth noting that when OSD is removed from a cluster, extra PGs will be placed on remaining OSDs to rebalance the cluster; this will also increase memory usage as well as the recovery operation itself. This spike in memory usage can sometimes be the cause of cascading failures if insufficient ram has been provisioned. A large swap partition on SSD should always be provisioned to reduce the risk of the Linux out-of-memory (OOM) killer randomly killing OSD processes in the event of a low memory situation.

As a minimum, look to provision around 2 GB per OSD + OS overheads, but this should be treated as the bare minimum and 4 GB per OSD would be recommended.

Depending on your workload and size of spinning disks being used for the Ceph OSDs, extra memory may be required to ensure that the operating system can sufficiently cache the directory entries and file nodes from the filesystem used to store the Ceph objects. This may have a bearing on the RAM you wish to configure your nodes with and is covered in more detail in the tuning section of the book.

Regardless of the configured memory size, ECC memory should be used at all times.

主站蜘蛛池模板: 集贤县| 灵寿县| 曲沃县| 南京市| 西贡区| 滁州市| 伊吾县| 池州市| 噶尔县| 保康县| 玉门市| 新蔡县| 海口市| 景泰县| 进贤县| 新泰市| 旬阳县| 全椒县| 永泰县| 梅河口市| 四会市| 河津市| 清河县| 宜兰县| 丹凤县| 舞钢市| 慈溪市| 富蕴县| 六枝特区| 永平县| 周宁县| 广宗县| 家居| 平安县| 小金县| 泗阳县| 疏附县| 中牟县| 洛浦县| 江阴市| 宜都市|