Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PrometheusでKubernetesの高速オートスケールを実現した話

Atsushi Tanaka
June 01, 2018
1.6k

 PrometheusでKubernetesの高速オートスケールを実現した話

Atsushi Tanaka

June 01, 2018
Tweet

Transcript

  1. ©2018 Wantedly, Inc. Atsushi Tanaka • @bgpat • Infrastructure Engineer


    at Wantedly, Inc. • Favorites: Kubernetes, Docker, Golang
 JavaScript, Vue.js
  2. ©2018 Wantedly, Inc. εύΠΫʹڧ͍Φʔτεέʔϧ HPA + Custom Metrics ΞϓϦέʔγϣϯ͕ܾΊͨج४Ͱεέʔϧ w

    W͔Β࢖͑Δ w ྫ͑͹ʜϦΫΤετ਺ ίωΫγϣϯ਺ w Ξμϓλ͕ඞཁ
  3. ©2018 Wantedly, Inc. εύΠΫʹڧ͍Φʔτεέʔϧ HPA + Custom Metrics ΞϓϦέʔγϣϯ͕ܾΊͨج४Ͱεέʔϧ w

    W͔Β࢖͑Δ w ྫ͑͹ʜϦΫΤετ਺ ίωΫγϣϯ਺ w Ξμϓλ͕ඞཁˠ,VCFSOFUFTʹϝτϦΫεΛૹΔͨΊͷαʔόʔ
  4. ©2018 Wantedly, Inc. εέʔϧͷ൑ఆج४ /HJOYͷTUVC@TUBUVT location /basic_status { stub_status; }

    Active connections: 291 server accepts handled requests 16630948 16630948 31070465 Reading: 6 Writing: 179 Waiting: 106
  5. ©2018 Wantedly, Inc. εέʔϧͷ൑ఆج४ /HJOYͷTUVC@TUBUVT location /basic_status { stub_status; }

    Active connections: 291 server accepts handled requests 16630948 16630948 31070465 Reading: 6 Writing: 179 Waiting: 106 ଴ͪίωΫγϣϯ਺Λ࢖͏
  6. ©2018 Wantedly, Inc. εέʔϧͷ൑ఆج४ TUVC@TUBUVTΛFYQPSUFSͷܗࣜʹ͍ͨ͠ # HELP nginx_connections_current Number of

    connections currently processed by nginx # TYPE nginx_connections_current gauge nginx_connections_current{state="active"} 2 nginx_connections_current{state="reading"} 0 nginx_connections_current{state="waiting"} 1 nginx_connections_current{state="writing"} 1