forked from sebdah/dynamic-dynamodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-dynamic-dynamodb.conf
241 lines (190 loc) · 7.08 KB
/
example-dynamic-dynamodb.conf
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
[global]
# AWS access keys, comment out to use IAM instance profile or boto credentials
#aws-access-key-id: AWS_ACCESS_KEY
#aws-secret-access-key-id: AWS_SECRET_KEY
# AWS region to use
region: us-east-1
# How often should Dynamic DynamoDB monitor changes (in seconds)
check-interval: 300
# Circuit breaker configuration
# No provisioning updates will be made unless this URL returns
# a HTTP 200 OK status code
#circuit-breaker-url: http://my.service.com/v1/is_up
#circuit-breaker-timeout: 500
[logging]
# Log level [debug|info|warning|error]
log-level: info
# Log file (comment out to get only console output)
log-file: /var/log/dynamic-dynamodb.log
# External Python logging configuration file
# Overrides both log-level and log-file
# log-config-file: /path/to/logging.conf
[default_options]
#
# Any valid configuration for the table: configuration can be used here and will be used as the default
# if not set for a table
# Example:
# This would set all tables other than my_table to have reads-upper-threshold of 80, while my_table has 90
# reads-upper-threshold: 80
#
[table: ^my_table$]
#
# Read provisioning configuration
#
# Enable reads up or down scaling
# Note: Those controls will not have any effect if enable-reads-autoscaling is false
enable-reads-up-scaling = true
enable-reads-down-scaling = false
# Thresholds for scaling up or down the provisioning (%)
reads-upper-threshold: 90
reads-lower-threshold: 30
# How many percent should Dynamic DynamoDB increase/decrease provisioning with (%)
increase-reads-with: 50
decrease-reads-with: 50
# Units to increase or decrease reads with, must be either percent or units
increase-reads-unit: percent
decrease-reads-unit: percent
# Maximum and minimum read provisioning
# Dynamic DynamoDB will not provision any more or less reads than this
min-provisioned-reads: 1
max-provisioned-reads: 500
#
# Write provisioning configuration
#
# Threshold for trigging throughput alarm to send notification (%)
# writes-upper-alarm-threshold: 0
# writes-lower-alarm-threshold: 0
# Enable writes up or down scaling
# Note: Those controls will not have any effect if enable-writes-autoscaling is false
enable-writes-up-scaling = true
enable-writes-down-scaling = false
# Thresholds for scaling up or down the provisioning (%)
writes-upper-threshold: 90
writes-lower-threshold: 30
# How many percent should Dynamic DynamoDB increase/decrease provisioning with (%)
increase-writes-with: 50
decrease-writes-with: 50
# Units to increase or decrease writes with, must be either percent or units
increase-writes-unit: percent
decrease-writes-unit: percent
# Maximum and minimum write provisioning
# Dynamic DynamoDB will not provision any more or less writes than this
min-provisioned-writes: 1
max-provisioned-writes: 500
#
# Maintenance windows (in UTC)
#
#maintenance-windows: 22:00-23:59,00:00-06:00
#
# Simple Notification Service configuration
#
# Topic ARN to publish notifications to
#
# Example:
# sns-topic-arn: arn:aws:sns:us-east-1:123456789012:dynamic-dynamodb-my_table
# Message types to send as SNS notifications
#
# Comma separated list. Currently supported values:
# - scale-up Get notifications when the table is scaled up
# - scale-down Get notifications when the table is scaled down
# - throughput-alarm Get notifications when exceed alarm threshold
#
# Example:
# sns-message-types: scale-up, scale-down, throughput-alarm
# Thresholds for trigging throughput alarm to send notification (%)
# reads-upper-alarm-threshold: 0
# reads-lower-alarm-threshold: 0
#
# Other settings
#
# Allow down scaling when at 0% consumed reads
#allow-scaling-down-reads-on-0-percent: true
#allow-scaling-down-writes-on-0-percent: true
# Restrict scale down to only happen when BOTH reads AND writes are in need
# of scaling down. Set this to "true" to minimize down scaling.
#always-decrease-rw-together: true
[gsi: ^my_gsi$ table: ^my_table$]
#
# Read provisioning configuration
#
# Enable reads up or down scaling
# Note: Those controls will not have any effect if enable-reads-autoscaling is false
enable-reads-up-scaling = true
enable-reads-down-scaling = false
# Disable reads up or down scaling.
# Those controls will not have any effect if enable-reads-autoscaling is false
disable-reads-up-scaling = false
disable-reads-down-scaling = false
# Thresholds for scaling up or down the provisioning (%)
reads-upper-threshold: 90
reads-lower-threshold: 30
# How many percent should Dynamic DynamoDB increase/decrease provisioning with (%)
increase-reads-with: 50
decrease-reads-with: 50
# Units to increase or decrease reads with, must be either percent or units
increase-reads-unit: percent
decrease-reads-unit: percent
# Maximum and minimum read provisioning
# Dynamic DynamoDB will not provision any more or less reads than this
min-provisioned-reads: 1
max-provisioned-reads: 500
#
# Write provisioning configuration
#
# Threshold for trigging throughput alarm to send notification (%)
# writes-upper-alarm-threshold: 0
# writes-lower-alarm-threshold: 0
# Enable writes up or down scaling
# Note: Those controls will not have any effect if enable-writes-autoscaling is false
enable-writes-up-scaling = true
enable-writes-down-scaling = false
# Disable writes up or down scaling.
# Those controls will not have any effect if enable-writes-autoscaling is false
disable-writes-up-scaling = false
disable-writes-down-scaling = false
# Thresholds for scaling up or down the provisioning (%)
writes-upper-threshold: 90
writes-lower-threshold: 30
# How many percent should Dynamic DynamoDB increase/decrease provisioning with (%)
increase-writes-with: 50
decrease-writes-with: 50
# Units to increase or decrease writes with, must be either percent or units
increase-writes-unit: percent
decrease-writes-unit: percent
# Maximum and minimum write provisioning
# Dynamic DynamoDB will not provision any more or less writes than this
min-provisioned-writes: 100
max-provisioned-writes: 500
#
# Maintenance windows (in UTC)
#
#maintenance-windows: 22:00-23:59,00:00-06:00
#
# Simple Notification Service configuration
#
# Topic ARN to publish notifications to
#
# Example:
# sns-topic-arn: arn:aws:sns:us-east-1:123456789012:dynamic-dynamodb-my_table
# Message types to send as SNS notifications
#
# Comma separated list. Currently supported values:
# - scale-up Get notifications when the table is scaled up
# - scale-down Get notifications when the table is scaled down
# - high-throughput-alarm Get notifications when exceed high throughput threshold
# - low-throughput-alarm Get notifications when below low throughput threshold
#
# Example:
# sns-message-types: scale-up, scale-down, high-throughput-alarm, low-throughput-alarm
# Threshold for trigging throughput alarm to send notification (%)
# reads-upper-alarm-threshold: 0
# reads-lower-alarm-threshold: 0
#
# Other settings
#
# Allow down scaling when at 0% consumed reads
#allow-scaling-down-reads-on-0-percent: true
#allow-scaling-down-writes-on-0-percent: true
# Restrict scale down to only happen when BOTH reads AND writes are in need
# of scaling down. Set this to "true" to minimize down scaling.
#always-decrease-rw-together: true