You can schedule the startup and shutdown of elastic instances in Bamboo. For example, you may wish to shut down all elastic instances on weekends or start up additional instances to help cope with Job builds during regular busy periods. |
Managing your Elastic Instance Schedules
To manage your elastic instance schedules:
- Click the 'Administration' link in the top navigation bar.
- Click the 'Instance Schedule' link in the left navigation column under the 'Elastic Bamboo' subheading. The 'View Elastic Instance Schedules' screen will display (see screenshot below).
- Adding a new elastic instance schedule — click the 'Add Elastic Instance Schedule' link to create a new schedule from scratch or click the 'Copy' link next to an existing schedule to create a new schedule using the existing schedule as a template. See the Adding a New Elastic Instance Schedule section below for further instructions.
- Editing an elastic instance schedule — click the 'Edit' link next to an existing schedule to edit it.
- Enabling an elastic instance schedule — click the 'Enable All' link to enable all schedules or click the 'Enable' link next to any disabled schedules to enable them individually.
- Disabling an elastic instance schedule — click the 'Disable All' link to disable all schedules or click the 'Disable' link next to any enabled schedules to disable them individually.
- Deleting an elastic instance schedule — click the 'Delete' link next to an existing schedule to delete the schedule.
You can also view the configuration for the elastic image that the instances will be created from, by clicking the image configuration name (e.g. 'Default') in the table of schedules.
Screenshot above: Viewing Elastic Instance Schedules
Adding a New Elastic Instance Schedule
- Click the 'Administration' link in the top navigation bar.
- Click the 'Instance Schedule' link in the left navigation column under the 'Elastic Bamboo' subheading. The 'View Elastic Instance Schedules' screen will display (see screenshot below).
- Click the 'Add Elastic Instance Schedule' link to create a new schedule from scratch or click the 'Copy' link next to an existing schedule to create a new schedule using the existing schedule as a template. The 'Add Elastic Instance Schedule' screen will display.
- 'Enabled' (checked by default) — uncheck this if you do not want this schedule to be enabled when you create it.
- 'Trigger on' — Select whether you want this schedule to trigger on Bamboo startup or when a set of cron conditions are met. If you select 'A cron schedule' the following field will display:
- 'Cron Expression' (mandatory if 'A cron schedule' selected) — specify the cron conditions that must be met for this schedule to trigger. cron is a time-based scheduler with a unique syntax. For information on constructing cron expressions, please see this FAQ.
- 'On trigger Bamboo should' — select whether Bamboo should adjust the number of active elastic instances or shut down all instances when it is triggered. If you select 'Adjust number of active instances', the following fields will display (all of the fields below are mandatory if 'Adjust number of active instances' is selected):
- 'Image Config' — specify which image the elastic instances should be started from. The elastic agents running on the instances will inherit the capabilities from the image.
- '(logical operator)' — specify the constraint on the number active instances which is specified in the 'Active Instances' field.
For example, if you specify 'at least' in this field and '3' in the 'Active Instances' field, the schedule will ensure that at least three elastic instances are active when the schedule triggers (and will start instances to meet this requirement). Similarly, if you specify 'no more than' in this field and '1' in the 'Active Instances' field, the schedule will ensure that no more than one elastic instance is active when the schedule triggers (and will shut down instances to meet this requirement). - 'Active Instances' — number of active instances. See the logical operator field above for details on how this value is used.
Screenshot above: Adding an Elastic Instance Schedule
Notes
Related Topics
Attachments:




