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
ウェブサービスのCentOS5撤退 / Centos5 Retiring For Web Se...
Search
Yuuki Tsubouchi (yuuk1)
June 28, 2016
Technology
2
770
ウェブサービスのCentOS5撤退 / Centos5 Retiring For Web Servicies
Hosting Casual Talks #3
Yuuki Tsubouchi (yuuk1)
June 28, 2016
Tweet
Share
More Decks by Yuuki Tsubouchi (yuuk1)
See All by Yuuki Tsubouchi (yuuk1)
博士論文公聴会: Scaling Telemetry Workloads in Cloud Applications: Techniques for Instrumentation, Storage, and Mining / PhD Defence
yuukit
0
14
博士学位論文予備審査 / Scaling Telemetry Workloads in Cloud Applications: Techniques for Instrumentation, Storage, and Mining
yuukit
1
1.7k
MetricSifter:クラウドアプリケーションにおける故障箇所特定の効率化のための多変量時系列データの特徴量削減 / FIT 2024
yuukit
2
180
工学としてのSRE再訪 / Revisiting SRE as Engineering
yuukit
19
12k
Cloudless Computingの論文紹介
yuukit
2
480
#SRE論文紹介 Detection is Better Than Cure: A Cloud Incidents Perspective V. Ganatra et. al., ESEC/FSE’23
yuukit
3
1.7k
エンジニアのためのSRE論文への招待 / Introduction to SRE Papers for Engineers
yuukit
2
11k
博士課程での研究まとめ 2023年1月版 / Summary of my research in the PhD course
yuukit
1
280
AI時代に向けたクラウドにおける信頼性エンジニアリングの未来構想 / DICOMO2022 6A-1
yuukit
7
3k
Other Decks in Technology
See All in Technology
Apache Iceberg Case Study in LY Corporation
lycorptech_jp
PRO
0
130
Exadata Database Service on Cloud@Customer セキュリティ、ネットワーク、および管理について
oracle4engineer
PRO
1
1.5k
IAMポリシーのAllow/Denyについて、改めて理解する
smt7174
2
160
人はなぜISUCONに夢中になるのか
kakehashi
PRO
6
1.7k
Goで作って学ぶWebSocket
ryuichi1208
3
2.3k
依存パッケージの更新はコツコツが勝つコツ! / phpcon_nagoya2025
blue_goheimochi
3
180
開発組織のための セキュアコーディング研修の始め方
flatt_security
3
2.7k
Building Products in the LLM Era
ymatsuwitter
10
6.1k
わたしのOSS活動
kazupon
2
300
偏光画像処理ライブラリを作った話
elerac
1
120
Swiftの “private” を テストする / Testing Swift "private"
yutailang0119
0
140
コンピュータビジョンの社会実装について考えていたらゲームを作っていた話
takmin
1
480
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
94
13k
Measuring & Analyzing Core Web Vitals
bluesmoon
6
250
Building Adaptive Systems
keathley
40
2.4k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
Building Applications with DynamoDB
mza
93
6.2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
How to Ace a Technical Interview
jacobian
276
23k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
1k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.5k
A better future with KSS
kneath
238
17k
Transcript
ΣϒαʔϏεͷ $FOU04ఫୀ Z@VVLJ )PTUJOH$BTVBM
@y_uuk1 id:y_uuki ΣϒΦϖϨʔγϣϯΤϯδχΞ @ͯͳ
CentOS 5 EOL
͋ͱ9ϲ݄
EOLΕϦεΫ • ੬ऑੑରԠ͕͘͠ͳΔ • OpenSSLͳͲͷηΩϡϦςΟύονͷ͋ͨͬͨ ύοέʔδͷߋ৽͕ͳ͘ͳΔ • ֎෦αΠτͷTLSࣄʹ͍͚ͭͳ͘ͳΓɺଓ Ͱ͖ͳ͘ͳΔ •
CentOS 5ͷOpenSSL0.9.8ܥͰݹ͍ • TLS 1.2ʹඇରԠ + SNI͕͑ͳ͍ͳͲ
1000+ CentOS5 100+ roles
ରࡦ͢Δαʔόͷબ • ϦόʔεϓϩΩγ • ֎෦͔ΒଓΛड͚͚ΔɻTLSଓ͢Δͷ༏ઌ • ΞϓϦέʔγϣϯαʔόɺόοναʔόɺϫʔΧ • ͳΜΒ͔ͷϏδωεॲཧΛ࣮ߦ͢Δαʔό •
Ϋϩʔϥ֎෦APIΛୟ͘ͱ͜ΖΛ༏ઌ • ϦεΫͷ͍σʔλϕʔεޙճ͠ • ͦͷଞ֎෦ͱͷͷͳ͍ཧܥαʔόޙճ͠
ରࡦํ • ☓ ࣗͰηΩϡϦςΟύονΛ͋ͯΔ • ࠷ऴखஈͱ͍ͨ͠ • ☓ CentOS 7ʹΞοϓάϨʔυ
• ◦ ଞͷσΟετϦҠߦ • 5લ͔Β৽αʔϏεDebian
DebianԽʢϓϩΩγʣ • ݱࡏͷڥ Apache2 or Nginx • httpd.conf͕؆୯ͳͷNginx • ؆୯Ͱͳ͍ͷApache
2ͷ࠷৽൛ • 300ߦͷRewriteRule • ςετίʔυΛॻ͍ͯಈ࡞֬ೝ͢Δ
https://github.com/yuuki/ yuuki/blob/master/misc/ proxy-config-test.md
DebianԽʢΞϓϦέʔγϣϯʣ • mod_perl1, mod_perl2ΛDebianͰϏϧυ • rpmԽ͞ΕͨCPANϞδϡʔϧཧΛ cpanfileԽ • XSͳͲCͷϥΠϒϥϦʹґଘ͢Δͷ͋ ΔͨΊɺDebianͰϏϧυͰ͖Δ͔Ͳ͏͔
mod_perl1, mod_perl2ΛϏϧυ • ϏϧυͰ͖ͳ͍ͷͳΒϞμϯͳڥʢPlackʣ ʹҠߦ͢Δඞཁ͕͋Δʢͷ͘͢͝େมʣ • DockerfileͰϏϧυ͠ϑΝΠϧαʔόʹઃஔ • ChefͰ /opt/httpdʹઃஔ͢Δ͚ͩ
• Perlґଘ͕͋ΔͨΊdebύοέʔδԽ͕໘
IUUQTHJUIVCDPNZVVLJEPDLFSpMFT USFFNBTUFSNPE@QFSM
cpanfileԽ • rpm -qa perl ͔Βੜ • ҰൃͰ carton install
͕௨ΔΑ͏ʹͳ Δ·Ͱͱʹ͔͕͘ΜΔ • ಈ࡞֬ೝͯ͠ಈ͔ͳ͔ͬͨΒɺCPAN ϞδϡʔϧͷόʔδϣϯͷࠩΛٙ͏
initεΫϦϓτ vs daemontools • Systemd … • daemontoolsͰࠔ͍ͬͯͳ͍ͷͰ daemontoolsԽ •
daemontoolsมԽ͕ͳ҆͘ఆͯ͠ ͍ͯࠓޙ҆৺
ม͑ͳ͍ͷ • Perlͷόʔδϣϯ • mod_perlϝδϟʔόʔδϣϯ • Apacheϝδϟʔόʔδϣϯ • CPANϞδϡʔϧͷόʔδϣϯ •
ݹ͍ͷ͕खʹೖΒͳ͍Մೳੑ͋Δ
Ұ൪େมͳͷ ಈ࡞֬ೝ
ಈ࡞֬ೝ • ݹ͍ΞϓϦέʔγϣϯςετ͕ͳ͍ • खಈͰ͕ΜΔ • ϓϩΩγઃఆͷςετͲ͏͢Δͷ͔ • PerlͰૉʹHTTPΛୟ͘ςετΛॻ ͍ͯΔ
ೖΕସ͑࡞ۀ • ϩʔυόϥϯαԼʹ1͚ͩೖ༷͠ ࢠݟ • ΤϥʔϩάͳͲΛSlackʹྲྀ͢ • ͕ى͖ͨΒ͢ • શೖΕସ͑
Debian8ͷEOL 2020-06ʢLTSʣ
͋ͱ4
ΞοϓσʔταΠΫϧ Λճ͠ଓ͚ΔͨΊʹ
࡞ۀ༰͓͞Β͍ • ৽OS্Ͱmod_perlϏϧυ • cpanfile࡞ • αʔόͷ࡞Γ͠ͱஔ͖͑ • ΞϓϦέʔγϣϯͷಈ࡞֬ೝ •
ϓϩΩγͷಈ࡞֬ೝ
ϛυϧΣΞґଘ͠ͳ͍ςετ • Apache => nginxͷΑ͏ʹಉׂ͡ͷϛ υϧΣΞΛϦϓϨΠε͢Δ͜ͱ͕͋Δ • ઃఆϑΝΠϧΛςετ͢ΔͷͰͳ͘ɺ ֎͔ΒΈͨৼΔ͍Λςετ͢Δ •
ϓϩΩγͷ߹ɺ࣮ࡍʹϦΫΤετ͢ ΔςετΛॻ͘
ΞϓϦέʔγϣϯڥͷ • ͍·ͩͱαʔό͝ͱ৽͘͠༻ҙͯ͠ೖΕସ ͕͑ඞཁ • ݹͯ͘ࠔΔͷΞϓϦέʔγϣϯ • ΞϓϦέʔγϣϯ࣮ߦڥΛಠཱͯ͠Ξο ϓσʔτ͍ͨ͠ •
ίϯςφԽ (chrootɺDocker)
͓ΘΓ