From 9491f814193ab2111297542d9c302e68a7d43023 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 16 Nov 2022 19:22:21 +0300 Subject: [PATCH] Add missing documentation for OSD tags --- docs/config/pool.en.md | 11 ++++++++++- docs/config/pool.ru.md | 14 +++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/config/pool.en.md b/docs/config/pool.en.md index 094bc89d..931fafa6 100644 --- a/docs/config/pool.en.md +++ b/docs/config/pool.en.md @@ -82,7 +82,7 @@ Parent node reference is required for intermediate tree nodes. Separate OSD settings are set in etc keys `/vitastor/config/osd/` in JSON format `{"":}`. -As of now, there is only one setting: +As of now, two settings are supported: ## reweight @@ -96,6 +96,15 @@ This means an OSD configured with reweight lower than 1 receives less PGs than it normally would. An OSD with reweight = 0 won't store any data. You can set reweight to 0 to trigger rebalance and remove all data from an OSD. +## tags + +- Type: string or array of strings + +Sets tag or multiple tags for this OSD. Tags can be used to group OSDs into +subsets and then use a specific subset for pool instead of all OSDs. +For example you can mark SSD OSDs with tag "ssd" and HDD OSDs with "hdd" and +such tags will work as device classes. + # Pool parameters ## name diff --git a/docs/config/pool.ru.md b/docs/config/pool.ru.md index 2a52c380..c7082269 100644 --- a/docs/config/pool.ru.md +++ b/docs/config/pool.ru.md @@ -81,7 +81,10 @@ Настройки отдельных OSD задаются в ключах etcd `/vitastor/config/osd/` в JSON-формате `{"":}`. -На данный момент поддерживается одна настройка: +На данный момент поддерживаются две настройки: + +- [reweight](#reweight) +- [tags](#tags) ## reweight @@ -96,6 +99,15 @@ хранении данных вообще. Вы можете установить reweight в 0, чтобы убрать все данные с OSD. +## tags + +- Тип: строка или массив строк + +Задаёт тег или набор тегов для данного OSD. Теги можно использовать, чтобы +делить OSD на множества и потом размещать пул только на части OSD, а не на +всех. Можно, например, пометить SSD OSD тегом "ssd", а HDD тегом "hdd", в +этом смысле теги работают аналогично классам устройств. + # Параметры ## name