Bug 1698526 - [DOC] adding description for firstn vs indep for crush rule in storage strategies
Summary: [DOC] adding description for firstn vs indep for crush rule in storage strate...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Documentation
Version: 3.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: 4.1
Assignee: Ranjini M N
QA Contact: Manohar Murthy
URL:
Whiteboard:
Depends On:
Blocks: 1809603
TreeView+ depends on / blocked
 
Reported: 2019-04-10 14:22 UTC by Gaurav Sitlani
Modified: 2020-06-04 10:27 UTC (History)
6 users (show)

Fixed In Version: RHCS 4.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-04 10:27:26 UTC
Embargoed:
rmandyam: needinfo-


Attachments (Terms of Use)

Description Gaurav Sitlani 2019-04-10 14:22:01 UTC
Description of problem:

For creation of crush rule for ec pools its really important to understand firstn and indep .

This should be added to our Storage Strategies guide : https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html-single/storage_strategies_guide/index#crush_rules

Mentioned here : http://docs.ceph.com/docs/master/rados/operations/crush-map-edits/#crush-map-rules

firstn versus indep

Description:	
Controls the replacement strategy CRUSH uses when items (OSDs) are marked down in the CRUSH map. If this rule is to be used with replicated pools it should be firstn and if it’s for erasure-coded pools it should be indep.

The reason has to do with how they behave when a previously-selected device fails. Let’s say you have a PG stored on OSDs 1, 2, 3, 4, 5. Then 3 goes down.

With the “firstn” mode, CRUSH simply adjusts its calculation to select 1 and 2, then selects 3 but discovers it’s down, so it retries and selects 4 and 5, and then goes on to select a new OSD 6. So the final CRUSH mapping change is 1, 2, 3, 4, 5 -> 1, 2, 4, 5, 6.

But if you’re storing an EC pool, that means you just changed the data mapped to OSDs 4, 5, and 6! So the “indep” mode attempts to not do that. You can instead expect it, when it selects the failed OSD 3, to try again and pick out 6, for a final transformation of: 1, 2, 3, 4, 5 -> 1, 2, 6, 4, 5

Comment 1 Giridhar Ramaraju 2019-08-05 13:10:34 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 2 Giridhar Ramaraju 2019-08-05 13:11:37 UTC
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. 

Regards,
Giri

Comment 7 Hemanth Kumar 2020-05-19 07:15:19 UTC
Looks good to me, moving to verified.


Note You need to log in before you can comment on or make changes to this bug.