|
1 | | -total_storage_limit: 2000M |
| 1 | +total_storage_limit: 2.0G |
| 2 | + |
| 3 | +# General notes: |
| 4 | +# It appears that appengine scales on the basis of whether SOME of the instances |
| 5 | +# are running hot. This means that if just one or two instances have high cpu |
| 6 | +# for a few minutes, more instances will be started. The cpu utilization |
| 7 | +# closely reflects the number of concurrent tasks, together with the percentage |
| 8 | +# of time spent blocked on annotation and insertion requests. |
| 9 | +# |
| 10 | +# This makes it difficult to achieve both stability and high cpu utilization. |
| 11 | +# Could we monitor the cpu utilization, or perhaps the time each task spends |
| 12 | +# blocked on I/O? If each task is spending 50% of wall time blocked on I/O, |
| 13 | +# then 4 tasks should be enough to produce fairly good utilization? We want |
| 14 | +# to reject additional tasks if they would push us over utilization target, |
| 15 | +# so that they can be directed to other instances. |
2 | 16 |
|
3 | 17 | queue: |
4 | 18 | - name: etl-ndt-queue |
5 | 19 | target: etl-ndt-parser |
6 | 20 | # Average rate at which to release tasks to the service. Default is 5/sec |
7 | 21 | # This is actually the rate at which tokens are added to the bucket. |
8 | | - # 1.0 allow processing a day's data (about 11K tasks) in 3 to 4 hours. |
9 | | - rate: 1.0/s |
| 22 | + # 1.0 allow processing a day's data (about 16K tasks) in about 4 hours. |
| 23 | + # 0.3 keeps the load close to 2 instances, processing whole day in about 14 hours. |
| 24 | + rate: 0.3/s |
10 | 25 | # Number of tokens that can accumulate in the bucket. Default is 5. This should |
11 | 26 | # have very little impact for our environment. |
12 | | - bucket_size: 10 |
13 | | - # Maximum number of concurrent requests. |
14 | | - max_concurrent_requests: 360 |
| 27 | + bucket_size: 20 # To quickly fill the minimum two instances. |
| 28 | + # Maximum number of concurrent requests. Should be 0.9 * max concurrent tasks. |
| 29 | + max_concurrent_requests: 110 # For max of 10 instances, 12 workers per instance. |
15 | 30 |
|
16 | 31 | - name: etl-ndt-batch-queue |
17 | 32 | target: etl-ndt-batch-parser |
|
0 commit comments