マルチプロダクトを支えるインフラ基盤設計〜境界線の作り方~ https://andpad.connpass.com/event/252776/ 登壇資料
株式会社アンドパッド / ソフトウェアエンジニア 浜田 諭
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に移行するにあたり、他マイクロサービスと共通化した部分としなかった部分浜田諭
View Slide
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月趣味: 旅行、料理、習字
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に移行移行前の全体像
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つの選択肢
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クラスタ内に移行
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クラスタの新設
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クラスタを新設しました
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クラスタの新設なぜそのような決断をしたのか
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クラスタの新規構築/運用コスト
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制御設定の維持をしたかった
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クラスタは一時的な立ち位置
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クラスタには他サービスが存在● 全体で考えることが増え、移行のスコープが大きくなりそう
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クラスタの新規構築は設定を流用できそう● 運用系システムのデプロイフローは全体で統一され、個別に考える必要がなかった● 仕組みを揃えることである程度の運用負荷は下げられそう
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クラスタの新設実際やってみて
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と共に検討、作業ができた● 本番リリースは前もって環境準備ができた● 運用システムの導入、設定変更の意思決定の早さ● モノリシックサービスの既存の仕組みの流用● 仕組みやツール等をマイクロサービスと共通化することで知見を適用できた
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クラスタの管理コスト● 運用システムの設定ファイルが似通って冗長● バージョンアップは個別で対応が必要● ワーカーノードの余剰コスト
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 無断転載・無断複製の禁止タイトル回収他マイクロサービスと共通化した部分としなかった部分
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
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 無断転載・無断複製の禁止タイトル回収物理的なシステムは共通化せず抽象的な仕組みは共通化しました
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 無断転載・無断複製の禁止ご清聴ありがとうございました