-
Notifications
You must be signed in to change notification settings - Fork 17
/
InstanceUpdateBehaviour.go
38 lines (34 loc) · 1.5 KB
/
InstanceUpdateBehaviour.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package awsrds
// The orchestration of updates of multiple instances.
//
// Example:
// var vpc vpc
//
// cluster := rds.NewDatabaseCluster(this, jsii.String("Database"), &DatabaseClusterProps{
// Engine: rds.DatabaseClusterEngine_AuroraMysql(&AuroraMysqlClusterEngineProps{
// Version: rds.AuroraMysqlEngineVersion_VER_3_01_0(),
// }),
// Writer: rds.ClusterInstance_Provisioned(jsii.String("Instance"), &ProvisionedClusterInstanceProps{
// InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_BURSTABLE3, ec2.InstanceSize_SMALL),
// }),
// Readers: []iClusterInstance{
// rds.ClusterInstance_*Provisioned(jsii.String("reader")),
// },
// InstanceUpdateBehaviour: rds.InstanceUpdateBehaviour_ROLLING,
// // Optional - defaults to rds.InstanceUpdateBehaviour.BULK
// Vpc: Vpc,
// })
//
type InstanceUpdateBehaviour string
const (
// In a bulk update, all instances of the cluster are updated at the same time.
//
// This results in a faster update procedure.
// During the update, however, all instances might be unavailable at the same time and thus a downtime might occur.
InstanceUpdateBehaviour_BULK InstanceUpdateBehaviour = "BULK"
// In a rolling update, one instance after another is updated.
//
// This results in at most one instance being unavailable during the update.
// If your cluster consists of more than 1 instance, the downtime periods are limited to the time a primary switch needs.
InstanceUpdateBehaviour_ROLLING InstanceUpdateBehaviour = "ROLLING"
)