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
gcloud move 10 times in 4 hours
Search
Hisashi SOGA
PRO
September 26, 2017
Technology
0
1.1k
gcloud move 10 times in 4 hours
Google Cloud Platform の機能を利用して、4時間のメンテナンスで 10 台のインスタンスのリージョン移行を成功裏に complete した話
Hisashi SOGA
PRO
September 26, 2017
Tweet
Share
More Decks by Hisashi SOGA
See All by Hisashi SOGA
最近のSRE支援ニーズ考察 | sogaoh's LT @ Road to SRE NEXT@札幌
sogaoh
PRO
1
29
サーバーなしでWordPress運用、できますよ。
sogaoh
PRO
0
220
複業SRE、どこまでいける?++
sogaoh
PRO
0
53
複業SRE、どこまでいける?
sogaoh
PRO
0
330
Webアプリケーション周りのいろいろなアップグレード戦記
sogaoh
PRO
0
170
NPOと取り組むスモールスタートな業務IT化 | TRACK C8
sogaoh
PRO
0
87
業務委託やコミュニティメンバーでも活用できる IAM Identity Center
sogaoh
PRO
0
1.5k
PHPプロダクトのDeployをラクにするCLIツールたち
sogaoh
PRO
1
740
Laravelプロダクト Fargate化への道
sogaoh
PRO
2
1.3k
Other Decks in Technology
See All in Technology
フォーイット_エンジニア向け会社紹介資料_Forit_Company_Profile.pdf
forit_tech
1
1.7k
Oracle Database Technology Night #87-1 : Exadata Database Service on Exascale Infrastructure(ExaDB-XS)サービス詳細
oracle4engineer
PRO
1
220
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
3
540
クラウド関連のインシデントケースを収集して見えてきたもの
lhazy
9
1.9k
Amazon Aurora のバージョンアップ手法について
smt7174
2
190
JAWS FESTA 2024「バスロケ」GPS×サーバーレスの開発と運用の舞台裏/jawsfesta2024-bus-gps-serverless
ma2shita
3
340
アジリティを高めるテストマネジメント #QiitaQualityForward
makky_tyuyan
1
280
"TEAM"を導入したら最高のエンジニア"Team"を実現できた / Deploying "TEAM" and Building the Best Engineering "Team"
yuj1osm
1
240
手を動かしてレベルアップしよう!
maruto
0
250
30→150人のエンジニア組織拡大に伴うアジャイル文化を醸成する役割と取り組みの変化
nagata03
0
350
どちらかだけじゃもったいないかも? ECSとEKSを適材適所で併用するメリット、運用課題とそれらの対応について
tk3fftk
2
280
サイト信頼性エンジニアリングとAmazon Web Services / SRE and AWS
ymotongpoo
7
1.8k
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Fontdeck: Realign not Redesign
paulrobertlloyd
83
5.4k
How to Ace a Technical Interview
jacobian
276
23k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.4k
Product Roadmaps are Hard
iamctodd
PRO
51
11k
Speed Design
sergeychernyshev
27
820
Stop Working from a Prison Cell
hatefulcrawdad
268
20k
How to Think Like a Performance Engineer
csswizardry
22
1.4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Navigating Team Friction
lara
183
15k
Transcript
gcloud move 10 times in 4 hours 2017/09/27 @sogaoh 1
Presentation Slide at https://gcpug-tokyo.connpass.com/event/66224/
AGENDA • ࣗݾհ • ϛογϣϯ • ରγεςϜ֓ཁ • ͜͏ͬͨ •
ϐϯν • ͓ΘΓʹ 2
ࣗݾհ • ીզɹԝ / Hisashi SOGA – Twitter : @sogaohɹ,
GitHub : sogaoh • Marketing Applications, Inc. / MApps – WebΞϯέʔτ࡞ɾ৴αʔϏε forSurvey – एճऩࠃNo.1ͷ MApps Panel • DevOpsਪਐࣨ – ࣄۀϦεΫ͔ΒձࣾΛकΔݱࡏ 5 ਓͷ Team – Data Center ͔Β Public Cloud ͷҠసͳͲʹऔΓΈத 3
ϛογϣϯ • γεςϜͷશαʔόʔͷϦʔδϣϯΛมߋ͢Δ – Ҋ݅ड࣌ͷʮ͓ଋʯ • ϝϯςφϯεʹͯ͠γεςϜΛࢭΊͯΑ͍ͷ̐࣌ؒ – ͱ͋Δฏͷະ໌ʹ࣮ࢪ 4
ରγεςϜ֓ཁ 5
͜͏ͬͨ • λʔϛφϧͱཧίϯιʔϧΛݟͳ͕Β • Global IPͷ༧ • Ҡߦͷ࣮ࢪ • Global
IP ઃఆ • ҎԼͷॱͰ • db×2ɾnas • cache • web × 4 • httpproxyɾreverse-proxy 6 $ gcloud compute addresses create [static-ip-xxx] \ --region [Ҡߦઌregion] $ gcloud compute instances move [instance] \ --zone [Ҡߦݩ] --destination-zone [Ҡߦઌ] $ gcloud compute instances describe [instance] --zone [Ҡߦઌ] ɹɹɹɹɹ $ gcloud compute instances delete-access-config [instance] \ -zone [Ҡߦઌ] --access-config-name [֬ೝͨ͠name] $ gcloud compute instances add-access-config [instance] \ --zone [Ҡߦઌ] \ --access-config-name [༧ͨ͠GlobalIP໊] \ --address [IPΞυϨε]
ϐϯν • ҠߦઌϦʔδϣϯͷϦιʔεׂΓ͕ͯΓͳ͍ʢGlobalIP:8ʣ • ࣄલਃ͕ඞཁͩͬͨ • GoogleαϙʔτͷϨεϙϯεʹײಈ • ࿈ܞγεςϜଆͷઃఆௐ •
Ұ୴ɺมߋޙͷGlobalIPΛՃ • ্͛ʹϦϑϨογϡ͕ඞཁͩͬͨ • ṖͷϨεϙϯελΠϜٸಅ 7
͓ΘΓʹ • ͜Ε͚ͩ؆୯ʹΛΫϦΞͰ͖ΔGCPੌ͍ • ॲཧ࣌ؒɻٳΜͰΔՋ͕ͳ͍ɻ • ੍࣌ؒݶͷ͋Δϛογϣϯͷফੌ͍ • Ϧϋʔαϧ͠ͳ͍ͱޭ͠ͳ͍ɻ४උॏཁɻ •
͜ΜͳνʔϜʹjoin͍ͨ͠ͱࢥͬͨํ↓ͥͻɹ 8 https://jp.stanby.com/ats/marketing-applications/jobs