Registrator vs Consul Agent Client

802 views
Skip to first unread message

Madhu Jahagirdar

unread,
May 6, 2015, 7:02:58 AM5/6/15
to consu...@googlegroups.com
We are planning to use Registrator to automatically register services to consul instead of consult client. Should i also use consult client along with registrator ? if so what are the benefits consult client  provides ?

Regards,
Madhu Jahagirdar

Armon Dadgar

unread,
May 6, 2015, 1:41:33 PM5/6/15
to consu...@googlegroups.com, Madhu Jahagirdar
Hey Madhu,

Registrator performs bridging between the Docker event hub and the Consul agent.
The Consul client is still the one doing all the health checking and registration for the
node, and is required with Registrator.

Hope that helps!

Best Regards,
Armon Dadgar
--
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Madhu Jahagirdar

unread,
May 6, 2015, 8:48:06 PM5/6/15
to consu...@googlegroups.com

If i have 5 docker containers in a host machine, do I need to have consul client in each containers or only one client in the host machine ?
if i need to have one in each containers then i assume i need to use supervisord etc., to run multiple process in a container.

Let me know if my understanding is correct.

Regards,
Madhu Jahagirdar

Armon Dadgar

unread,
May 6, 2015, 8:50:30 PM5/6/15
to consu...@googlegroups.com, Madhu Jahagirdar
Hey Madhu,

You only need to run a single Consul agent for the entire machine, not per container.
Hope that helps!

Best Regards,
Armon Dadgar

From: Madhu Jahagirdar <madhu.ja...@gmail.com>
Reply: Madhu Jahagirdar <madhu.ja...@gmail.com>>
--

Madhu Jahagirdar

unread,
May 6, 2015, 9:39:32 PM5/6/15
to consu...@googlegroups.com
I was reading this blog, in which clients are present in each container ? am I reading it incorrectly ? 

Are there use cases where we have to use it per container ?

or 

Because we are using registrator its ok to use it per machine ?

Regards,
Madhu Jahagirdar
 

On Wednesday, 6 May 2015 16:32:58 UTC+5:30, Madhu Jahagirdar wrote:

Madhu Jahagirdar

unread,
May 6, 2015, 9:40:54 PM5/6/15
to consu...@googlegroups.com


On Wednesday, 6 May 2015 16:32:58 UTC+5:30, Madhu Jahagirdar wrote:

Subrangshu Sengupta

unread,
May 7, 2015, 2:46:43 AM5/7/15
to consu...@googlegroups.com, madhu.ja...@gmail.com
Hi Armon,

If I use the REST API of Consul and register services to a Consul agent running as a server on a node, do I still need a consul agent client for that? I guess I can get the health checks from the consul agent server directly as well??

If this is the case, then I can only use a Registrator to registor my services to consul agent server and then I can do away with consul agent client. Please let us know if the agent client provides any other functions which are not provided by Registrator.

Also please correct me if I am wrong.

Regards,
Subrangshu


On Wednesday, May 6, 2015 at 11:11:33 PM UTC+5:30, Armon Dadgar wrote:
Hey Madhu,

Registrator performs bridging between the Docker event hub and the Consul agent.
The Consul client is still the one doing all the health checking and registration for the
node, and is required with Registrator.

Hope that helps!

Best Regards,
Armon Dadgar

Dana Powers

unread,
May 7, 2015, 2:54:46 AM5/7/15
to Subrangshu Sengupta, consul-tool, madhu.ja...@gmail.com
does this thread answer your question? https://groups.google.com/forum/#!topic/consul-tool/jdYsvyOWSto

-Dana

Subrangshu Sengupta

unread,
May 7, 2015, 4:36:19 AM5/7/15
to consu...@googlegroups.com, subran...@gmail.com, madhu.ja...@gmail.com
Hi,

This thread answers my first part of the question as to whether to use HTTP API or agent client. Guess both do pretty much the same work. But I would still like to understand more as to if I use a Registrator as against the consul client.

So the second part of my question, is there anything which consul client provides and is not supported by a Registrator apart from the health checks and DNS querrying?

Regards,
Subrangshu

Armon Dadgar

unread,
May 7, 2015, 9:23:43 PM5/7/15
to consu...@googlegroups.com, Madhu Jahagirdar
Madhu,

It’s possible to use in both ways. You can run a consul agent in every container,
or just one per host. We recommend one per host, as it reduces the overhead
and is simpler to reason about.

Best Regards,
Armon Dadgar

From: Madhu Jahagirdar <madhu.ja...@gmail.com>
Reply: Madhu Jahagirdar <madhu.ja...@gmail.com>>
Date: May 6, 2015 at 6:39:34 PM
To: consu...@googlegroups.com <consu...@googlegroups.com>>
--

Armon Dadgar

unread,
May 7, 2015, 9:25:25 PM5/7/15
to Subrangshu Sengupta, consu...@googlegroups.com, subran...@gmail.com, madhu.ja...@gmail.com
Hey Subrangshu,

Every agent (server and client) exposes the same API, so there is no difference between them.
As with registrator, it is just a bridge between Docker and Consul. The Consul functionality is still
powered by the consul agent, and it is required.

Best Regards,
Armon Dadgar

François Prud'homme

unread,
May 11, 2015, 3:14:53 AM5/11/15
to consu...@googlegroups.com, subran...@gmail.com, madhu.ja...@gmail.com
Hello,

Just for information, a while ago, i have made a test with a consul agent on every containers... and when i was at ~ 40 agents, consul status of each node was flapping... it was only a small vm, but since this test i choose registrator : better to have an event system for each container launch/kill/delete/...

A little question for hashicorp : is it planned to have a tool like registrator maintained by hashicorp ?
It's the only part on my docker infra which is not made by hashicorp ;) Big thanks to all ! Any plan for a enterprise support ?

All the best,
François Prud'homme.

Armon Dadgar

unread,
May 11, 2015, 3:35:58 PM5/11/15
to François Prud'homme, consu...@googlegroups.com, subran...@gmail.com, madhu.ja...@gmail.com
Hey,

We do not plan on maintaining registrator ourselves, but we do sponsor GliderLabs to work on it.
Support for all of our tooling is offered through our Atlas product.

Hope that helps!

Best Regards,
Armon Dadgar
Reply all
Reply to author
Forward
0 new messages