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.
Trending in Guides/Tuts
# ~/src/livebook/.iex.exs
System.cmd("xdg-open", [ LivebookWeb.Endpoint.access_url() ] )
Because Livebook requires a unique passcode on ...
New
You probably already know that <span>{nil}</span> in a HEEX template produces <span> </span> when rendered. I fin...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
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
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
tristan
How are you keeping separate customer’s Erlang clusters. K8s network policies? It would be good to add TLS usage to the tutorial.
anuragg
Yes, firewalling through network policies. Regarding SSL, we terminate TLS at our L4 load balancer. Do you need e2e TLS?
tristan
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
Makes sense. We’ll add a guide for it.
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"])orNode.spawn(:"servicename@127.0.0.1", :"Module", fun, args).How would you recommend passing messages between topologies in this situation?
anuragg
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.