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 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.


To configure your Amazon Web Services (AWS) account details or settings for Elastic Bamboo:

  1. From the top navigation bar select cogwheel icon > Elastic Bamboo > Configuration.
  2. Select Edit configuration.

  3. 以下のセクションの説明に従って設定します。
  4. Select Save when finished.

Configuring AWS account settings

Before you use Elastic Bamboo for the first time in your Bamboo instance, enter your Amazon Web Services (AWS) account details into the Bamboo application. You can authenticate with AWS using an AWS Access Key or an EC2 instance profile.

If you change your AWS account details, Bamboo will stop all currently running elastic agents.

はじめる前に

  • If you don't have an AWS account, sign up for one on the AWS registration page.
  • Read Elastic Bamboo Costs for more details about how Amazon will charge you for EC2 compute resource usage. Amazon EC2 is sold separately from your Bamboo license and all fees are billed to your AWS account.

Using an AWS access key ID and secret access key

If you're unsure what your AWS access key ID and secret access key are, see Understanding and getting your AWS credentials — AWS General Reference.

To enter or update your AWS access key ID and secret access key:

  1. From the top navigation bar, select Administration (cogwheel icon) > Elastic Bamboo.
  2. From the left menu, select Configuration.
  3. Select Edit configuration.
  4. Under Amazon Web Services configuration, select Access key.
  5. Enter your AWS access key ID, secret access key, and select the region.

Using an EC2 instance profile

If you're running Bamboo on an EC2 instance in AWS, you can utilize an instance profile to configure Elastic Bamboo. An instance profile is a container for an IAM role attached to an EC2 instance that provides short-lived, periodically rotated credentials. Bamboo can automatically detect and use such credentials to manage EC2 instances for Elastic Agents.

To configure Elastic Bamboo using an EC2 instance profile:

  1. Go to Administration (cogwheel icon) > Elastic Bamboo.
  2. From the left menu, select Configuration.
  3. Select Edit configuration.
  4. Under Amazon Web Services configuration, select Instance profile.

    The Instance profile option is available only if you're running Bamboo on an EC2 instance.

グローバル設定

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.

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

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

Shutdown delay

Controls how long an elastic instance will wait before shutting down, after its elastic agent process terminates.


EC2 スポット インスタンス

Elastic Bamboo provides support for Amazon EC2 Spot Instances. Amazon spot instances allow you to buy unused EC2 capacity. You can configure Elastic Bamboo to buy you a spot instance of a particular type, and fall back to a regular instance after a set amount of time if no instances are available.

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 hasn't become available.

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 select 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).

Note that your AWS access key ID and secret access key will be be uploaded to your Elastic Instances only if you configured Elastic Bamboo with an AWS access key. If you’re using an instance profile, the AWS access key ID and secret access key won’t be uploaded.




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
Select 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.)

  • 初期設定 — ビルド キューのクリアランス率とエラスティック インスタンスの使用コストのバランスを保ちます。
  • アグレッシブ — ビルド キューのクリアランス率は高くなりますが、エラスティック インスタンスの使用コストも高くなります。
  • パッシブ — インスタンスの使用コストは低くなりますが、ビルド キューのクリアランス率も低くなります。
  • Custom — Select your own settings, as described below.
  • 無効 — 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.



Last modified on Mar 11, 2024

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

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