uberbrodt / caravan Goto Github PK
View Code? Open in Web Editor NEWepmd implementation and other OTP apps to make running Erlang/Elixir apps with Nomad and Consul easier.
License: Apache License 2.0
epmd implementation and other OTP apps to make running Erlang/Elixir apps with Nomad and Consul easier.
License: Apache License 2.0
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.
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!
Something like:
defmodule :caravan_dist do
# …
end
would greatly improve readability of command line arguments.
I receive this error only with the --sname flag. without this flag no error occur ...
I use Elixir 1.7.3 and Erlang 21
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.