Hi Maximilian,
El 7/5/22 a las 19:17, Maximilian Hill escribió:
On 5/5/22 5:19 AM, Gregory Farnum wrote:
On Wed, May 4, 2022 at 1:25 AM Eneko Lacunza <elacunza@xxxxxxxxx> wrote:
- Can we have multiple different crush rules in a stretch cluster? I'm
asking this because the command for stretch mode activation asks for a
rule...
Right, so what happens there is any pool with a default rule gets
switched to the specified CRUSH rule. That doesn't stop you from
changing the rule after engaging stretch mode, or giving it a
non-default rule ahead of time. You just have to be careful to make
sure it satisfies the stretch mode rules about placing across data
centers.
So the only purpose of the "stretch_rule" param to
"enable_stretch_mode"
is replacing default replicated rule?
If so, when stretch mode is activated, the described special behaviour
applies to all crush rules/pools:
- the OSDs will only take PGs active when they peer across data centers
(or whatever other CRUSH bucket type you specified), assuming both
are alive
- Pools will increase in size from the default 3 to 4, expecting 2
copies
in each site (for size=2 pools will it increase to 4 too?)
Is this accurate?
Yep! AFAIK most clusters just use the default pool for replication,
barring
mixed media types. *shrug*
This would mean, if I already had a crush rule, like the following, I
wouldn't really need to enable stretch mode:
type replicated
min_size 4
max_size 4
step take room0 ssd
step chooseleaf firstn 2 type host
step emit
step take room1 ssd
step chooseleaf firstn -2 type host
step emit
Am I right about that?
With your configuration, if one DC goes down all I/O will stop (min_size=4!)
Further, I/O will stop even with one OSD down, for the same reason.
Enabling stretch mode will keep I/O going without intervention.
Cheers
EnekoLacunza
Director Técnico | Zuzendari teknikoa
Binovo IT Human Project
943 569 206 <tel:943 569 206>
elacunza@xxxxxxxxx <mailto:elacunza@xxxxxxxxx>
binovo.es <//binovo.es>
Astigarragako Bidea, 2 - 2 izda. Oficina 10-11, 20180 Oiartzun
youtube <https://www.youtube.com/user/CANALBINOVO/>
linkedin <https://www.linkedin.com/company/37269706/>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx