Skip to content

Commit 128b311

Browse files
authored
updated the README.md with most recent changes
1 parent 1f7eade commit 128b311

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

aws/README.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -152,53 +152,53 @@ EOF
152152

153153
## Upgrading DC/OS
154154

155-
You can upgrade your DC/OS cluster with a single command. This Terraform script was built to perform installs and upgrades from the inception of this project.
155+
You can upgrade your DC/OS cluster with a single command. This terraform script was built to perform installs and upgrades from the inception of this project. With the upgrade procedures below, you can also have finer control on how masters or agents upgrade at a given time. This will give you the ability to change the parallelism of master or agent upgrades.
156156

157-
With the upgrade procedures below, you can also have finer control on how masters or agents upgrade at a given time. This will give you the ability to change the parallelism of master or agent upgrades.
157+
### DC/OS Upgrades
158158

159-
### Rolling Upgrade
159+
#### Rolling Upgrade
160+
###### Supported upgraded by dcos.io
160161

161-
#### Masters Sequentially, Agents Parellel
162+
##### Prerequisite:
163+
Update your terraform scripts to gain access to the latest DC/OS version with this command below:
162164

163-
Supported upgraded by dcos.io.
165+
```
166+
terraform get --update
167+
```
164168

169+
##### Masters Sequentially, Agents Parellel:
165170
```bash
166171
terraform apply -var-file desired_cluster_profile.tfvars -var state=upgrade -target null_resource.bootstrap -target null_resource.master -parallelism=1
167172
terraform apply -var-file desired_cluster_profile.tfvars -var state=upgrade
168173
```
169174

170-
#### All Roles Simultaniously
171-
172-
Not supported by dcos.io but it works without dcos_skip_checks enabled.
175+
##### All Roles Simultaniously
176+
###### Not supported by dcos.io but it works without dcos_skip_checks enabled.
173177

174178
```bash
175179
terraform apply -var-file desired_cluster_profile.tfvars -var state=upgrade
176180
```
177181

178182
## Maintenance
179183

180-
If you would like to add more or remove agents from your cluster, you can do so by telling Terraform your desired state and it will make sure it gets you there.
181-
182-
For example, if I have 2 private agents and 1 public agent in my `-var-file` I can override that flag by specifying the `-var` flag. It has higher priority than the `-var-file`.
184+
If you would like to add more or remove (private) agents or public agents from your cluster, you can do so by telling terraform your desired state and it will make sure it gets you there.
183185

184186
### Adding Agents
185187

186188
```bash
187-
terraform apply \
188-
-var-file desired_cluster_profile \
189-
--var num_of_private_agents=5 \
190-
--var num_of_public_agents=3
189+
# update num_of_private_agents = "5" in desired_cluster_profile.tfvars
190+
terraform apply -var-file desired_cluster_profile.tfvars
191191
```
192192

193193
### Removing Agents
194194

195195
```bash
196-
terraform apply \
197-
-var-file desired_cluster_profile \
198-
--var num_of_private_agents=1 \
199-
--var num_of_public_agents=1
196+
# update num_of_private_agents = "2" in desired_cluster_profile.tfvars
197+
terraform apply -var-file desired_cluster_profile.tfvars
200198
```
201199

200+
**Important**: Always remember to save your desired state in your `desired_cluster_profile.tfvars`
201+
202202
## Redeploy an Existing Master
203203

204204
If you wanted to redeploy a problematic master (ie. storage filled up, not responsive, etc), you can tell Terraform to redeploy during the next cycle.
@@ -216,7 +216,7 @@ terraform taint aws_instance.master.0 # The number represents the agent in the l
216216
Redeploy master node:
217217

218218
```bash
219-
terraform apply -var-file desired_cluster_profile
219+
terraform apply -var-file desired_cluster_profile.tfvars
220220
```
221221

222222
## Redeploy an Existing Agent
@@ -235,7 +235,7 @@ terraform taint aws_instance.agent.0 # The number represents the agent in the li
235235
Redeploy agent:
236236

237237
```bash
238-
terraform apply -var-file desired_cluster_profile
238+
terraform apply -var-file desired_cluster_profile.tfvars
239239
```
240240

241241

@@ -250,7 +250,7 @@ terraform taint aws_instance.public-agent.0 # The number represents the agent in
250250
Redeploy agent:
251251

252252
```bash
253-
terraform apply -var-file desired_cluster_profile
253+
terraform apply -var-file desired_cluster_profile.tfvars
254254
```
255255

256256
## Experimental
@@ -262,20 +262,21 @@ terraform apply -var-file desired_cluster_profile
262262
As of Mesos 1.0, which now supports GPU agents, you can experiment with them immediately by simply removing `.disabled` from `dcos-gpu-agents.tf.disabled`. Once you do that, you can simply perform `terraform apply` and the agents will be deployed and configure and automatically join your mesos cluster. The default of `num_of_gpu_agents` is `1`. You can also remove GPU agents by simply adding `.disabled` and it will exit as well.
263263

264264

265-
266265
#### Add GPU Private Agents
267266

268267
```bash
269268
mv dcos-gpu-agents.tf.disabled dcos-gpu-agents.tf
270269
terraform get
271-
terraform apply -var-file desired_cluster_profile --var num_of_gpu_agents=3
270+
# add num_of_gpu_agents = "3" in desired_cluster_profile.tfvars
271+
terraform apply -var-file desired_cluster_profile.tfvars
272272
```
273273

274274
#### Remove GPU Private Agents
275275

276276
```bash
277277
mv dcos-gpu-agents.tf dcos-gpu-agents.tf.disabled
278-
terraform apply -var-file desired_cluster_profile
278+
# remove num_of_gpu_agents = "3" in desired_cluster_profile.tfvars
279+
terraform apply -var-file desired_cluster_profile.tfvars
279280
```
280281

281282

@@ -284,7 +285,7 @@ terraform apply -var-file desired_cluster_profile
284285
You can shutdown/destroy all resources from your environment by running this command below:
285286

286287
```bash
287-
terraform destroy -var-file desired_cluster_profile
288+
terraform destroy -var-file desired_cluster_profile.tfvars
288289
```
289290

290291
## Roadmap
@@ -298,5 +299,5 @@ terraform destroy -var-file desired_cluster_profile
298299
- [X] Support for Centos
299300
- [X] Secondary support for specific versions of Centos
300301
- [X] Support for RHEL
301-
- [ ] Secondary support for specific versions of RHEL
302+
- [X] Secondary support for specific versions of RHEL
302303
- [ ] Multi AZ Support

0 commit comments

Comments
 (0)