LoginSignup
2
2

More than 5 years have passed since last update.

ElasticBeanstalkの ecs-agentがcpuを食う問題

Last updated at Posted at 2016-09-13

TL;DR

  • ElasticBeanstalk w/ Multi-Container Docker の Base-Platformのlatest(2016/09/14現在) だと ecs-agent のcpuがどんどん積み上がっていく問題
  • 対象のbase-platform 64bit Amazon Linux 2016.03 v2.1.6 running Multi-container Docker 1.11.2 (Generic)
  • 原因不明 (おそらく ecs-agentのバグ)

2016/10/11追記

  • 2016/10/11時点のlatestの 64bit Amazon Linux 2016.03 v2.1.7 running Multi-container Docker 1.11.2 (Generic) で問題が起きないことを確認

動かしているContainer

  • supervisord経由で起動しているruby (alpine:3.4)
  • nginx (alpine:3.4)
  • td-agent (ubuntu:16.04)
  • mackerel-agent (alpine:3.4)
  • ecs-agent

グラフ

  • mackerel-plugin-docker で計測している Docker CPUのグラフ

    • ecs-agent_docker_cpu.jpg
  • mackerel-plugin-docker で計測している Docker Memoryのグラフ

    • ecs-agent_docker_memory.jpg
  • mackerel-plugin-linux で計測している Linux Context Switchesのグラフ

    • linux_context_switches.jpg
  • ElasticBeanstalkのMonitorのCPU Utilizationのグラフ

    • eb_cpu_utilization.jpg

原因

  • 特定できていない

対処

  • base-platformを 64bit Amazon Linux 2016.03 v2.1.3 running Multi-container Docker 1.11.1 (Generic) にしているときは、問題が起きていなかったので、base-platformの変更で回避
2
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2