Re: Ruleset vs replica count

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

 



 

Yes – ams5-ssd would have 2 replicas, ams6-ssd would have 1  (@size 3, -2 = 1)

 

Although for this ruleset the min_size should be set to at least 2, or more practically 3 or 4.

 

 

From: ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf Of Sinan Polat
Sent: Friday, 25 August 2017 3:02 AM
To: ceph-users@xxxxxxxx
Subject: Ruleset vs replica count

 

Hi,

 

In a Multi Datacenter Cluster I have the following rulesets:

------------------

rule ams5_ssd {

        ruleset 1

        type replicated

        min_size 1

        max_size 10

        step take ams5-ssd

        step chooseleaf firstn 2 type host

        step emit

        step take ams6-ssd

        step chooseleaf firstn -2 type host

        step emit

}

rule ams6_ssd {

        ruleset 2

        type replicated

        min_size 1

        max_size 10

        step take ams6-ssd

        step chooseleaf firstn 2 type host

        step emit

        step take ams5-ssd

        step chooseleaf firstn -2 type host

        step emit

}

------------------

 

The replication size is set to 3.

 

When for example ruleset 1 is used, how is the replication being done? Does it store 2 replica’s in ams5-ssd and store 1 replica in ams6-ssd? Or does it store 3 replicas in ams5-ssd and 3 replicas in ams6-ssd?

 

Thanks!

 

Sinan

Confidentiality: This email and any attachments are confidential and may be subject to copyright, legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They may only be copied, distributed or disclosed with the consent of the copyright owner. If you have received this email by mistake or by breach of the confidentiality clause, please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

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


  Powered by Linux