Skip to contentSkip to conversation

Consul

DISCUSSION Loic Dachary 4 participants 6 messages Nov 5, 2014

lore
Share & tools
lore
#0 lore raw

Hi Ceph,

While at the OpenStack summit Dan Bode spoke highly of Consul ( https://consul.io/intro/index.html ). Its scope is new to me. Each individual feature is familiar but I'm not entirely sure if combining them into a single software is necessary. And I wonder how it could relate to Ceph. It is entirely possible that it does not even make sense to ask theses questions ;-)

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw

I concur with Dan on Consul. It's a great tool.

We use Consul in our Ceph environments but only as a layer above an installed Ceph installation. Health checks (for the mons/osds processes and ceph health) and service discovery (for the apps/services that run in Docker containers on top). We've started on an alerting tool if anyone has use for it -
https://github.com/AcalephStorage/consul-alerts

There is definitely some overlap on the cluster consensus side (Paxos vs Raft) and would be nice to reduce another moving part in our cluster but I would imagine the projects are too different internally to really combine the two of them.

The one thing that we'd wished for in Ceph before Consul existed was an easily accessible distributed KV store. Ceph has parts of it but exposing something like that with an easy CLI/REST API might provide the primitives for building higher level functionality that Consul provides. More than likely a distraction though since Consul does such a good job now.

On a side note, I haven't spoken to Dan in a while but curious on his thoughts on the overlap on Consul in config management land. Service discovery, remote execution, etc have some overlap in Puppet, Chef, etc. Related to Ceph we're pondering it as alternative for deploying mons/osds (larger scale ceph-deploy perhaps)

Quoted 9 lines · Loic Dachary

Hi Ceph,

While at the OpenStack summit Dan Bode spoke highly of Consul ( https://consul.io/intro/index.html ). Its scope is new to me. Each individual feature is familiar but I'm not entirely sure if combining them into a single software is necessary. And I wonder how it could relate to Ceph. It is entirely possible that it does not even make sense to ask theses questions ;-)

Cheers

--
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

#2 lore raw

Hi,

Quoted 14 lines · Hunter Nield

I concur with Dan on Consul. It's a great tool.

We use Consul in our Ceph environments but only as a layer above an installed Ceph installation. Health checks (for the mons/osds processes and ceph health) and service discovery (for the apps/services that run in Docker containers on top). We've started on an alerting tool if anyone has use for it -
https://github.com/AcalephStorage/consul-alerts

There is definitely some overlap on the cluster consensus side (Paxos vs Raft) and would be nice to reduce another moving part in our cluster but I would imagine the projects are too different internally to really combine the two of them.

Quoted 6 lines

The one thing that we'd wished for in Ceph before Consul existed was an easily accessible distributed KV store. Ceph has parts of it but exposing something like that with an easy CLI/REST API might provide the primitives for building higher level functionality that Consul provides. More than likely a distraction though since Consul does such a good job now.

I guess using radosgw with the S3/Swift API is close enough in terms of what Consul needs to store key/values. But maybe I don't understand what you mean by "easily accessible distributed KV store" and wrongly assume radosgw is easy enough ;-)

Quoted 5 lines

On a side note, I haven't spoken to Dan in a while but curious on his thoughts on the overlap on Consul in config management land. Service discovery, remote execution, etc have some overlap in Puppet, Chef, etc. Related to Ceph we're pondering it as alternative for deploying mons/osds (larger scale ceph-deploy perhaps)

Is there a framework for integration tests of some kind in Consul ? Although https://github.com/puppetlabs/beaker/ provides that for puppet, it is still rarely used and it is painful because even when used to develop a module, it is likely to break in unpredictable ways because module dependencies have no integration tests and suffer from frequent regressions. It would be great to see modern tools such as Consul encourage a more robust approach to integration tests with proper tooling from the start.

Cheers

Quoted 15 lines · Loic Dachary
Quoted 9 lines

Hi Ceph,

While at the OpenStack summit Dan Bode spoke highly of Consul ( https://consul.io/intro/index.html ). Its scope is new to me. Each individual feature is familiar but I'm not entirely sure if combining them into a single software is necessary. And I wonder how it could relate to Ceph. It is entirely possible that it does not even make sense to ask theses questions ;-)

Cheers

--
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

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#3 lore raw
Quoted 1 line · Loic Dachary

I guess using radosgw with the S3/Swift API is close enough in terms of what Consul needs to store key/values. But maybe I don't understand what you mean by "easily accessible distributed KV store" and wrongly assume radosgw is easy enough ;-)

Yes, we did consider RGW. We were originally looking for something simpler for internal use. More than librados but less than a full object storage gateway. We didn't need Apache or multi-tenant authentication, just somewhere to store keys and pull them out elsewhere. Closer to clustered Memcache or Redis. Consul provides most of that now and adds a few things like locks and long polling

Quoted 7 lines
Quoted 5 lines

On a side note, I haven't spoken to Dan in a while but curious on his thoughts on the overlap on Consul in config management land. Service discovery, remote execution, etc have some overlap in Puppet, Chef, etc. Related to Ceph we're pondering it as alternative for deploying mons/osds (larger scale ceph-deploy perhaps)

Is there a framework for integration tests of some kind in Consul ? Although https://github.com/puppetlabs/beaker/ provides that for puppet, it is still rarely used and it is painful because even when used to develop a module, it is likely to break in unpredictable ways because module dependencies have no integration tests and suffer from frequent regressions. It would be great to see modern tools such as Consul encourage a more robust approach to integration tests with proper tooling from the start.

I'm not entirely sure about integration tests. Certainly there are unit tests for the code but there doesn't seem to be much (that I can see) about testing things like external health checks or remote exec.

#4 lore raw
In reply to Hunter Nield
Quoted 14 lines · Hunter Nield

I concur with Dan on Consul. It's a great tool.

We use Consul in our Ceph environments but only as a layer above an installed Ceph installation. Health checks (for the mons/osds processes and ceph health) and service discovery (for the apps/services that run in Docker containers on top). We've started on an alerting tool if anyone has use for it -
https://github.com/AcalephStorage/consul-alerts

There is definitely some overlap on the cluster consensus side (Paxos vs Raft) and would be nice to reduce another moving part in our cluster but I would imagine the projects are too different internally to really combine the two of them.

Quoted 6 lines

The one thing that we'd wished for in Ceph before Consul existed was an easily accessible distributed KV store. Ceph has parts of it but exposing something like that with an easy CLI/REST API might provide the primitives for building higher level functionality that Consul provides. More than likely a distraction though since Consul does such a good job now.

Have you seen the kv storage service provided by the mons? It's pretty basic but is intended for stashing arbitrary config data. The original use-case we wanted it for was storing the encryption keys for dm-cypt (you can restrict individual ceph entities to a subset of the config-key namespace), but we never got around to finishing that work (dm-crypt keys are still stored in /etc/ceph/keys/ on the local node until we find a vocal user with clear requirements).

config-key del <key>                     delete <key>
config-key exists <key>                  check for <key>'s existence
config-key get <key>                     get <key>
config-key list                          list keys
config-key put <key> {<val>}             put <key>, value <val>

sage

#5 lore raw
In reply to Loic Dachary

Consul is an interesting thing. It had crossed my mind as a service monitoring/discovery thing for cases where:
* We have services other than Ceph in the IO path (e.g. apache, samba, nfs)
* The mons aren't happy (something to tell me which of my mons are up
even if there is no quorum)
* There might be multiple Ceph clusters and you want one health state
reflecting both clusters

Most other monitoring tools (e.g. calamari) take the shortcut of having a single central monitoring server -- something consul-esque that is lighter-weight and more resilient could be a step forward for cluster monitoring applications in more flexible and less enterprisey environments.

The "whole separate service but it's lightweight so that's okay" approach is embodied by Consul. I think there is an alternative path available that I think of as "we already have a consensus system, let's make a way to plug monitoring applications on top of it" -- a way to plug extra smarts into the mons could be interesting too.

John

Quoted 9 lines · Loic Dachary

Hi Ceph,

While at the OpenStack summit Dan Bode spoke highly of Consul ( https://consul.io/intro/index.html ). Its scope is new to me. Each individual feature is familiar but I'm not entirely sure if combining them into a single software is necessary. And I wonder how it could relate to Ceph. It is entirely possible that it does not even make sense to ask theses questions ;-)

Cheers

--
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