Elastic Bamboo の設定

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

エラスティック Bamboo では、Amazon Elastic Compute Cloud (EC2)のコンピューティング リソースを使用してビルドを実行することができます。エラスティック Bamboo は、リモート エージェント AMI (Amazon Machine Image)を使用して、Amazon EC2 にリモート エージェントのインスタンスを作成します。 

Builds run on these 'elastic agents' in a similar way to how they run on local and remote agents.

(warning) If you have disabled remote agent support, you must enable it before you can enable Elastic Bamboo. Refer to Disabling and enabling remote agents support for instructions on how to enable remote agent support.

 

Amazon Web Services (AWS)アカウント詳細または Elastic Bamboo の設定を設定する方法

  1. Click the  icon in the Bamboo header and choose Overview.
  2. In the left navigation panel, go to Elastic Bamboo > Configuration.
  3. Click Edit configuration.

  4. 以下のセクションの説明に従って設定します。
  5. 終了したら [保存] をクリックします。

AWS アカウント設定

Bamboo インスタンスで初めて Elastic Bamboo を使用する前に、Bamboo アプリケーションに Amazon Web Services (AWS)アカウント詳細を入力する必要があります。AWS アカウントを持っていない場合、Elastic Bamboo を使用する前に、AWS 登録ページで登録する必要があります。

始める前に

  • Elastic Bamboo は、Amazon Elastic Compute Cloud (EC2)で動的にリモート エージェントを作成および実行することに注意してください。そのため、Elastic Bamboo を使用する場合、EC2 Compute の使用について、Amazon によって課金されます(Bamboo のライセンス料金とは別で)。これらの料金は、指定した AWS アカウントに請求されます。詳細については、「Elastic Bamboo のコスト」を参照してください。
  • AWS アカウントの詳細を変更すると、Bamboo は現在実行中のエラスティック エージェントをすべて停止します。

AWS アカウントの詳細を設定する方法は次のとおりです。

You can enter or update your AWS Access Key ID and AWS Secret Access Key as follows:

  1. アカウントに移動して、右上のユーザー メニューから、My account/console を選択します。
  2. セキュリティ認証情報をクリックします。
  3. AWS アクセス キー ID を入力または更新します。
  4. AWS シークレット アクセス キーを変更しますか?チェックボックスをオンにし、AWS シークレット アクセス キーを入力または更新します。
  5. 保存をクリックします。

Amazon EC2 サービスにアクセスするときに、AWS アクセス キー ID および AWS シークレット アクセス キーが共に使用され識別されることに注意してください。AWS アクセス キー ID および AWS シークレット アクセス キーがわからない場合、「AWS アクセス識別子」に関する Amazon ドキュメントを参照してください。

グローバル設定

Elastic Bamboo では、EC2 の使用を Bamboo ジョブ ビルドに最適化するのに役立つ多数のグローバル設定オプションが提供されます。これらの設定は、Bamboo サーバの動作や、エラスティック インスタンスおよびエージェントを管理する方法を制御します。

Maximum Number of Elastic Instances
The number of elastic instances that can be running at any one time. You may wish to decrease this value if you are concerned about EC2 compute costs, and you have a large number of concurrent job builds that cannot be supported by your non-elastic agents.

エラスティック エージェント プロセスの終了時に自動的にエラスティック インスタンスを終了する

エラスティック インスタンスで実行されているエラスティック エージェントのプロセスが終了した後に、エラスティック インスタンスが自動的にシャットダウンするかどうかを制御します。

  • シャットダウンの遅延 — エラスティック エージェントのプロセスが終了した後、エラスティック インスタンスがシャットダウンするまでの待機時間を制御します。

 

EC2 スポット インスタンス

Elastic Bamboo では、Amazon EC2 スポット インスタンスに対するサポートが提供されます。Amazon スポット インスタンスを使用すると、未使用の EC2 容量に価格をつけ、その価格が現在の「スポット価格」を超えている限り使用することができます。特定のタイプのスポット インスタンスに価格をつけ、インスタンスが利用できなくなった場合、一定時間後に通常のインスタンスにフォールバックするように Elastic Bamboo を設定することができます。

Enable support for spot instances
Select this checkbox to enable support for spot instances.

Fallback to a regular instance after
The time (in minutes) after which Elastic Bamboo will fall back to using a regular instance, if a spot instance has not become available.

Your current bid levels (per hour)
Fill out this table with your bids. The bids are categorized by EC2 instance type and operating system.

AWS 設定

これらの設定では、Bamboo が AWS アカウントを使用してエラスティック インスタンスを操作できるように Bamboo 内の AWS 設定を指定することができます。このセクションには、エラスティック インスタンスを Amazon Elastic Block Store (EBS)と連携するように設定するのに使用される設定が含まれています。

エラスティック インスタンスと共に EBS を使用すると、通常のエラスティック インスタンスで実施するのに比べて、ジョブのビルドに必要なデータの転送量を大幅に削減することができます。この機能の詳細と Elastic Bamboo の設定方法については、「EBS を使用するエラスティック インスタンスの設定」を参照してください。

Upload AWS account identifiers to new elastic instances
Select to upload the AWS Account Private Key File and Account Certificate File to all new elastic instances started. This is mandatory if you wish to use EBS to store job build information in a snapshot. However, you can also check this option if you are not using EBS (e.g. if you wish upload the AWS account identifiers in order to use Amazon's AWS command line tools).

Key files location
Choose how private key and certificate will be provided.

Account Private Key File
You must specify the location of this file to use the Amazon EBS with Elastic Bamboo. This file is generated by Amazon.

Account Certificate File
You must specify the location of this file to use the Amazon EBS with Elastic Bamboo. This file is generated by Amazon.

(info) If you haven't downloaded an AWS private key file or certificate file to your Bamboo server yet, see IAM best practices on the Amazon page.

自動エラスティック インスタンス管理

自動エラスティック インスタンス管理機能を使用すると、(ビルド キュー要求に基いて) Bamboo が自動的にエラスティック インスタンスを起動およびシャットダウンすることができます。これらのアクションを手動で実施する必要はありません。この機能は、Bamboo 管理のオーバーヘッドを削減し、全体的なエラスティック インスタンス使用コストを最小化することができます。

利用可能なオンライン エージェントでジョブの要件を満たせない場合、この機能により、ジョブを実行する機能を備えたエラスティック エージェントを持つすべてのエラスティック インスタンスが起動し、ジョブのビルドを生成できます。エラスティック インスタンスの起動方法にかかわらず、すべてのエラスティック インスタンスは以下に指定された設定に基づいてシャットダウンされます。

Elastic Instance Management
Choose from the following elastic instance management presets. Each of these presets define values for the five criteria described in the 'Custom' user-defined options (below). (Bear in mind that both the 'Aggressive' and 'Passive' presets have trade-offs.)

  • 初期設定 — ビルド キューのクリアランス率とエラスティック インスタンスの使用コストのバランスを保ちます。
  • アグレッシブ — ビルド キューのクリアランス率は高くなりますが、エラスティック インスタンスの使用コストも高くなります。
  • パッシブ — インスタンスの使用コストは低くなりますが、ビルド キューのクリアランス率も低くなります。
  • カスタム — 以下に説明するように独自の設定を選択します。
  • 無効 — Bamboo の自動エラスティック インスタンス管理機能を無効にします。

Idle Agent Shutdown Delay
Specify the number of minutes that an elastic agent must be idle before Bamboo shuts down the elastic instance running that agent.
 (info) Elastic instances running in the Amazon EC2 compute cloud are charged in hourly blocks from the time they are started. To maximize usage of elastic instances in a cost-effective manner, Bamboo only performs these checks just prior to the expiry of each hourly block.

Allowed non-Bamboo instances
The maximum number of elastic instances allowed on your AWS account that are not controlled by this Bamboo instance. When this limit is exceeded, Bamboo will not start any new instances.

Maximum Number of Instances to Start at Once
The maximum number of elastic instances that Bamboo can start in one go. Bamboo only starts this maximum number of elastic instances on a 'per minute' basis.

Number of Builds in Queue Threshold
The total number of builds in a queue. When this and all other thresholds have been reached, new elastic instances will be started.

Number of Elastic Builds in Queue Threshold
The number of builds in the queue that can be executed on elastic instances. When this and all other thresholds have been reached, new elastic instances will be started.

Average Queue Time Threshold
The average number of minutes that job builds have been waiting in a queue. When this and all other thresholds have been reached, new elastic instances will be started.

 

最終更新日 2019 年 5 月 23 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.