Upgrade to Pro — share decks privately, control downloads, hide ads and more …

モノリシックサービスのレガシーインフラをEKSに移行するにあたり、他マイクロサービスと共通化した部分としなかった部分

 モノリシックサービスのレガシーインフラをEKSに移行するにあたり、他マイクロサービスと共通化した部分としなかった部分

マルチプロダクトを支えるインフラ基盤設計〜境界線の作り方~
https://andpad.connpass.com/event/252776/
登壇資料

株式会社アンドパッド / ソフトウェアエンジニア
浜田 諭

ANDPAD inc

July 28, 2022
Tweet

More Decks by ANDPAD inc

Other Decks in Technology

Transcript

  1. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 モノリシックサービスのレガシーインフラを EKSに移 行するにあたり、他マイクロサービスと共通化した部 分としなかった部分 浜田諭
  2. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 自己紹介 浜田 諭 / Satoshi Hamada 職種: サーバーサイドエンジニア 担当: 認証基盤移行プロジェクト コンテナ移行プロジェクト 入社: 2021年2月 趣味: 旅行、料理、習字
  3. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 モノリシックなレガシーインフラを EKSに移行 移行前の全体像
  4. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 モノリシックなレガシーインフラを EKSに移行 EKSに移行するにあたり2つの選択肢
  5. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 モノリシックなレガシーインフラを EKSに移行 マイクロサービス基盤のEKSクラスタ内に移行
  6. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 モノリシックなレガシーインフラを EKSに移行 独自のコンテナ実行基盤EKSクラスタの新設
  7. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 他マイクロサービスと共通化した部分としなかった部分 今回の移行作業では 独自のコンテナ実行基盤EKSクラスタを新設 しました
  8. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 なぜそのような決断をしたのか
  9. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 理由 • VPCの問題 • EKSクラスタに求める役割 • 既存EKSの変更ハードル • EKSクラスタの新規構築/運用コスト
  10. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 VPCの問題 • モノリシックサービスとマイクロサービス基盤の VPCが異なっていた • 現行の通信やACL制御設定の維持をしたかった
  11. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 EKSクラスタに求める役割 • マイクロサービス基盤にモノリシックサービスの まま移行することの懸念 • 新設するEKSクラスタは一時的な立ち位置
  12. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 既存EKSの変更ハードル • 移行計画時、全リクエストの80~90%がモノリ シックサービス • 既存EKSクラスタには他サービスが存在 • 全体で考えることが増え、移行のスコープが大き くなりそう
  13. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 EKSクラスタの新規構築/運用コスト • EKSクラスタの新規構築は設定を流用できそう • 運用系システムのデプロイフローは全体で統一さ れ、個別に考える必要がなかった • 仕組みを揃えることである程度の運用負荷は下げ られそう
  14. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 実際やってみて
  15. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 良かったこと • プロダクトの担当者(自分)がクラスタ運用につい てもSREと共に検討、作業ができた • 本番リリースは前もって環境準備ができた • 運用システムの導入、設定変更の意思決定の早さ • モノリシックサービスの既存の仕組みの流用 • 仕組みやツール等をマイクロサービスと共通化す ることで知見を適用できた
  16. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 独自のコンテナ実行基盤EKSクラスタの新設 困っていること • 本番環境で稼働するEKSクラスタの管理コスト • 運用システムの設定ファイルが似通って冗長 • バージョンアップは個別で対応が必要 • ワーカーノードの余剰コスト
  17. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 タイトル回収 他マイクロサービスと共通化した部分 と しなかった部分
  18. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 タイトル回収 共通化しなかった部分 • EKSクラスタ 共通化した部分 • 運用システムのデプロイ方法 • 利用ツールなど(Helmチャートで管理) • クラスタの運用管理方法など • ..etc
  19. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 タイトル回収 物理的なシステムは共通化せず 抽象的な仕組みは共通化しました
  20. Copyright © 2021 Present ANDPAD Inc. This information is confidential

    and was prepared by ANDPAD Inc. for the use of our client. It is not to be relied on by and 3rd party. Proprietary & Confidential 無断転載・無断複製の禁止 ご清聴ありがとうございました