タグ

Consulに関するinoueyuworksのブックマーク (2)

  • DockerコンテナをConsulで管理する方法 - Qiita

    はじめに Dockerを利用するとコンテナをぽこぽこ沢山立てることが多いと思います。 コンテナが沢山できるので、それらに対していかに効率よくアクセス出来るかが肝になります。 またコンテナで提供するサービスのポートをホストに割り当てて利用する場合(-pオプションを利用する場合)、 ポコポコ出来るコンテナのポートを静的に(-p 80:8080みたいに)割り当てるのは面倒です。 なので動的に(-p 80みたいにしてホストの適当なポートに)割り当てたいところです。 ただし、動的に割り当てるとどのコンテナがどのポートでサービスを提供しているか把握するのが難しくなり、さらにマルチホストになるとどのホストで動いているかどうかを把握する必要もあり、これも難しいです。 この辺うまいこと出来ないかな、ということでServiceDiscoveryといったらConsulですよねってことで組み合わせて使ってみます。

    DockerコンテナをConsulで管理する方法 - Qiita
    inoueyuworks
    inoueyuworks 2018/02/20
    service discovery
  • Service Discovery: Zookeeper vs etcd vs Consul

    The more services we have, the bigger the chance for a conflict to occur if we are using predefined ports. After all, there can be no two services listening on the same port. Managing a tight list of all the ports used by, lets say, hundred services is a challenge in itself. Add to that list the databases those services need and the number grows even more. For that reason we should deploy services

    Service Discovery: Zookeeper vs etcd vs Consul
    inoueyuworks
    inoueyuworks 2018/02/20
    service discovery
  • 1