Commit 547a8d58 authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'ricardoamarilla-master-patch-10357' into 'master'

Update [runners.machine] section in Autoscaling GitLab Runner on AWS EC2 documentation

See merge request gitlab-org/gitlab-runner!2480
parents 5b67c2c4 2e0619d3
......@@ -320,16 +320,6 @@ check_interval = 0
IdleCount = 1
IdleTime = 1800
MaxBuilds = 100
[[runners.machine.autoscaling]]
Periods = ["* * 9-17 * * mon-fri *"]
IdleCount = 50
IdleTime = 3600
Timezone = "UTC"
[[runners.machine.autoscaling]]
Periods = ["* * * * * sat,sun *"]
IdleCount = 5
IdleTime = 60
Timezone = "UTC"
MachineDriver = "amazonec2"
MachineName = "gitlab-docker-machine-%s"
MachineOptions = [
......@@ -343,6 +333,16 @@ check_interval = 0
"amazonec2-security-group=docker-machine-scaler",
"amazonec2-instance-type=m4.2xlarge",
]
[[runners.machine.autoscaling]]
Periods = ["* * 9-17 * * mon-fri *"]
IdleCount = 50
IdleTime = 3600
Timezone = "UTC"
[[runners.machine.autoscaling]]
Periods = ["* * * * * sat,sun *"]
IdleCount = 5
IdleTime = 60
Timezone = "UTC"
```
## Cutting down costs with Amazon EC2 Spot instances
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment