Question: anyone please tell me how to do two container HA in the same VM?

Asked By
tovadavid
Asked At
2018-04-22 09:08:11

Found 15 possible answers.

User Answered At Possible Answer
tanyeongsheng 2018-04-22 12:49:40 https://medium.com/netflix-techblog/titus-the-netflix-container-management-platform-is-now-open-source-f868c9fb5436
tal.fishler 2018-04-23 13:54:27 @tovadavid you can put a loadbalancer in front (on the same VM for that matter). In order to update dynamically, you can do haproxy with consul-template and register the docker containers in consul.. Sounds like overkill, but it's a pretty simple setup
geekman2 2018-04-24 01:35:37 Bittersweet: Being given the green light to start implementing K8s. But only because the ECS implementation you spent 2 months on still isn't good enough to run production
agustinrecalde128 2018-04-24 01:40:56 Its not you, its ECS :stuck_out_tongue:
geekman2 2018-04-24 01:42:42 Oh, I know that It's just that it took 2 months to be able to prove that
technologiessunny 2018-04-24 11:49:12 we are using docker 17.06 and docker swarm ..suddenly, the logs of docker service logs are not showing up ..any ideas ?
amit.juschill 2018-04-27 06:48:18 Hey guys, It's a stateful application. And one of the requirements is that "all requests from a single user session must go to same container instance". I know it's a bad design but it's what it is for now. Any ideas how to achieve this with any container deployment tools/platform? I have a Tornado application that I am planning to containerize & deploy to production with ECS or Kubernets.
jhuizy 2018-04-27 06:52:39 what’s the motive behind containerising it?
amit.juschill 2018-04-27 06:53:42 So that it's easily deployable. I am not hell bent on containers. I basically want to make this installation super easy. It can be anything else as well. If you have any ideas I am open.
jhuizy 2018-04-27 06:54:04 how’s it currently being deployed?
amit.juschill 2018-04-27 06:54:52 It's early days. I basically git pull it on an EC2 machine and run the server in a screen. It's a demo until now.
jhuizy 2018-04-27 06:54:53 I’m sorta in the same boat, trying to make deployment easy. We’re building/testing in docker containers but deploying VMs (via packer) still havn’t looked into it, but you might be able to enable sticky sessions for alb using ECS (still deploy containers) may want to look into using packer to build AMIs and use sticky sessions behind AWS’s alb
amit.juschill 2018-04-27 06:56:27 Is sticky session a feature of ALB? Sorry I haven't heard about that. Or ECS
jhuizy 2018-04-27 06:56:54 ALB, it’s a common (? citation needed) feature of load balancers
amit.juschill 2018-04-27 06:57:23 ah I just read it here. this is pretty much all I need. https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html

Related Questions