anuragg

anuragg

We finally have a Mix clustering guide to go with Phoenix deployment with Mix Releases.

Deploy an Elixir Cluster with Mix Releases and libcluster

The finished code for the guide is available at GitHub - render-examples/elixir_cluster: Distributed Elixir Cluster on Render with libcluster and Mix Releases · GitHub.

Meta: the Mix team has done a wonderful job learning from Distillery and making it even easier to cluster nodes, especially on platforms like Render (where I work) because we can auto-populate clustering variables for you.

Showing Posts 1 to 6

tristan

tristan

Rebar3 Core Team

How are you keeping separate customer’s Erlang clusters. K8s network policies? It would be good to add TLS usage to the tutorial.

anuragg

anuragg OP

Yes, firewalling through network policies. Regarding SSL, we terminate TLS at our L4 load balancer. Do you need e2e TLS?

tristan

tristan

Rebar3 Core Team

I mean TLS for distributed erlang so that all communication is encrypted. Erlang Distribution over TLS — OTP 29.0.2 (ssl 11.7.2)

anuragg

anuragg OP

Makes sense. We’ll add a guide for it.

jwarren92

jwarren92

This is really great, anuragg! Say I have a horizontally distributed application with microservices sitting in other pods. To connect the main application to the microservices, would I just add multiple topologies for them to connect to each other?

If so, as Render uses IP instead of FQDN for the DNS resolution, how would I send messages to and from the different topologies? Since the IP isn’t guaranteed to be the same each time a service goes up and down, I can’t quite call :rpc.call(node_name, :"Module", :function, [:"args"]) or Node.spawn(:"servicename@127.0.0.1", :"Module", fun, args).

How would you recommend passing messages between topologies in this situation?

anuragg

anuragg OP

Each Render service gets a unique internal-only URL of the type service-slug:port. You will see it on the dashboard once the service is deployed. You can connect to this URL from other services in your account; think of it as a built-in automatic VPC with preconfigured DNS. It sounds like this will work for your use case.

— All posts loaded —

Where Next? Top

Trending in Guides/Tuts Top

c4lliope
# ~/src/livebook/.iex.exs System.cmd("xdg-open", [ LivebookWeb.Endpoint.access_url() ] ) Because Livebook requires a unique passcode on ...
New
krasenyp
You probably already know that <span>{nil}</span> in a HEEX template produces <span> </span> when rendered. I fin...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews