GithubHelp home page GithubHelp logo

isabella232 / bug-report-ecs-slowdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tabcorp/bug-report-ecs-slowdown

0.0 0.0 0.0 15 KB

Trying to reproduce a slowdown on ECS, where docker doesn't respond anymore

Shell 29.85% Python 70.15%

bug-report-ecs-slowdown's Introduction

ecs-slowdown

Trying to reproduce an issue on ECS where the agent becomes slow and times out.

Initial setup

You will need

  • an ECS cluster
  • at least 1 EC2 instance in the cluster
    • running Amazon Linux AMI 2015.09.g x86_64 ECS HVM GP2 (ami-7d9bbd1e)
    • whose instance role includes the AmazonEC2ContainerServiceforEC2Role policy

Reproducing the issue

In your terminal:

export AWS_DEFAULT_PROFILE=digital-tools    # as defined in ~/.aws
export AWS_DEFAULT_REGION=ap-southeast-2    # target AWS region

./loop --cluster test

This will create all services listed in services, and cycle through the images as quickly as possible (waiting for each deployment to be stable).

While this is running, hop on to the EC2 instance

# at first, most Docker commands only take a few milliseconds
[ec2-user@ip-0-0-0-0 ~]$ time docker ps
real  0m0.033s
user  0m0.024s
sys   0m0.008s

# give it 15min or so
# and some calls will randomly take a long time to execute
[ec2-user@ip-0-0-0-0 ~]$ time docker ps
real  0m38.700s
user  0m0.020s
sys   0m0.012s

You might get 1 slow command following by 10 fast ones. Just keep trying to call docker ps. Note that even after stopping all services, the command is still slow.

You can quickly stop all services using:

# sets desired_count = 0
./stop --cluster test

bug-report-ecs-slowdown's People

Contributors

rprieto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.