Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
IDCFクラウドを使ってどこまでチューニングできるか試してみた
Search
abnoumaru
June 29, 2016
0
200
IDCFクラウドを使ってどこまでチューニングできるか試してみた
idcf meet up 2016/06/28
abnoumaru
June 29, 2016
Tweet
Share
More Decks by abnoumaru
See All by abnoumaru
3-shake SRE Tech Talk #10 LLMのO11yに触れる
abnoumaru
2
10k
マイクロサービスの現場からプラットフォームエンジニアリングの可能性を探る!
abnoumaru
2
9k
SLOいつ決めましょう?
abnoumaru
5
2.2k
あなたらしくSRE(公開用)
abnoumaru
4
7.4k
SRE Lounge 20180117
abnoumaru
0
6.6k
AWS認定ソリューションアーキテクトを受けた話
abnoumaru
1
1.9k
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Music & Morning Musume
bryan
46
6.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Being A Developer After 40
akosma
86
590k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Why Our Code Smells
bkeepers
PRO
334
57k
Transcript
IDCFΫϥυΛͬͯ Ͳ͜·ͰνϡʔχϯάͰ͖Δ͔ ࢼͯ͠Έͨ גࣜձࣾϋʔτϏʔπ ӡ༻ελοϑ Ѩ෦وথ
͡Ί·ͯ͠!
ࣗݾհ • ࢯ໊: Ѩ෦وথ • ৽ଔ1 ೖࣾ4 • (AWS-SA associate)
• AKBͳΒԣࢁ༝ґͪΌΜ(11Ґ)͕͖Ͱ͢
ࠓճొஃͷܦҢ
Ϛελʔͷґཔઈର…
ࣾձਓͱͳ͍ͬͨ·
͓͕ۚେࣄʂ
੫ۚʹڻ͘৽ଔ
νϡʔχϯάͷ࿅शݕূʹ ͓͔͚ۚͨ͘ͳ͍
֤छΫϥυαʔϏεͷ ແྉ/֨҆ใʹ͕ͳ͍
IDCFΫϥυ • 500ԁ͔Β͑Δʂ • 500ԁΫʔϙϯΒ͑Δ • ্ݶ͕͋ΔͷͰͦΕҎ্͍͔ͳ͍
ࠓճΓ͍ͨ͜ͱ • ISUCONͷ࿅श • ϕϯνϚʔΫɺڥ͕ެ։͞ΕͯΔͷͰ… • ͍͔ʹ͓ۚΛ͔͚ͳ͍͔ • είΞྑ͔ͬͨΒྑ͍ͳʙ
IDCFͰݐͯͨαʔό • light.S1 • 1CPU,1GB RAM • 15GB
ISUCONڥͷ࡞Γํ • ISUCON༧બಥഁͷ伴աڈΛղ͘͜ͱͳͷͰແྉͰࢼͤΔΑ͏ʹͨ͠ (Vagrant+Ansible) • http://d.hatena.ne.jp/tmatsuu/20150815/1439643715 • ࠓճֶੜֶ࣌ੜ2Ґͳ͕ΒෆඋͰࣦ֨ͱͳͬͨ ࢥ͍ग़ͷ͋ΔISUCON4༧બͷΛ༻ •
(IDCF͞ΜαόϑΣεͷͱ͖͋Γ͕ͱ͏͍͟͝·ͨ͠…!!!) • AnsibleҰؾʹ࡞
ͦ͏͍͔ͳ͍
ࢭ·ΔAnsible
[root@hakushika01 ~]# grep 'oom-killer' /var/log/messages Jun 27 15:42:50 hakushika01 kernel:
top invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0 Jun 27 16:58:19 hakushika01 kernel: mysqld invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
OOM Killer
͍͢͝໎͍·͕ͨ͠
ٽ͘ٽ͘՝ۚ
IDCFͰ࠶ͼݐͯͨαʔό • light.S2 • 1CPU,2GB RAM • 15GB • 1400ԁ…͏·͍΅͏140ຊ…
Ansibleޭ
࠷ॳͷϕϯν
None
࣌ؒͳ͍ͷͰҋӢʹ νϡʔχϯά͍ͯ͘͠
ࣄ͋Δ͝ͱʹى͖Δ
OOM Killer…
MySQLʹؔͯ͠ IndexషΔ͚ͩͰOOM Killer ͬͨ…
3͙࣌ؒΒ͍ઓͯ͠Ϊϒͨ͠
·ͱΊ • 1400ԁ͔͔ͬͪΌͬͨ… • ࠷େॠؒ෩Workload 1(ϕϯνϚʔΫͷෛՙ)Ͱ 592ͩͬͨ…orz • ৽ଔ͕OOM Killerʹ࿔͞ΕͪΌͬͨ…
• ͏ͪΐͬͱͪΌΜͱͨ͠είΞग़͔ͯ͠Β ࢀߟʹͨ͠هࣄͱͱʹϒϩάʹॻ͔͍ͤͯͩ͘͞
• גࣜձࣾϋʔτϏʔπͰҰॹʹಇؒ͘Λ ืू͓ͯ͠Γ·͢ɻ • த్ɺ৽ଔɺֶੜΞϧόΠτɺ ਵ࣌ืू͓ͯ͠Γ·͢ͷͰ͓ئ͍க͠·͢ʂ ࠷ޙʹ