madshargreave

madshargreave

Hi

Has anyone had any success with deploying dynamic hosts, for example an autoscaling server environment on AWS?

AFAIK Edeliver requires that you specify your deployment hosts upfront

Showing Posts 1 to 6

mkunikow

mkunikow

Most likely if you need to deploy service on orchestration platform like Kubernetes you need to pack it with container. Kubernetes automatically deploy services when needed or when service die.
AWS has Fully Managed Container Solution – Amazon Elastic Container Service (Amazon ECS) - Amazon Web Services
Google has Google Kubernetes Engine (GKE) | Google Cloud
But I don’t have any experience with this.

Clustering Elixir nodes on Kubernetes

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Simplest version is to hit the AWS EC2 API when you deploy and get a list of relevant instances. Use that to populate the hosts list.

AndrewDryga

AndrewDryga

We package our projects in a Docker containers, push them to Docker Hub and then deploy them to Kubernetes cluster. Cluster itself can be scaled via k8s Horizontal Pod Autoscaler combined with AWS AutoScaling Groups.

Also we have some sort of generator for our projects, you can use it to extract configuration samples: Nebo15/renew.

bitwalker

bitwalker

Leader

I do the same in our environment at work. We have an additional layer (OpenShift Origin) in there, but really it’s just automating some things that Kubernetes does not provide out of the box (namely source-to-image builds, an image registry, etc.). We push code to GitHub, it triggers a build in OpenShift, which pushes the container image to the internal registry, which in turn triggers automatic deployments to dev. We currently manually tag images into staging/prod environments due to our QA+release process, but in theory we could do full CI with this setup.

We use the autoscaling built-in to Kubernetes to control scaling up replicas for pods as needed, but we do not currently have our OpenShift hosts in an AWS autoscaling group, for…reasons I guess, I set things up initially, but have handed over control of that stuff to our ops team awhile ago, so it’s more or less not my call anymore.

DianaOlympos

DianaOlympos

Puppet/Chef/Ansible/any orchestration tool can autoscale and deploy. you do not have to use Docker/containers to get autoscaling and co if you are not ready or your organisation is not ready for it.

Erlang releases come with a lot of what you can need anyway.

bitwalker

bitwalker

Leader

I’m not sure I agree that those tools can handle concerns like autoscaling, A/B or Blue/Green deployments out of the box. Are they even strictly speaking orchestration tools anyway? My understanding is that they are configuration management tools, where part of your configuration is the state of your deployment environment (what tools are installed, etc.). Orchestration implies constant awareness of the environments current state, and reacting to both that state and external events (shifting load around, spinning up new instances, replacing crashed instances, scaling instances, etc.). That said, containers don’t necessarily help or hurt you with any of the above. Releases don’t solve any of those problems, but they aren’t meant to anyway.

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
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
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