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
Sumallyにおける Amazon Redshift 導入事例
Search
Noriaki Katayama
April 04, 2014
Technology
5
2.6k
Sumallyにおける Amazon Redshift 導入事例
How Sumally uses Redshift
Noriaki Katayama
April 04, 2014
Tweet
Share
Other Decks in Technology
See All in Technology
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
970
信頼性に挑む中で拡張できる・得られる1人のスキルセットとは?
ken5scal
2
530
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
5
600
TanStack Routerに移行するのかい しないのかい、どっちなんだい! / Are you going to migrate to TanStack Router or not? Which one is it?
kaminashi
0
580
VideoMamba: State Space Model for Efficient Video Understanding
chou500
0
190
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
Platform Engineering for Software Developers and Architects
syntasso
1
510
dev 補講: プロダクトセキュリティ / Product security overview
wa6sn
1
2.3k
RubyのWebアプリケーションを50倍速くする方法 / How to Make a Ruby Web Application 50 Times Faster
hogelog
3
940
TypeScript、上達の瞬間
sadnessojisan
46
13k
rootlessコンテナのすゝめ - 研究室サーバーでもできる安全なコンテナ管理
kitsuya0828
3
380
Featured
See All Featured
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
860
A Philosophy of Restraint
colly
203
16k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Facilitating Awesome Meetings
lara
50
6.1k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
120
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Fireside Chat
paigeccino
34
3k
A designer walks into a library…
pauljervisheath
203
24k
It's Worth the Effort
3n
183
27k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Transcript
4VNBMMZʹ͓͚Δ "NB[PO3FETIJGU ಋೖࣄྫ ݄ גࣜձࣾαϚϦʔยࢁݑত
ࣗݾհ wยࢁݑত ͔ͨ·ͷΓ͖͋ wגࣜձࣾαϚϦʔιϑτΣΞΤϯδχΞ wόοΫΤϯυશൠˍΠϯϑϥʢ"84ʣ w"84ྺɿ wલ৬ɿ:BIPP+BQBOͰݕࡧɾϞόΠϧ w!LBUBSJOH
ຊͷΞδΣϯμ 4VNBMMZͱ 3FETIJGUಋೖʹࢸͬͨܦҢ 3FETIJGUͷઃఆ·ΘΓ σʔλೖͷΓํʢ&5-ʣ
ͦͷଞ5JQT ·ͱΊ
4VNBMMZͱ
ͲͷΑ͏ͳϩάΛղੳ͍ͯ͠Δ͔ʁ w ΞΫςΟϏςΟϩάʢXBOU IBWFʣ w "#ςετ DMJDL WJFX w ΞΫηεϩάɺΤϥʔϩάɺϝʔϧϩάʜ
ʢͦͷଞඞཁʹԠͯ͡ར༻ʣ
3FETIJGUಋೖʹࢸͬͨܦҢ
ҎલͷϩάղੳγεςϜʢCFGPSFʣ
3FETIJGUಋೖલ w σʔλղੳ୲ऀ͕ඇΤϯδχΞʢ.JDSPTPGU&YDFMͱ"DDFTTͷѪՈʣ w "DDFTTʹ(#ͷนʢϩʔΧϧϚγϯͷ.Z42-0%#$ଓͰΓΔʣ w σʔλྔͷ૿Ճʹ͍ظؒσʔλͷूܭΛ͍ͨ͠
৽ϩάղੳج൫ʢBGUFSʣ $01: 42- ᶄ ᶃ
3FETIJGUಋೖޙ w શظؒͷσʔλΛૉૣ͘ूܭͰ͖ΔΑ͏ʹͳͬͨʢྫ͑ɺ"DDFTTͰ ͔͔͍ͬͯͨΫΤϦ͕ඵʹॖ͞Εͨʣ w ूܭ͕࣌ؒॖ͞Εͨɺෳࡶͳूܭʢܧଓௐࠪͱ͔ʣ͕Մೳʹͳ Γɺςετճ૿͢͜ͱ͕Ͱ͖ͨɻͦͷ݁Ռɺղੳͷ෯͕͕ͬͨ w 42-ֶशͰ͖ͯྑ͔ͬͨʢσʔλղੳ୲ऀஊʣ
3FETIJGUͷઃఆ·ΘΓ
3FETIJGUͷຊ൪ڥ w $MVTUFS5ZQF4JOHMF/PEF w /PEF5ZQFEXMBSHF w ;POFVTXFTUB w $16&$$PNQVUF6OJUT WJSUVBMDPSFT
w .FNPSZ(J# w 4UPSBHF%JTL(#44% w &$$MBTTJD
3FETIJGUͷӡ༻ํ w 4VNBMMZͷϝΠϯγεςϜ$BMJGPSOJB VTXFTU w 3FETIJGU0SFHPO VTXFTU Ͱӡ༻ w ཧతʹ$BMJGPSOJBͱ͍ۙˍ౦ژΑΓ͍҆
w 44% w ·ͩ·ͩσʔλྔ͕গͳ͍ͷͰ͍ํΛ͏ w (#͘Β͍·Ͱ)%%ΑΓ͓ಘ w ҙͷλΠϛϯάͰόοΫΞοϓ͠ͳ͍ʢࣗಈεφοϓγϣοτͷΈʣ w ϓϩμΫγϣϯ͔ΒΓ͞Εͨσʔλղੳ༻ڥͳͷͰ࠷ѱΫϥελ͕ ແ͘ͳͬͯ4͔Β෮چͰ͖Εྑ͍ʢ࣮ࡍͰ෮چͰ͖Δʣ
ͱΓ͋͑ͣઃఆ߲ͨ͠ w ΞΫηεཧ w ઐ༻ͷ*".Λ࡞ w ΫϥελʔηΩϡϦςΟάϧʔϓ w ࣾͱQTRMίϚϯυΛ࣮ߦ͢ΔΠϯελϯεͷ*1ΛڐՄ w
Ϋϥελʔ҉߸Խ w ىಈ࣌ʹ0/ w 44-ଓ w SFRVJSF@TTMUSVF
։ൃʹ͋ͨͬͯઃఆ߲ͨ͠ w Ϋϥελʹෳσʔλϕʔε w εςʔδϯά༻ w ຊ൪༻ w ઐ༻Ϣʔβ w
ཧऀ w σʔλղੳ୲
εΩʔϚઃܭ ΠϕϯτຖͰਖ਼نԽͰ͖ͳ͍ʢೖΕΔͷܕΛҰҙʹ ܾΊΒΕͳ͍ʣΧϥϜ+40/ͷΛೖΕ͓͖ͯɺ 3FETIJGUͷ+40/ؔΛͬͯूܭ͍ͯ͠Δ
దͳΤϯίʔυͷબ ࣗͰࡉ͔͘ΤϯίʔυΛࢦఆ͍͕ͯͨ͠ɺ 3FETIJGU͕ಋ͖ग़ͨ݁͠Ռͷํ͕σʔλαΠζ͕ খ࣮͘͞ߦ͔ͬͨ ॳճ$01:࣌ɺΤϯίʔυઃఆͳ͠ͰςʔϒϧΛఆٛ $0.161%"5&0/ࢦఆͰ$01:Λ࣮ߦͯ͠Πϯϙʔτʢ3FETIJGUଆ Ͱࣗಈݕग़ʣ
Ͱద༻͞ΕͨΤϯίʔυͰςʔϒϧΛఆٛɻ࠶Πϯϙʔτ͠ӡ༻։࢝ ӡ༻ޙɺ"/"-:;&$0.13&44*0/ͷ݁ՌΛʹϑΟʔυόοΫ
WBSDIBS NBY ͱCZUFEJDUͷΈ ߹Θͤ 3FETIJGUͷطͷόάʹΑΓ WBSDIBS NBY ʹCZUFEJDUΛࢦఆͨ͠ΧϥϜΛ࣋ͭςʔϒϧʢΠϯϙʔτ͢ ΔσʔλྔʹؔΘΒͣʣ$01:࣌ʹσΟεΫͷ༻͕ʹͳͬͯ͠·
͍ɺΠϯϙʔτ͢Δ͜ͱ͕Ͱ͖ͳ͍ʂ
&5-
σʔλΠϯϙʔτͷྲྀΕ χΞϦΞϧλΠϜσʔλߋ৽ w ߋ৽සͷૣ͍ϩάʢߦಈϩάʣΛqVFOUEܦ༝ͰΠϯϙʔτ w ִؒͰ$01:Λ࣮ߦʢִؒͰແ͍͕νϟϯΫαΠζͷ݉ Ͷ߹͍Ͱ͜ͷʹܾΊͨʣ Ϛελʔσʔλߋ৽
w ճߋ৽͢ΔΑ͏ͳϚελʔͱͳΔσʔλ w શ݅ߋ৽
χΞϦΞϧλΠϜߋ৽ աڈͷߦಈϩάͷม w αʔϏεϩʔϯν͔ΒͷߦಈϩάΛ$47ʹ$01:ͨ͠ w SPXTTFDʢσʔλͷಛੑʹΑΔͷͰҰ֓ʹݴ͑ͳ͍ʣ qVFOUE㱺4㱺3FETIJU
w ʙNTͰճͷ$01:࣮ߦ w qVFOUQMVHJOSFETIJGUʢλΠϜΞτ͢ΔͱqVFOUE͝ͱམͪΔʣ w qVFOUQMVHJOKTPOCVDLFUʢෆਖ਼ͳόΠτྻ͕ೖΔͱσʔλফ͑Δʣ w $01:ίϚϯυͷ+40/ΦϓγϣϯରԠʢࠓޙ͜ͷܗࣜʹҠߦ༧ఆʣ
Ϛελʔσʔλߋ৽ํ๏ w "84%BUB1JQFMJOF͕0SFHPOͰͷ$01:Λαϙʔτͯ͠ͳ͍ʢࠓରԠ͍͠ΔΈ͍ͨʣ w .POHP%#㱺4㱺3FETIJU w ҰεςʔδϯάςʔϒϧʹೖΕ͔ͯΒ"-5&3ͰΓସ͑Δ ग़యɿ8&# %#13&447PMQ੨ๆʮϦετΞτϛοΫચ͍ସ͑ʯ
$01:ίϚϯυΦϓγϣϯ w(;*1 w$0.161%"5&0'' w5*.&'03."5"4BVUP w *40ܗࣜʢ5 ʣbBVUPbͰ͠ ͔ೝࣝ͞Εͳ͍ʂ w$47+40/
͜Μͳͱ͖ʂ
$01:ίϚϯυͰΤϥʔ͕ى͖ͨΒʂ TFMFDUFSS@SFBTPOGSPNTUM@MPBE@FSSPSTPSEFSCZTUBSUUJNFEFTDMJNJU FSS@SFBTPO &YQFDUFJUIFSBOPCKFDUPSBSSBZBUSPPU
$01:ίϚϯυͷৄࡉͳਐঢ়گΛ Γ͍ͨʂ # select trim(name) tablename, col, to_char(sum(num_values), '999,999,999,999') count
from SVV_DISKUSAGE where name = 'event_log' group by name, col order by 1, 2; tablename | col | count -----------+-----+------------------ event_log | 0 | 101,532 event_log | 1 | 101,532 event_log | 2 | 101,532 event_log | 3 | 101,532 event_log | 4 | 101,532 event_log | 5 | 101,532 event_log | 6 | 101,532 event_log | 7 | 101,532 event_log | 8 | 101,532 event_log | 9 | 101,532 event_log | 10 | 101,532
σΟεΫ༻ྔΛѲ͍ͨ͠ʂ # select trim(name) name, count(*) size from SVV_DISKUSAGE where
name = 'event_log' group by name order by 1; name | size -----------+------ event_log | 23 ˞TJ[Fͷ୯Ґ.#
˞0SFHPO3*ɿ $1407 ͷՔಇίετ ສԁ
·ͱΊ w3FETIJGUʹͨ͜͠ͱͰεέʔϧΛؾʹͤͣ ԆʑͱϩάΛੵͰ͖ΔγεςϜ͕࡞Δ͜ͱ ͕Ͱ͖ͨ w͓ۚΛ͔͚ͣʹεϞʔϧελʔτͰ͖ͨ wͦͷ݁ՌɺղੳۀͷޮԽʹܨ͕ͬͨ wӡ༻࢝Ί͔ͨΓͰɺ·ͩϊϋ͕ແ͍ͷ Ͱใڞ༗͍͖͍ͯͨ͠
4VNBMMZͰ3FETIJGUͳͲͷٕज़ʹڵຯͷ͋Δ όοΫΤϯυΤϯδχΞΛืू͓ͯ͠Γ·͢ʂ IUUQTVNBMMZDPNKPCT