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
220
IDCFクラウドを使ってどこまでチューニングできるか試してみた
idcf meet up 2016/06/28
abnoumaru
June 29, 2016
Tweet
Share
More Decks by abnoumaru
See All by abnoumaru
IVRyエンジニア忘年LT大会2024 クリティカルユーザージャーニーの整理
abnoumaru
0
210
ゆるSRE勉強会 #8 組織的にSREが始まる中で意識したこと
abnoumaru
2
1.5k
3-shake SRE Tech Talk #10 LLMのO11yに触れる
abnoumaru
2
10k
マイクロサービスの現場からプラットフォームエンジニアリングの可能性を探る!
abnoumaru
2
9.7k
SLOいつ決めましょう?
abnoumaru
5
2.3k
あなたらしくSRE(公開用)
abnoumaru
5
7.7k
SRE Lounge 20180117
abnoumaru
0
6.6k
AWS認定ソリューションアーキテクトを受けた話
abnoumaru
1
1.9k
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
192
16k
A better future with KSS
kneath
238
17k
Designing for humans not robots
tammielis
250
25k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
A designer walks into a library…
pauljervisheath
205
24k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
3
170
How GitHub (no longer) Works
holman
312
140k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Designing Experiences People Love
moore
139
23k
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ʹ࿔͞ΕͪΌͬͨ…
• ͏ͪΐͬͱͪΌΜͱͨ͠είΞग़͔ͯ͠Β ࢀߟʹͨ͠هࣄͱͱʹϒϩάʹॻ͔͍ͤͯͩ͘͞
• גࣜձࣾϋʔτϏʔπͰҰॹʹಇؒ͘Λ ืू͓ͯ͠Γ·͢ɻ • த్ɺ৽ଔɺֶੜΞϧόΠτɺ ਵ࣌ืू͓ͯ͠Γ·͢ͷͰ͓ئ͍க͠·͢ʂ ࠷ޙʹ