Upgrade Bitbucket without downtime
はじめる前に
ローリング アップグレードの計画を開始する前に、いくつかの質問に答える必要があります。
Does my Bitbucket deployment support rolling upgrades? | You can only perform a rolling upgrade with no downtime on a multi-node Bitbucket cluster. Clustering is only supported on a Bitbucket Data Center license. In addition, a rolling upgrade involves enabling upgrade mode, which is only available in Bitbucket Data Center. |
ローリング アップグレード中にユーザー リクエストをサポートするために十分なノードはありますか? | You need to take a node offline to upgrade it. During this time, other active nodes will take over the offline node’s workload. Make sure you have enough active nodes to handle user traffic at any given time. Whenever possible, add a node temporarily to your cluster to compensate for offline nodes. |
ローリング アップグレードの準備
1. アップグレード前の確認を完了する
- アップグレード先として計画しているバージョン (およびその間のバージョン) のバージョンごとのアップグレード ノートを確認します。
- > [サポート ツール] に移動し、解決が必要な問題がログ アナライザーにあるかどうかを確認します。
Check the compatibility of your apps with the version you plan to upgrade to.
- > [アプリの管理] > [Bitbucket 更新の確認] に移動します。
アップグレード先として計画しているバージョンを選択して [確認] を押します。
2.アップグレード期間中にアプリのインストールまたはアップグレードが実行されないようにします。
If you manage Bitbucket with a team of admins, schedule the rolling upgrade with them. Notify them to postpone any app installs or upgrades until after the rolling upgrade. Installing or upgrading apps during a rolling upgrade could result in unexpected errors.
3. Back up Bitbucket
Determine which backup strategy to use.
- Back up all the data in your Bitbucket home directory and external database.
デプロイが AWS でホストされている場合、スナップショットを使用してサイトのバックアップを作成する、AWS のネイティブ バックアップ機能を使用することをおすすめします。詳しくは、「AWS バックアップ」を参照してください。
4.ローリング アップグレードをテストするためのステージング環境のセットアップ
最初に、ステージングまたはテスト環境におけるローリング アップグレードの実行を強くお勧めします。
- Create a staging copy of your current production environment.
- 以下の手順に従って、テスト環境をアップグレードします。
- Test any unsupported apps, customizations and proxy configuration (if possible) before upgrading your production environment.
ローリング アップグレードの実行
There are three methods for performing a rolling upgrade, depending on what orchestration tools your deployment uses:
Method | 説明 | 手順 |
---|---|---|
手動アップグレード | A manual upgrade is suitable for deployments that feature minimal orchestration, particularly in node upgrades. If your deployment is based on our Azure templates, you'll also need to perform a manual upgrade. | |
AWS CloudFormation | If your deployment is defined by an AWS CloudFormation template (like our AWS Quick Start), then you can use the same template to orchestrate your upgrade. | |
API 駆動 | API コールを使用して、ローリング アップグレード プロセス全体をオーケストレーションできます。 |