Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################Производительность ceph на уровне rbd######################################
- В нашем случае мы создадим пользователя Ceph client.rbd с правом доступа к пулу rbd. По умолчанию, блочные устройства Ceph создаются в пуле rbd:
- ceph auth get-or-create client.rbd mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=rbd'
- Создать rbd образ c именем image_name с правами доступа client.admin(если на кластере, то не стоит замарачиватся с доступом, если на строронней машине, то стоит замарочится):
- rbd create -p pool [image_name] --size 10240 --name client.admin
- Параметры доступные для тестирования:
- bench --io-type <read | write | readwrite | rw> [--io-size size-in-B/K/M/G/T] [--io-threads num-ios-in-flight] [--io-total size-in-B/K/M/G/T] [--io-pattern seq | rand] [--rw-mix-read read
- proportion in readwrite] image-spec
- Generate a series of IOs to the image and measure the IO throughput and latency. If no suffix is given, unit B is assumed for both --io-size and --io-total. Defaults are: --io-size
- 4096, --io-threads 16, --io-total 1G, --io-pattern seq, --rw-mix-read 50.
- ПРИМЕР:
- Рандомная запись 4096 Кб в 64 потока объемом 10 гигабайт:
- rbd bench --io-size 4096 --io-threads 64 --io-total 10G --io-pattern rand --io-type write bench/benchimg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement