amazon-ecs

Deploy gRPC supporting application on AWS using ALB

感情迁移 提交于 2019-12-10 13:50:44
问题 I have two microservices communicating using gRPC.Both are docker applications deployed on ECS. How do I configure them to use AWS ALB?In documentation it says ALB supports HTTP/2, however I can only see HTTP1 settings. My application has one gRPC port and one health check API at 8080.How do I configure that on ALB? 回答1: I don't believe you can. ALBs "support" HTTP2 but only in so far as they can accept HTTP2 and de-multiplex it before forwarding on HTTP1. You can use AWS's newer "NLB" though

How to launch a rails console in a Fargate container

被刻印的时光 ゝ 提交于 2019-12-10 11:29:31
问题 I would like to open a Rails console in a Fargate container to interact with my production installation However after searching the web and posting in the AWS forum I could not find an answer to this question Does anyone know how I can do this? This seems like a mandatory thing to have in any production environment and having no easy way to do it is kind of surprising coming from such a respected cloud provider as AWS Thanks 回答1: After trying lots of things, I found a way to open a Rails

Trouble deploying docker on AWS with ecs-cli

我怕爱的太早我们不能终老 提交于 2019-12-09 03:06:13
问题 I have a repo on ECS, have created a cluster using ecs-cli ecs-cli configure --region=us-west-2 --profile=<MY PROFILE> --cluster=cluster-1 ecs-cli up --capability-iam --keypair=<MY KEYPAIR> but then the next step to execute the compose file is when it fails ecs-cli compose --file docker-compose.yml --project-name drafter-project service up Here's my docker-compose.yml file: version: '2' services: rabbit: image: rabbitmq hostname: rabbit1 ports: - 5672:5672 - 15672:15672 drafter: build: .

ECS and Application Load Balancer

爱⌒轻易说出口 提交于 2019-12-08 17:20:39
问题 Ive been looking for some information on Cloud Formation with regards to creating a stack with ECS and ELB (Application Load Balancer) but unable to do so. I have created two Docker images each containing a Node.js microservice that listens on ports 3000 and 4000 . How do I go about creating my stack with ECS and ELB as mentioned ? I assume the Application Load Balancer can be configured to listen to both these ports ? A sample Cloud Formation template would really help. 回答1: The Application

What is difference between REPLICA and DAEMON service type in Amazon EC2 Container Service?

余生长醉 提交于 2019-12-08 15:36:35
问题 When I created service in Amazon EC2 Container Service, there were 2 options for service type: REPLICA and DAEMON. What is the exact difference between them? Replica services place and maintain a desired number of tasks across your cluster. Daemon services place and maintain one copy of your task for each container instance 回答1: Your ECS cluster most likely exists out of multiple EC2 instances (= Container instances). According to the AWS documentation Replica : The replica scheduling

AWS-ECS vs Kubernetes [closed]

*爱你&永不变心* 提交于 2019-12-08 10:43:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I am confused to understand the usage of Kubernetes in AWS, when AWS already has a similar service ECS for a while. ECS also does a good job in container orchestration via json/yaml file. What are the advantages of kubernetes over ECS? 回答1: Both are container orchestration

Ensure ECS only kills old tasks when new ones are ready

扶醉桌前 提交于 2019-12-08 07:14:51
问题 We have Docker-based ECS services where once the process is up, it needs to synchronize application state before it is ready to start serving requests. This can take some time (a number of seconds after the process starts). When using ECS Services, changing the task definition version triggers a rolling replacement of the tasks (good), but it does it too quickly. Once a task reaches a RUNNING state, the next task is killed. But RUNNING just means the process is started, it doesn't mean it's

Required Cloudformation Script for Blue/Green deployment on ECS

孤街醉人 提交于 2019-12-07 21:08:02
问题 I am trying to write a cloud-formation template for AWS ECS with blue green deployment support . This blue-green feature was added recently by AWS in ECS and couldn't find any reference for updating it in cloud-formation template. They have given documentation on, how to do it through UI but not through cloud-formation. I guess, AWS might not updated their cloud-formation documentation as it is a new feature. Any help to find the documentation would be appreciated. Thanking you in advance.

Ensure ECS only kills old tasks when new ones are ready

▼魔方 西西 提交于 2019-12-07 13:43:30
We have Docker-based ECS services where once the process is up, it needs to synchronize application state before it is ready to start serving requests. This can take some time (a number of seconds after the process starts). When using ECS Services, changing the task definition version triggers a rolling replacement of the tasks (good), but it does it too quickly. Once a task reaches a RUNNING state, the next task is killed. But RUNNING just means the process is started, it doesn't mean it's met all its own internal requirements to be ready to do work... in this case, not ready to serve

What will happen after the maximum number of images pushed to ECR repository

浪子不回头ぞ 提交于 2019-12-07 11:19:57
问题 According to Amazon ECR Service Limits, the maximum number of images per repository is 1,000. After exceeding this limit, the oldest image won't remove automatically. It blocks pushing to the repository. So I have to clean old images manually. Update: AWS introduced ECR Lifecycle Policies. We can now automate the cleanup with this. 回答1: Having experienced this exact scenario, I can confirm that upon reaching the limit, AWS will block you from pushing with this very unhelpful error message: