All of lore.kernel.org
 help / color / mirror / Atom feed
* crush devices class types
@ 2017-01-22 16:44 Loic Dachary
  2017-01-23 13:38 ` Wido den Hollander
  2017-01-23 14:12 ` Sage Weil
  0 siblings, 2 replies; 25+ messages in thread
From: Loic Dachary @ 2017-01-22 16:44 UTC (permalink / raw)
  To: Sage Weil; +Cc: Ceph Development

Hi Sage,

You proposed an improvement to the crush map to address different device types (SSD, HDD, etc.)[1]. When learning how to create a crush map, I was indeed confused by the tricks required to create SSD only pools. After years of practice it feels more natural :-)

The source of my confusion was mostly because I had to use a hierarchical description to describe something that is not organized hierarchically. "The rack contains hosts that contain devices" is intuitive. "The rack contains hosts that contain ssd that contain devices" is counter intuitive. Changing:

    # devices
    device 0 osd.0
    device 1 osd.1
    device 2 osd.2
    device 3 osd.3

into:

    # devices
    device 0 osd.0 ssd
    device 1 osd.1 ssd
    device 2 osd.2 hdd
    device 3 osd.3 hdd

where ssd/hdd is the device class would be much better. However, using the device class like so:

    rule ssd {
            ruleset 1
            type replicated
            min_size 1
            max_size 10
            step take default:ssd
            step chooseleaf firstn 0 type host
            step emit
    }

looks arcane. Since the goal is to simplify the description for the first time user, maybe we could have something like:

    rule ssd {
            ruleset 1
            type replicated
            min_size 1
            max_size 10
            device class = ssd
            step take default
            step chooseleaf firstn 0 type host
            step emit
    }

What do you think ?

Cheers

[1] http://pad.ceph.com/p/crush-types http://tracker.ceph.com/projects/ceph/wiki/CDM_01-FEB-2017

-- 
Loïc Dachary, Artisan Logiciel Libre

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2017-06-28 17:54 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-22 16:44 crush devices class types Loic Dachary
2017-01-23 13:38 ` Wido den Hollander
2017-01-23 14:29   ` Sage Weil
2017-01-23 14:41     ` Loic Dachary
2017-02-02 20:57       ` Sage Weil
2017-02-03 10:52         ` Wido den Hollander
2017-02-03 10:57           ` John Spray
2017-02-03 12:23             ` Wido den Hollander
2017-06-28 17:54           ` Kyle Bader
2017-02-03 11:24         ` John Spray
2017-02-03 12:22         ` Loic Dachary
2017-02-03 12:46           ` John Spray
2017-02-03 12:52             ` Brett Niver
2017-02-03 13:21             ` Loic Dachary
2017-02-15 11:57               ` John Spray
2017-02-15 12:14                 ` Loic Dachary
2017-03-08  9:42                   ` Dan van der Ster
2017-03-08 10:05                     ` Loic Dachary
2017-03-08 14:39                     ` Sage Weil
2017-03-08 15:55                       ` Dan van der Ster
2017-03-08 17:00                         ` Sage Weil
     [not found]                           ` <201706281000476718115@gmail.com>
2017-06-28  4:26                             ` Sage Weil
2017-06-28  5:28                       ` Kyle Bader
2017-06-28 13:46                         ` Sage Weil
2017-01-23 14:12 ` Sage Weil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.