Re: [ceph-users] Force CRUSH to select specific osd as primary

2014-07-29 Thread Szymon Zacher
Sound good, but there is one problem. In my case I'll have as many hosts as pools used by some piece of software (via librados), and for performance purposes I want to put my primary osd for each pool on the same host as software. In that scenario I'll end up with as many new roots as hosts and I t

Re: [ceph-users] Force CRUSH to select specific osd as primary

2014-07-29 Thread Gregory Farnum
You could create a new root bucket which contains hosts 2 and 3; then use it instead of "default" in your special rule. That's probably what you want anyway (rather than potentially having two copies of the data on host 1). -Greg Software Engineer #42 @ http://inktank.com | http://ceph.com On Tue

[ceph-users] Force CRUSH to select specific osd as primary

2014-07-29 Thread Szymon Zacher
I have 3 osd on 3 different hosts: host1 host2 and host3. I'm trying to force CRUSH to use osd on host1 as primary for one of my pools. I can't use primary-affinity because i don't want to set this osd as primary for all my pools. I try to create simple CRUSH rule, which should select osd on host1