Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.64 KB | None | 0 0
  1. ################################Производительность ceph на уровне rbd######################################
  2. В нашем случае мы создадим пользователя Ceph client.rbd с правом доступа к пулу rbd. По умолчанию, блочные устройства Ceph создаются в пуле rbd:
  3.  
  4. ceph auth get-or-create client.rbd mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=rbd'
  5.  
  6. Создать rbd образ c именем image_name с правами доступа client.admin(если на кластере, то не стоит замарачиватся с доступом, если на строронней машине, то стоит замарочится):
  7.  
  8. rbd create -p pool [image_name] --size 10240 --name client.admin
  9.  
  10. Параметры доступные для тестирования:
  11.  
  12.  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
  13.        proportion in readwrite] image-spec
  14.               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
  15.               4096, --io-threads 16, --io-total 1G, --io-pattern seq, --rw-mix-read 50.
  16. ПРИМЕР:
  17. Рандомная запись 4096 Кб в 64 потока объемом 10 гигабайт:
  18.  
  19. 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