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
isucon3反省会資料
Search
Yosuke Furukawa
PRO
November 18, 2013
Programming
0
2k
isucon3反省会資料
Yosuke Furukawa
PRO
November 18, 2013
Tweet
Share
More Decks by Yosuke Furukawa
See All by Yosuke Furukawa
Welcome JSConf.jp 2024
yosuke_furukawa
PRO
0
270
tc39 x jsconf.jp Panel Discussion 2024
yosuke_furukawa
PRO
0
150
Removing Corepack
yosuke_furukawa
PRO
9
1.3k
JavaScript Runtime とはなにか
yosuke_furukawa
PRO
15
2.5k
Strip Types と Storage
yosuke_furukawa
PRO
4
340
Module Harmony について
yosuke_furukawa
PRO
3
1.5k
LTのやり方
yosuke_furukawa
PRO
16
2.2k
AppRouter Panel Talk
yosuke_furukawa
PRO
3
700
Node.js v22 で変わること
yosuke_furukawa
PRO
13
5.3k
Other Decks in Programming
See All in Programming
Outline View in SwiftUI
1024jp
1
350
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
3
730
React への依存を最小にするフロントエンド設計
takonda
19
5.3k
Tauriでネイティブアプリを作りたい
tsucchinoko
0
380
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
イベント駆動で成長して委員会
happymana
1
340
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
130
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
110
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
270
Click-free releases & the making of a CLI app
oheyadam
2
120
Jakarta EE meets AI
ivargrimstad
0
740
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
2.1k
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
How to Ace a Technical Interview
jacobian
276
23k
The Language of Interfaces
destraynor
154
24k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Code Review Best Practice
trishagee
64
17k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Done Done
chrislema
181
16k
KATA
mclloyd
29
14k
Thoughts on Productivity
jonyablonski
67
4.3k
Transcript
NODER ISUCON3 ࢀઓه
NODER @yosuke_furukawa Application Engineer @hakobera Application Engineer @hokaccha Application Engineer
NODER @yosuke_furukawa Application Engineer @hakobera Application Engineer @hokaccha Application Engineer
ALL Node.js developers No OPS side engineers
RESULT
RESULT FAILED orz….
ࣦ֨ͨ͠தͰ ҰҐͩͬͨΑ!!
ࣦ֨ͨ͠தͰ ҰҐͩͬͨΑ!! ಉ྅ͷํʑͷԠ
লձͱশͯࣗͨͪ͠ͷ يΛ͍ͨ͠!! ࠓि༵ۚʹISUCONল ձΓ·͢Αʔɻ Γʹધ
NODERܾ·Γࣄ • ༧બͷ࣌ͷলΛ׆͔ͯ͠࠷ॳͷҰ࣌ؒڥߏஙͱ ίʔυղੳͱϘτϧωοΫௐࠪ • ෳ༧Ͱ͖Δ͔Βෳͷߏ࡞ΕͨΒ·ͨprofile ͠ͳ͕ΒϘτϧωοΫௐࠪͱPDCAΛճͤΔΑ͏ʹɻ • ༻ҙ͞ΕͯΔίϚϯυࢼ͢ɻworkload =
1ͷ࣌ͷମແ ͍ࣄΛ͠ͳ͍Α͏ʹɻ
NEW RELIC͍͍ײ͡
NEW RELIC͍͍ײ͡ ϘτϧωοΫtimelineͱ imageͷget
SERVERS Reverse proxy/App DB App App Image
SERVERS Reverse proxy/App DB App App Image ϘτϧωοΫͷը૾ॲཧ෦ׂɻ DBૉʹׂɻ ͋ͱ͋·Γݥͤͣૉͳߏʹɻ
IMAGE • ʮը૾ॲཧ෦͕୯७ʹimagemagickͷ֎෦ίϚϯυݺग़ͩ͠ɾɾʯ • ʮ͜͜NodeֶԂࡇͰmash͞Μ͔Βͷൃදʹ͋ͬͨimagemagick-nativeΛ͓͏!ʯ • ࢀߟɿhttp://www.slideshare.net/maaash/nodefest2013?ref=http://maaash.jp/2013/10/ nodefest2013/
IMAGE • ʮը૾ॲཧ෦͕୯७ʹimagemagickͷ֎෦ίϚϯυݺग़ͩ͠ɾɾʯ • ʮ͜͜NodeֶԂࡇͰmash͞Μ͔Βͷൃදʹ͋ͬͨimagemagick-nativeΛ͓͏!ʯ • ࢀߟɿhttp://www.slideshare.net/maaash/nodefest2013?ref=http://maaash.jp/2013/10/ nodefest2013/ ͜ΕNodeֶԂͰͬͨͱͩ͜ঢ়ଶ
imagemagickͷίϚϯυݺग़͠ͱimagemagick-nativeͷੑೳࠩ (؆୯ͳը૾ͷαϜωΠϧ࡞ͷ࣌ͷॲཧ࣌ؒ(ms)ͷࠩ) 0 2.25 4.5 6.75 9 imagemagick imagemagick-native 0.87
8.07 9ഒߴ imagemagick-nativeΛͬͨཧ༝
࣮࡞ۀ͘͘ɻɻɻ
Ѩඓڣשͷਤ ͏Θ͊ɺෳߏʹͨ͠Β mysqlʹଓͰ͖Μ(ref࣮ͷόά)!! 413 Request Entity Too Large ͱ͔ status
failed got: 596ͱ͔มͳΤϥʔͰͯΔ imagemagickͷinstallʹΫΔɻ
·͊ͳΜͱ͔ͦͷลͷෆ۩߹ΛऔΓΓɺ είΞ12000ఔʹ্͕Δͷͷɻɻɻ
2013-11-09T17:15:32 [50122][CRITICAL] icon diff > 20%
2013-11-09T17:15:32 [50122][CRITICAL] icon diff > 20% ͜ͷը૾diffͷෆ۩߹͚ͩ औΓআ͚ͣɻɻɻ ͜ͷ࣌Ͱ͋ͱ 45ɻɻɻ
࠷ޙ·Ͱ৭ʑΔͷͷɻɻɻ
࠷ޙ·Ͱ৭ʑΔͷͷɻɻɻ ແཧͰͨ͠ɻɻɻɻɻɻɻɻɻ
͋ͱͰfujiwara͞Μʹฉ͍ͨΒ icon48x48ͰͦΕΛ32x32ʹ͢Δ͔Β ը૾ϥΠϒϥϦͰΞϧΰϦζϜมΘΔͱ݁ߏ ͕ࠩग़Δɻ ! ͋ͱಁաpngͱ͔ૹΔ͔ΒͦͷลΓ͡Όͳ͍͔ ͳʔ
(ƅшƅ)Űŕ! ಁաpngɻɻɻɻɻ
srd!!!! ! DEMO
मਖ਼ͨͬͨͷҰߦɻɻ ͜͜ͷformatΛະࢦ ఆ͡Όͳͯ͘ɺfile ϑΥʔϚοτΛࢦఆ͢ ΔΑ͏ʹ͠ͳ͍ͱμϝɻ
ল • ͱʹ͔͘མͪண͖͕ͳ͔ͬͨɻ • ը૾มϥΠϒϥϦͷ͍ํʹ׳Εͯͳ͍ॴ ͕ଟ͘ɺը࣭ௐͱ͔ଞͷύϥϝʔλʹ͕ ߦͬͯͯ࠷ޙ·ͰযΓʹযͬͯऴΘͬͨɻ
վળ • ݱΛ͖ͪΜͱѲͯ͠ରॲ͢ΔεΩϧͱܦݧෆ • ը૾νΣοΧʔ༻ҙ͞Εͯͨͷʹ͍͜ͳͤͳ͔ͬͨɻ • benchπʔϧtargetͷҙຯΛͪΌΜͱཧղͯ͠ͳ͔ͬͨɻ • Ҿ͖ग़͠ͷෆ •
WebDAVͱ͔ɻɻ
ڭ܇ • ਪଌ͢ΔͳɺܭଌͤΑɻ • ܭଌ͢Δ༨༟Λ࣋ͪɺͦͷ࣌ؒଳ·Ͱߟྀ ʹೖΕͯεέδϡʔϦϯάͤΑɻ
ඇৗʹྑ͍ʹ८Γ͋͑ͯɺײँ͓ͯ͠Γ·͢ɻ Λ࡞͍͍ͯͨͩͨ͠kayacͷօ༷ɺ ॴΛఏڙ͍͍ͯͨͩͨ͠LINEͷօ༷ɺ αʔόʔΛఏڙ͍͍ͯͨͩͨ͠DATA HOTELͷօ༷ɺ ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ ·ͨɺ͜ͷΑ͏ͳলձͷػձΛ͍͖ͨͩେมײँͯ͠·͢ɻ ࣍ճࢀՃ͠·͢ʂʂϦϕϯδ͍ͤͯͩ͘͞͞ʂʂ NoderҰಉ