Re: Stretch cluster questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Thanks Gregory, I just updated the ticket with corrected formulas.

Thanks

El 6/5/22 a las 18:47, Gregory Farnum escribió:
On Fri, May 6, 2022 at 3:21 AM Eneko Lacunza <elacunza@xxxxxxxxx> wrote:

    Hi,

    Just made some basic tests, feature works nicely as far as I have
    tested :)

    I created 2 aditional pools each with a matching stretch rule:
    - size=2/min=1 (not advised I know)
    - size=6/min=3 (some kind of paranoid config)

    When entering degraded stretch mode, the following changed where
    made automatically:
    - size=4/min=2 -> size=4/min=1
    - size=2/min=1 -> size=2/min=0 (!)
    - size=6/min=3 -> size=6/min=1 (!)

    Not really sure about what calc is performed here, but:
    - It would be better to check not decrement min value below 1?
    - Changing min=3 to min=2 would be better (safer)?


Hah, probably. The calculation is just:
newp.min_size = pgi.second.min_size / 2; // only support 2 zones now

And then...


    Also, when stretch bucket was back online and after recovery was
    complete:
    - size=4/min=2 -> size=4/min=1 -> size=4/min=2
    - size=2/min=1 -> size=2/min=0 -> size=2/min=2
    - size=6/min=3 -> size=6/min=1 -> size=6/min=2

    This time it seems recovery is setting min=2 as a fixed value.


newp.min_size = g_conf().get_val<uint64_t>("mon_stretch_pool_min_size");


    Would it make sense that when entering degraded mode, min was set
    to min(round(size/2)-1, 1); and after recovery it was set to
    round(size/2)?


Yeah, that seems more sensible. I made a ticket: https://tracker.ceph.com/issues/55573

Thanks!
-Greg


    Otherwise awesome feature really! :-)

    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




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux