To meet the periodically fluctuating resource demand of your business, such as dealing with traffic surges that occur during specific time periods every day or every week, use time-segmented elasticity assurances to reserve Elastic Compute Service (ECS) capacity in advance. Compared with immediate or scheduled elasticity assurances, time-segmented elasticity assurances provide a more flexible and periodic capacity assurance that takes effect based on a schedule (such as 18:00:00 to 24:00:00 every day) within a specific period (such as 30 days) to accommodate business scenarios that have spiky traffic patterns.
What are time-segmented elasticity assurances?
Time-segmented elasticity assurances are a new type of elasticity assurance that allows you to reserve ECS capacity based on a schedule and have assured access to the capacity required to create pay-as-you-go ECS instances. Time-segmented elasticity assurances are suitable for business that has brief, highly irregular resource demand.
Concepts
Concept | Description |
Resource pool | A resource pool that is generated in your account after you create a time-segmented elasticity assurance, which includes the ECS capacity reserved for your use. Resource pools were formerly known as private pools. |
Capacity | The total number of ECS instances for which capacity is reserved in the private pool associated with a time-segmented elasticity assurance. The unused capacity is the number of additional ECS instances that can be created based on the private pool. The used capacity is the number of ECS instances that are already created based on the private pool. |
Validity period | The validity period of a time-segmented elasticity assurance. Unit: days. If you create a time-segmented elasticity assurance that reserves capacity from 12:00:00 to 17:00:00 every day for a week, the validity period of the elasticity assurance is seven days. |
Validity period start date and time | The date and time when a time-segmented elasticity assurance takes effect. If you create a 7-day time-segmented elasticity assurance that reserves capacity from 12:00:00 to 17:00:00 starting next Monday, the validity period start date of the elasticity assurance is next Monday. |
Intermission | The time periods outside the assurance periods within the validity period of a time-segmented elasticity assurance. Assurance periods are the time periods during which the capacity reservation of the elasticity assurance is in effect. During intermissions, the reserved capacity is in the locked state and cannot be used to create ECS instances. After an intermission ends, the reserved capacity enters an assurance period and becomes available for use. |
Scenarios
Business that has predictable and spiky traffic patterns, such as daily traffic surges in the gaming and e-commerce sectors and traffic spikes during holidays and rest periods on weekdays
Regular and periodic business peaks, such as business peaks during specific working hours in the education and finance sectors
Lifecycle
Billing
You are charged an assurance fee when you create a time-segmented elasticity assurance and ECS instance fees for the used capacity of the elasticity assurance.
Assurance fee:
ECS instance fees: You are charged for the capacity of the time-segmented elasticity assurance that is used to create ECS instances on a pay-as-you-go basis.
If you create a time-segmented elasticity assurance that has an assurance period of 8 hours for ecs.g7.2large instances in the China (Hong Kong) region, the assurance fee for the elasticity assurance is calculated by using the following formula:
The prices used in this example are provided only for reference. The actual prices are displayed on the Pricing tab of the Elastic Compute Service product page.
Create a time-segmented elasticity assurance
Log on to the ECS console.
In the left-side navigation pane, choose
.On the Elasticity Assurances page, click Create Elasticity Assurance.
On the Create Elasticity Assurance page, configure the parameters in the Create Elasticity Assurance step and click Next. The following table describes the parameters.
Parameter
Description
Elasticity Assurance Name
The name of the time-segmented elasticity assurance. Enter a descriptive name to easily identify the time-segmented elasticity assurance.
The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with
http://
orhttps://
. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).Region/Zone
The region and zone in which to reserve ECS capacity.
After the time-segmented elasticity assurance is created, you cannot change the Region/Zone value of the elasticity assurance.
Instance Type
The instance type for which to reserve ECS capacity.
Capacity (Instances)
The number of instances for which to reserve ECS capacity. Valid values: 1 to 1000.
Validity Period Starts
The time when the time-segmented elasticity assurance takes effect. Valid values:
Now: After the time-segmented elasticity assurance is created, it immediately takes effect and can be used to create pay-as-you-go ECS instances.
Specify Effective Time: After the time-segmented elasticity assurance is created, it takes effect at a specific point in time. After the elasticity assurance takes effect, you can use the elasticity assurance to create pay-as-you-go ECS instances.
Duration (in Days)
The validity period of the time-segmented elasticity assurance. Unit: days. Enter a positive integer from 1 to 365.
Validity Period Start Time
The time when the time-segmented elasticity assurance takes effect. If you set the Validity Period Starts parameter to Specify Effective Time, you must configure the Validity Period Start Time parameter.
Assurance Schedule
The schedule based on which the capacity reservation for the selected instance type takes effect. You can configure one of the following types of schedules:
Daily: Select an interval, in number of days, at which the capacity reservation takes effect. For example, if you select Every 2 Days, the capacity reservation takes effect every two days within the validity period of the time-segmented elasticity assurance.
Weekly: Select one or more days of the week on which the capacity reservation takes effect.
Monthly: Select one or two days of the month as the start and end dates for the time range during which the capacity reservation takes effect. The start and end dates can be the same day of the month. Example: 1st Day to 6th Day, which indicates that the capacity reservation takes effect every day from the first day up to the sixth day of each month.
Time: Specify two on-the-hour points in time of the day as the start and end times of the assurance period for the capacity reservation. The start time and the end time must be at least 4 hours apart.
Private Pool Type
Open: private pools that can be shared within an enterprise. Open private pools can be matched with ECS instances whose Private Pool Type parameter is set to Open. You can specify the private pool type when you create an ECS instance.
Targeted: private pools that are allocated and reserved for specific scenarios or types of business. You can specify the private pool type when you create an ECS instance.
Description
The description of the time-segmented elasticity assurance. Enter an informative description to easily determine the purpose of the elasticity assurance.
Tag
The tags that you want to add to the time-segmented elasticity assurance. You can enable tag matching for open private pools to use the private pools in a fine-grained manner based on tags.
In the Preview step, confirm the configurations of the time-segmented elasticity assurance and the assurance fee, read the notes, select I have read and understood the notes, and then click Submit.
Modify the assurance schedule
To modify the assurance schedule of a time-segmented elasticity assurance, you can call only the ModifyElasticityAssurance operation and make sure that the validity period of the elasticity assurance remains unchanged. You can configure the following parameters to modify the assurance schedule of a time-segmented elasticity assurance:
RecurrenceType: the type of assurance schedule. Valid values:
Daily
Weekly
Monthly
RecurrenceValue: the days of the week or month on which the capacity reservation takes effect or the interval, in number of days, at which the capacity reservation takes effect.
If you set the RecurrenceType parameter to Daily, you can specify only one value for this parameter. Valid values: 1 to 31. Example: 2, which indicates that the capacity reservation takes effect every two days.
If you set the RecurrenceType parameter to Weekly, you can specify multiple values for this parameter. Separate the values with commas (,). Valid values: 0, 1, 2, 3, 4, 5, and 6, which indicate Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday,respectively. Example: 1,2, which indicates that the capacity reservation takes effect on Monday and Tuesday.
If you set the RecurrenceType parameter to Monthly, you can specify two values in the A-B format. Valid values of A and B: 1 to 31. B must be greater than or equal to A. Example: 2-14, which indicates that the capacity reservation takes effect every day from the second day up to the 14th day of each month.
StartHour: the start time of the assurance period for the capacity reservation. Specify an on-the-hour point in time. The values of the StartHour and EndHour parameters must be at least 4 hours apart.
EndHour: the end time of the assurance period for the capacity reservation.
Example
Method | Original parameter values | New parameter values |
Do not change the value of the RecurrenceType parameter. Change the values of the RecurrenceValue, StartHour, and EndHour parameters. | RecurrenceType: Weekly RecurrenceValue: 1,2 StartHour: 4 EndHour: 8 | RecurrenceType: Weekly RecurrenceValue: 3,4 StartHour: 10 EndHour: 14 |
Change the values of the RecurrenceType, RecurrenceValue, StartHour, and EndHour parameters. | RecurrenceType: Weekly RecurrenceValue: 1,2 StartHour: 4 EndHour: 8 | RecurrenceType: Monthly RecurrenceValue: 11-12 StartHour: 9 EndHour: 13 |
Share a time-segmented elasticity assurance
Prerequisites
A resource share whose resource type is elasticity assurance is created. For more information, see Create a resource share.
A time-segmented elasticity assurance is in the Active or Prepared state.
Procedure
Log on to the ECS console.
In the left-side navigation pane, choose
.Click Initiate Share in the Actions column corresponding to a time-segmented elasticity assurance.
In the Shared Private Resource Pool dialog box, select a resource share and then click Identify sharing.
View the sharing status of the private pool.
On the Share Management tab, you can view the resource shares to which the private pool is added and the shared capacity usage of the private pool.
View the capacity monitoring data of a time-segmented elasticity assurance
You can view the capacity statistics of the time-segmented assurance.
Log on to the ECS console.
In the left-side navigation pane, choose
.Click the ID of a time-segmented elasticity assurance or click Details in the Actions column corresponding to the elasticity assurance.
On the details page of the time-segmented elasticity assurance, click the Capacity Monitoring tab.
Select a start date and an end date to view the total capacity, used capacity, and utilization of the time-segmented elasticity assurance.