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
2025年春に見直したい、リソース最適化の基本
sogaoh
PRO
0
450
最近のSRE支援ニーズ考察 | sogaoh's LT @ Road to SRE NEXT@札幌
sogaoh
PRO
1
220
サーバーなしでWordPress運用、できますよ。
sogaoh
PRO
0
280
複業SRE、どこまでいける?++
sogaoh
PRO
0
66
複業SRE、どこまでいける?
sogaoh
PRO
0
350
Webアプリケーション周りのいろいろなアップグレード戦記
sogaoh
PRO
0
180
NPOと取り組むスモールスタートな業務IT化 | TRACK C8
sogaoh
PRO
0
91
業務委託やコミュニティメンバーでも活用できる IAM Identity Center
sogaoh
PRO
0
1.5k
PHPプロダクトのDeployをラクにするCLIツールたち
sogaoh
PRO
1
750
Other Decks in Technology
See All in Technology
SREの視点で考えるSIEM活用術 〜AWS環境でのセキュリティ強化〜
coconala_engineer
1
200
Amazon S3 Tables + Amazon Athena / Apache Iceberg
okaru
0
210
データベースで見る『家族アルバム みてね』の変遷 / The Evolution of Family Album Through the Lens of Databases
kohbis
4
1.1k
開発視点でAWS Signerを考えてみよう!! ~コード署名のその先へ~
masakiokuda
3
130
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
21k
「家族アルバム みてね」を支えるS3ライフサイクル戦略
fanglang
4
640
Beyond {shiny}: The Future of Mobile Apps with R
colinfay
1
300
【2025年度新卒技術研修】100分で学ぶ サイバーエージェントのデータベース 活用事例とMySQLパフォーマンス調査
cyberagentdevelopers
PRO
2
5.4k
ブラウザのレガシー・独自機能を愛でる-Firefoxの脆弱性4選- / Browser Crash Club #1
masatokinugawa
0
240
はてなの開発20年史と DevOpsの歩み / DevOpsDays Tokyo 2025 Keynote
daiksy
4
1.1k
React Server Componentは 何を解決し何を解決しないのか / What do React Server Components solve, and what do they not solve?
kaminashi
6
1.4k
「ラベルにとらわれない」エンジニアでいること/Be an engineer beyond labels
kaonavi
0
240
Featured
See All Featured
Six Lessons from altMBA
skipperchong
27
3.7k
Mobile First: as difficult as doing things right
swwweet
223
9.6k
Git: the NoSQL Database
bkeepers
PRO
430
65k
A Tale of Four Properties
chriscoyier
158
23k
Building an army of robots
kneath
304
45k
Docker and Python
trallard
44
3.3k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
30
1.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.5k
Why Our Code Smells
bkeepers
PRO
336
57k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Automating Front-end Workflow
addyosmani
1369
200k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
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