This documentation relates to an earlier version of Bamboo.
View

Unknown macro: {spacejump}

or visit the current documentation home.

Elastic Bamboo is a feature in Bamboo that allows you to utilise computing resources from the Amazon Elastic Compute Cloud (EC2) to run Job builds. Elastic Bamboo uses a remote agent AMI (Amazon Machine Image) to create instances of remote agents in the Amazon EC2. Job builds can be run on these 'elastic agents' in the same way that Job builds are run non-elastic agents.

On this page:

1. Read Important Documents

 

Elastic Bamboo を最初に使用する場合は、まず次の重要なドキュメントを読むところから始めることを強くお勧めします。

  • About Elastic Bamboo — This high-level overview explains the key concepts behind the Elastic Bamboo feature.
  • Elastic Bamboo Security — We strongly recommend that you read this document to understand the security implications of enabling Elastic Bamboo. This includes important information on securing your version control system (VCS) for use with Elastic Bamboo.
  • Elastic Bamboo Costs — Elastic Bamboo sources resources from the Amazon Elastic Compute Cloud (EC2) which are charged separately to your Bamboo license fee. We recommend that you read this document to understand how you will be charged for using Elastic Bamboo.

2. Enable and Configure Elastic Bamboo

 

Elastic Bamboo の概念、セキュリティへの影響、コストを理解したら、Bamboo インストールで Elastic Bamboo を有効化して設定します。また、Elastic Bamboo を正しく動作させるために、バージョン管理システム (VCS) を Amazon で利用できるようにする必要があります。

2.1. Elastic Bamboo を有効化する

Elastic Bamboo を有効化する方法は次のとおりです。

  1. Enable remote agent support in Bamboo — if you have disabled remote agent support, you must enable it before you can enable Elastic Bamboo. The Disabling and Enabling Remote Agents Support documentation also contains instructions on how to enable remote agent support.
  2. In Bamboo, click the 'Administration' link in the top navigation bar.
  3. Click the 'Configuration' link in the left navigation column under the 'Elastic Bamboo' sub-header. The 'Elastic Bamboo Configuration' screen will display.
  4. Click the 'Enable' button to enable Elastic Bamboo for your Bamboo installation.

2.2) にアップグレードする場合に大変便利です。Elastic Bamboo の設定

Elastic Bamboo を使用するには、「Elastic Bamboo の設定」ドキュメントに記載されている説明に沿って設定する必要があります。これは次のとおり、3 ステップの簡単なプロセスです。

  1. アマゾン ウェブ サービスのアカウントの詳細を入力します。
  2. Elastic Bamboo のグローバル設定を構成します。
  3. エラスティック インスタンス設定を構成します。

2.3. Providing Access to your VCS

You need to make your version control system available to Amazon to run Job builds using Elastic Bamboo. This has security implications, particularly if your VCS is behind a firewall.

3. エラスティック インスタンスを起動する

 

Now that you have enabled and configured Elastic Bamboo for your Bamboo installation, you can try running a Plan build and its Jobs with Elastic Bamboo. You can manually start an elastic instance via the Bamboo administration console. Starting an elastic instance will automatically start an elastic agent process on it.

4. Run a Plan Build and its Jobs

 

To run a Plan build and its Jobs on your elastic agent, you must set up a Plan with its Default Job (plus any other optional Jobs) all of whose requirements can meet your elastic agent's capabilities. Elastic agents inherit the capabilities of the image they are started from. We recommend that you use the Bamboo default image to start with.

For the purposes of this guide, you should set up your Plan so that its Jobs' requirements can only be met by the elastic agent's capabilities. This will ensure that the Jobs' builds run on your elastic agent. If you cannot set up your Jobs' requirements to meet your elastic agent's capabilities, you can customise your elastic agent's capabilities to add a unique custom capability, e.g. 'elastic=true').

Job builds on elastic agents are run just like Job builds on any other agent. You will see the progress of your Job build on your dashboard and can view the build result when it has completed.

(tick) Tip: You can significantly reduce the costs and time taken to run a Job build by configuring Elastic Bamboo to use Amazon's Elastic Block Store (EBS).

5. Shut Down your Elastic Instance

 

When your Job build(s) complete successfully, shut down your elastic instance. As described in Elastic Bamboo Costs, the bulk of your Elastic Bamboo costs are from instance uptime. We strongly recommend that you shut down your elastic instances when not in use.

エラスティック インスタンスをシャットダウンすると、実行中のエージェント プロセスが終了することにご注意ください。つまり、エラスティック エージェントは、オンラインでない限り、Bamboo の "エージェント" ページに表示されません。終了されたエラスティック エージェントに関する情報を表示する場合は、エラスティック エージェントの使用履歴でそのエージェントを確認できます。

Congratulations! You have successfully set up and run a Job build with Elastic Bamboo.

詳細情報

 

You may be interested in reading the following related topics below to help you manage and improve Elastic Bamboo's handling of Job builds: