Coder Social home page Coder Social logo

caravan's People

Contributors

kyos avatar uberbrodt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

caravan's Issues

Is Caravan compatible with consul 1.7+

HI,

We just upgraded from consul 1.6.4 to 1.9.1 and caravan is not working anymore with this error :

11:04:27.414 [warn]  [libcluster:caravan] unable to connect to :"[email protected]_de_1.consul"
11:04:34.418 [warn]  [libcluster:caravan] unable to connect to :"[email protected]_de_1.consul"
11:04:39.423 [error] 
** Cannot get connection id for node :"[email protected]_de_1.consul"

I have done some digging on the consul side and found they have changed the SRV response format hashicorp/consul#7360 and hashicorp/consul#7360

Instead of returning the node fqdn app-10-62-21-91.node.dev-eu_de_1.consul. it's returning this 0a3e172b.addr.dev-eu_de_1.consul.

And it broke Caravan.

Unable to use with distillery release remote_console

Hello,

I was trying to connect to a running node.
I'm connected in the container and I tried to run the remote_console (of distillery release) but it keep saying that the node isn't running.

How can I connect to it when using Caravan with Consul DNS?

I can't find any solution by my own.

THank's!

Help with debugging (Node.list() is empty)

Hello again! Wondering if you could help me debug my installation. Here is the configuration I've added to prod.exs:

config :libcluster,
  topologies: [
    caravan: [
      strategy: Caravan.Cluster.DnsStrategy,
      config: [
        query: "pangea.service.bowery",
        node_sname: "pangea",
        poll_interval: 5_000,
        dns_client: Caravan.DnsClient
      ]
    ]
  ]

When I ssh to a running instance of the service and dig pangea.service.bowery, I get the expected list of 4 IP addresses (this service is running on 4 nodes). But when I ssh to the node, open an iex session and run Node.list(), it returns an empty list, which makes me think it's not finding the other nodes. How should I go about debugging this? I don't see anything in our logs related to caravan or libcluster. How should I interrogate our installation to better understand where it's failing? Any help is much appreciated, thank you! Apologies in advance if this request is too vague - I can close it out if I'm barking up the wrong tree.

Compilation failure

Hello! I am trying to integrate caravan into our service so that I can deploy it to our nomad/consul cluster. Thanks for this great library. I added {:caravan, "~> 1.0.0"}, to mix.exs and ran mix.deps get. But when I try to compile, I get this error:

$ mix deps.compile caravan
==> caravan
Compiling 8 files (.ex)

== Compilation error in file lib/caravan/cluster/dns_strategy.ex ==
** (CompileError) lib/caravan/cluster/dns_strategy.ex:52: module Cluster.Strategy is not loaded and could not be found
    (elixir) expanding macro: Kernel.use/1
    lib/caravan/cluster/dns_strategy.ex:52: Caravan.Cluster.DnsStrategy (module)

I also tried explicitly adding {:libcluster, "~> 3.2.1"} to mix.exs and confirmed that libcluster was in my deps directory, but I still got the same error when I try to build the app or run mix deps.compile caravan. Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.