AstonJ

AstonJ

What kind of server/infrastructure are your Elixir apps hosted on?

We get quite a few hosting related questions, so I wonder whether it might be helpful if we can have a thread that talks about the kind of production set-ups everyone is using?

Do you use a dedicated server? VPS? The Cloud? Or…?

Most Liked

jesse

jesse

I use gigalixir.com, but I’m the founder so most likely biased :slight_smile: happy to answer any questions about it.

fnux

fnux

I’m managing the infrastructure of a small startup developing a phoenix application. Our main host is a dedicated server serving as dom0 (xen hypervisor, dns server, firewall, vpn) hosting the following VMs:

  • Production
  • Staging
  • Internal services (gitlab, …)
  • Monitoring (Icinga, munin, …)
  • Critical services (dns, mail, certificates, ldap, …)

Backups are managed from a remote server using rsnapshot and barman (for postgres).

The phoenix application is built and tested by gitlab-ci. A merge to the deployment branch automatically builds the application for production and deploys it to the staging environment. If everything went fine, the repository’s administrator can manually trigger the final job of the pipeline to deploy to production [0]. We build the release using distillery (+ conform): we don’t have (and don’t want!) elixir installed on the production host [1].

All our hosts run debian and we don’t use containers [2] for now : the overhead is too high for the current scale of our infrastructure/services. Don’t use containers unless you need to, they add a layer of complexity and often create as many problems as they solve, if no more.

It’s a basic overview, feel free to ask for details (software, config, scripts, …) :slight_smile:

[0] There are a few more checks not relevant for this overview (versions, configuration, …)
[1] If elixir, mix & co are installed on your production host, you’re most likely doing it wrong
[2] Except for gitlab-ci

stefanjarina

stefanjarina

Used to use DigitalOcean, but for about a year now I use Scaleway for almost all my applications. However I am also investigating Gigalixir

Where Next?

Popular in Discussions Top

Donovan
Hello everyone, I’m so glad to have discovered this awesome community. Thanks for creating it! This is my second post, and apologies for...
New
Jayshua
I recently came across the javascript library htmx. It reminded me a lot of liveview so I thought the community here might be interested....
New
mikl
I wanted to capitalize a string, and tried using String.capitalize(). That generally works well, until you try to capitalize a word like...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
New
mmmrrr
Just saw that dhh announced https://hotwire.dev/ Is it just me or is this essentially live view? :smiley: Although I like the “iFrame-e...
New
nburkley
AWS re:Invent is on at the moment with some interesting announcements. One new feature in particular is the Lambda Runtime API for AWS La...
New
fireproofsocks
I’ve been working on an Elixir project that has required a lot of scripting. I usually reach for Elixir because I like it more (and in th...
New
PragTob
Hey everyone, this has been brewing in my head some time and it came up again while reading Adopting Elixir. GenServers, supervisors et...
New
PragTob
Hey everyone, this has been on my mind for some time and I’d love your input on it! TLDR: I feel like maps are superioer for storing and...
New

Other popular topics Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement