BlueStore 设备配置#yyds干货盘点#

网友投稿 277 2022-10-08

BlueStore 设备配置#yyds干货盘点#

1、设备配置 -- DEVICE

主要从 四个 方面进行 Bluestore 设备配置

1) 设备数量

2) 单个设备

3) 两个设备

4) 三个设备

2、设备数量

BlueStore manages either one, two, or (in certain cases) three storage devices.

一个 BlueStore OSD节点守护进程 可以管理 一个设备,两个设备 或者在某些情况下可以管理 三个设备;

3 单个设备

3.1 分区

In the simplest case, BlueStore consumes a single (primary) storage device. The storage device is normally partitioned into two parts:

A small partition is formatted with XFS and contains basic metadata for the OSD. This data directory includes information about the OSD (its identifier, which cluster it belongs to, and its private keyring.The rest of the device is normally a large partition occupying the rest of the device that is managed directly by BlueStore contains all of the actual data. This primary device is normally identifed by a block symlink in data directory.

在一些简单的使用情况下,BlueStore 只需要一个 主要的存储设备即可,这个存储设备通常被分成两个分区

一个是以 XFS文件系统的形式 来存放 OSD节点的相关元数据文件信息 的较小分区;OSD数据目录 下面是存放了 包含OSD自身的文件信息(唯一标识,属于哪个集群 和 秘钥)剩下的是个一个 占用设备剩余空间 的较大分区,被BlueStore直接管理 用来存放正常的数据;这个主设备、分区 被 OSD数据目录下 "block" 文件来 指向、识别

3.2 命令操作

当仅有一个 OSD设别可用时

A single-device BlueStore OSD can be provisioned with

#sudo ceph-disk prepare --bluestore <device>

4 两个设备

4.1 设备分类

通过两个设备来部署 BlueStore [1]

一个 "block" 所指向的设备一个 WAL设备

4.2 配置方式

两个设备时,有两种使用方式

1) 仅用一个设备

2) 全部使用

To specify a WAL device and/or DB device

#ceph-disk prepare --bluestore <device> [--block.wal <wal-device>]

5、三个设备

5.1 设备分类

It is also possible to deploy BlueStore across two additional devices

A WAL device can be used for BlueStore’s internal journal or write-ahead log. It is identified by the block.wal symlink in the data directory. It is only useful to use a WAL device if the device is faster than the primary device (e.g., when it is on an SSD and the primary device is an HDD).A DB device can be used for storing BlueStore’s internal metadata. BlueStore (or rather, the embedded RocksDB) will put as much metadata as it can on the DB device to improve performance. If the DB device fills up, metadata will spill back onto the primary device (where it would have been otherwise). Again, it is only helpful to provision a DB device if it is faster than the primary device.

通过三个设备来部署 BlueStore

一个 "block" 所指向的设备一个 WAL设备 可以被用来存放 BlueStore的内部 journal 和 write-ahead 日志;这个设备、分区被 OSD数据目录下的 "block.wal" 文件指向识别;仅当 WAL 设备 读写快于 "block"所指向的设备、分区时才能使用有效(例如,WAL为SSD盘,block 所指向的为 HDD盘)一个DB设备可以被用来存储BlueStore的内部元数据;BlueStore(或者确切的说是 内置的 RocksDB数据库) 将会把尽可能多的元数据存放到 DB设备中 来提高存储的性能;如果 DB设备写满了,元数据将会被 泄露到 "block"文件所指向的设备中(否则还能到哪里);再次强调,仅当 DB 设备 读写快于 "block"所指向的设备、分区时才能使用有效(例如,DB为SSD盘,block 所指向的为 HDD盘)

5.2 配置方式

三个设备时,有三种使用方式

1) 仅使用 一个设备

2) 使用两个设备

3) 全部使用

To specify a WAL device and/or DB device

#ceph-disk prepare --bluestore <device> [--block.wal <wal-device>] [--block.db <db-device>]

备注 :

[1] If there is only a small amount of fast storage available (e.g., less than a gigabyte), we recommend using it as a WAL device. If there is more, provisioning a DB device makes more sense. The BlueStore journal will always be placed on the fastest device available, so using a DB device will provide the same benefit that the WAL device would while also allowing additional metadata to be stored there (if it will fix).

[1] 如果仅有少量的高性能的存储设备可用(例如,小于 1GB),我们建议将它作为 WAL设备使用;如果有更多,提供作为 DB设备 更有意义;BlueStore journal 总是会被放置在 性能较好的、可用的存储设备上,so using a DB device will provide the same benefit that the WAL device would while also allowing additional metadata to be stored there (if it will fix)

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:金融科技十大技术趋势出炉,这两项技术关注度飙升!
下一篇:dependencies导致的Maven依赖出错包红问题解决方法
相关文章

 发表评论

暂时没有评论,来抢沙发吧~