Ceph & Cinder & HA
Hi Florian,
I attended the Ceph & Cinder & HA session today at the summit. I've never really thought about strategies to implement HA and how Ceph can help. The extent of my knowledge on this topic is to make sure I do not confuse something that is "highly reliable" with something "highly available" ;-)
Guilio came to me after the session and I had to confess my ignorance on the topic of HA. Hence this mail and the hope that you can shed some light on this topic.
Cheers
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
Loic,
Was there an etherpad ? I'm curious as I didn't attend that one.
HA with Cinder mostly revolves around setting up multiple cinder-api and cinder-volume servers. Was there something else involved ? I can probably contribute my knowledge on that..
--
David Moreau Simard
Quoted 13 lines · Loic Dachary
Hi Florian,
I attended the Ceph & Cinder & HA session today at the summit. I've never really thought about strategies to implement HA and how Ceph can help. The extent of my knowledge on this topic is to make sure I do not confuse something that is "highly reliable" with something "highly available" ;-)
Guilio came to me after the session and I had to confess my ignorance on the topic of HA. Hence this mail and the hope that you can shed some light on this topic.
Cheers
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines · David Moreau Simard
Loic,
Was there an etherpad ? I'm curious as I didn't attend that one.
HA with Cinder mostly revolves around setting up multiple cinder-api and cinder-volume servers. Was there something else involved ? I can probably contribute my knowledge on that..
hi David,
indeed it would be great if we could get in touch! I'm still at the summit, in the TripleO room, in case you are around too.
So yes there is an etherpad and also a TripleO spec which goes a bit more into the details (linked from the etherpad):
https://etherpad.openstack.org/p/tripleo-kilo-l3-and-cinder-ha
The architecture we're considering is as follows:
keepalived
haproxy
ceph-mon
where haproxy and ceph-mon are always up on all openstack 'controller' nodes (also running cinder) and keepalived is taking care of managing a virtual ip hosted on one of those
Signature · 2 lines
Giulio Fidente GPG KEY: 08D733BA | IRC: giulivo
Giulio,
Right. The volume part is tricky because the volume is ultimately tied to one cinder-volume instance. I don't have a magic solution for that yet.
I'm not going to the contributor summit unfortunately.
I'm not personally a fan of keepalived since I've been spoiled by corosync. Let's see if we can chat about this later.
--
David Moreau Simard
Quoted 28 lines · Giulio Fidente
Quoted 6 lines · David Moreau Simard
Loic,
Was there an etherpad ? I'm curious as I didn't attend that one.
HA with Cinder mostly revolves around setting up multiple cinder-api and cinder-volume servers. Was there something else involved ? I can probably contribute my knowledge on that..
hi David,
indeed it would be great if we could get in touch! I'm still at the summit, in the TripleO room, in case you are around too.
So yes there is an etherpad and also a TripleO spec which goes a bit more into the details (linked from the etherpad):
https://etherpad.openstack.org/p/tripleo-kilo-l3-and-cinder-ha
The architecture we're considering is as follows:
keepalived
haproxy
ceph-monwhere haproxy and ceph-mon are always up on all openstack 'controller' nodes (also running cinder) and keepalived is taking care of managing a virtual ip hosted on one of those
Signature · 2 lines
Giulio Fidente GPG KEY: 08D733BA | IRC: giulivo
Quoted 4 lines · David Moreau Simard
Giulio,
Right. The volume part is tricky because the volume is ultimately tied to one cinder-volume instance. I don't have a magic solution for that yet.
yep but this can be worked around by customizing the host= setting in Cinder so all instances of cinder-volume look like a single 'host'
this was discussed with Cinder guy here, which I am in touch with too, and is known to expose some issues due to multiple cinder-volume instances potentially trying to get access to the same volume when multiple tasks are queued ... yet this is 'known stuff' and they are already working on a 'state machine' for Cinder which will fix the a/a scenario
until then, the idea is to deploy cinder-volume in a a/p scenario, yet customizing the host= setting
Signature · 2 lines
Giulio Fidente GPG KEY: 08D733BA | IRC: giulivo
How do you envision the HAProxy setup?
I’m in the dev room, we can discuss that.
HAProxy is a good idea but you need to be careful on how you monitor the ceph-mon.
Quoted 5 lines · Giulio Fidente
Quoted 2 lines · David Moreau Simard
Giulio,
Quoted 15 lines
Quoted 2 lines
Right. The volume part is tricky because the volume is ultimately tied to one cinder-volume instance. I don't have a magic solution for that yet.
yep but this can be worked around by customizing the host= setting in Cinder so all instances of cinder-volume look like a single 'host'
this was discussed with Cinder guy here, which I am in touch with too, and is known to expose some issues due to multiple cinder-volume instances potentially trying to get access to the same volume when multiple tasks are queued ... yet this is 'known stuff' and they are already working on a 'state machine' for Cinder which will fix the a/a scenario
until then, the idea is to deploy cinder-volume in a a/p scenario, yet customizing the host= setting
Signature · 6 lines
Giulio Fidente GPG KEY: 08D733BA | IRC: giulivo -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Cheers.
––––
Sébastien Han
Cloud Architect
"Always give 100%. Unless you're giving blood."
Phone: +33 (0)1 49 70 99 72
Mail: [email protected]
Address : 11 bis, rue Roquépine - 75008 Paris
Web : www.enovance.com - Twitter : @enovance
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Giulio Fidente
The architecture we're considering is as follows:
keepalived
haproxy
ceph-monwhere haproxy and ceph-mon are always up on all openstack 'controller' nodes (also running cinder) and keepalived is taking care of managing a virtual ip hosted on one of those
For Ceph, you almost certainly don't need to use keepalived or haproxy as all Ceph clients will fail over to the full set of monitor IPs (you need a way of distributing those IPs to the cluster - chef/puppet/ansible/etc/etc can handle that). Having keepalived/haproxy in the loop for ceph-mon is one more thing that could break.
We do run cinder services behind the controller/headnodes nodes via keepalived/haproxy - the "trick" such as it is for Ceph is to set all the hostnames in cinder to being the same and it works okay. See:
https://github.com/bloomberg/chef-bcpc/blob/master/cookbooks/bcpc/templates/default/cinder.conf.erb
We haven't seen any issues in an active/active configuration; though there are some MySQL schema deadlocks that aren't necessarily related to Ceph sitting in Cinder.
Cheers. -- justin
Indeed, that’s what we discussed with Giulio, using HAProxy for the Monitors is a bit overkill since the client is natively able to switch between different monitor source.
Loic, maybe you can elaborate a bit more on the usage of HAProxy for the monitors?
Quoted 30 lines · Justin Erenkrantz
Quoted 9 lines · Giulio Fidente
The architecture we're considering is as follows:
keepalived
haproxy
ceph-monwhere haproxy and ceph-mon are always up on all openstack 'controller' nodes (also running cinder) and keepalived is taking care of managing a virtual ip hosted on one of those
For Ceph, you almost certainly don't need to use keepalived or haproxy as all Ceph clients will fail over to the full set of monitor IPs (you need a way of distributing those IPs to the cluster - chef/puppet/ansible/etc/etc can handle that). Having keepalived/haproxy in the loop for ceph-mon is one more thing that could break.
We do run cinder services behind the controller/headnodes nodes via keepalived/haproxy - the "trick" such as it is for Ceph is to set all the hostnames in cinder to being the same and it works okay. See:
https://github.com/bloomberg/chef-bcpc/blob/master/cookbooks/bcpc/templates/default/cinder.conf.erb
We haven't seen any issues in an active/active configuration; though there are some MySQL schema deadlocks that aren't necessarily related to Ceph sitting in Cinder.
Quoted 5 lines
Cheers. -- justin
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Cheers.
––––
Sébastien Han
Cloud Architect
"Always give 100%. Unless you're giving blood."
Phone: +33 (0)1 49 70 99 72
Mail: [email protected]
Address : 11 bis, rue Roquépine - 75008 Paris
Web : www.enovance.com - Twitter : @enovance
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · Sebastien Han
Indeed, that’s what we discussed with Giulio, using HAProxy for the Monitors is a bit overkill since the client is natively able to switch between different monitor source.
Loic, maybe you can elaborate a bit more on the usage of HAProxy for the monitors?
Hi Sebastien,
I can't elaborate because I know nothing about HAProxy (well, close to nothing ;-). I'd like to learn more about how HA (via HAProxy or something else) can leverage Ceph in a meaningfull way thouhg, hence my interest for the topic.
Cheers
Quoted 50 lines
Quoted 31 lines · Justin Erenkrantz
Quoted 9 lines · Giulio Fidente
The architecture we're considering is as follows:
keepalived
haproxy
ceph-monwhere haproxy and ceph-mon are always up on all openstack 'controller' nodes (also running cinder) and keepalived is taking care of managing a virtual ip hosted on one of those
For Ceph, you almost certainly don't need to use keepalived or haproxy as all Ceph clients will fail over to the full set of monitor IPs (you need a way of distributing those IPs to the cluster - chef/puppet/ansible/etc/etc can handle that). Having keepalived/haproxy in the loop for ceph-mon is one more thing that could break.
We do run cinder services behind the controller/headnodes nodes via keepalived/haproxy - the "trick" such as it is for Ceph is to set all the hostnames in cinder to being the same and it works okay. See:
https://github.com/bloomberg/chef-bcpc/blob/master/cookbooks/bcpc/templates/default/cinder.conf.erb
We haven't seen any issues in an active/active configuration; though there are some MySQL schema deadlocks that aren't necessarily related to Ceph sitting in Cinder.
Quoted 5 lines
Cheers. -- justin
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlCheers.
––––
Sébastien Han
Cloud Architect"Always give 100%. Unless you're giving blood."
Phone: +33 (0)1 49 70 99 72
Mail: [email protected]
Address : 11 bis, rue Roquépine - 75008 Paris
Web : www.enovance.com - Twitter : @enovance
Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
Quoted 10 lines · Loic Dachary
Quoted 3 lines · Sebastien Han
Indeed, that’s what we discussed with Giulio, using HAProxy for the Monitors is a bit overkill since the client is natively able to switch between different monitor source.
Loic, maybe you can elaborate a bit more on the usage of HAProxy for the monitors?
Hi Sebastien,
I can't elaborate because I know nothing about HAProxy (well, close to nothing ;-). I'd like to learn more about how HA (via HAProxy or something else) can leverage Ceph in a meaningfull way thouhg, hence my interest for the topic.
Thanks all for helping.
Loic explained requests for the non-leader monitors go to the monitor anyway in which case I understand it makes more sense to avoid the complication of balancing the monitors.
Signature · 6 lines
Giulio Fidente GPG KEY: 08D733BA -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 22 lines · Giulio Fidente
Quoted 13 lines · Loic Dachary
Quoted 7 lines · Sebastien Han
Indeed, that’s what we discussed with Giulio, using HAProxy for the Monitors is a bit overkill since the client is natively able to switch between different monitor source.
Loic, maybe you can elaborate a bit more on the usage of HAProxy for the monitors?
Quoted 6 lines
Hi Sebastien,
I can't elaborate because I know nothing about HAProxy (well, close to nothing ;-). I'd like to learn more about how HA (via HAProxy or something else) can leverage Ceph in a meaningfull way thouhg, hence my interest for the topic.
Quoted 5 lines
Thanks all for helping.
Loic explained requests for the non-leader monitors go to the monitor anyway in which case I understand it makes more sense to avoid the complication of balancing the monitors.
Well, that's not quite right — *modification* requests get routed through the leader; read-only operations are handled by the non-leader monitors.
But I can't imagine how HAProxy would or could fit into that communications path, and the clients do switch independently between monitors as required (and there are a few different methods to approximate load-balancing in the system, although nothing too serious).
-Greg
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html