Issue
- Could we change controllers and workers AMIs on our CJE cluster?
Environment
Resolution
This method change controllers and workers AMIs, take care that one controller is up and running before restart the next one, these are the steps:
1 - Modified .dna/project.config
file to set ami
to your AMI ID (for example ami-52836d28) on every controller, worker and the default ami
[controller]
...
ami = ami-52836d28
...
[worker]
...
ami = ami-52836d28
...
[storage]
...
ami = ami-52836d28
...
[controller-1:controller]
...
ami = ami-52836d28
...
[controller-2:controller]
...
ami = ami-52836d28
...
[controller-3controller]
...
ami = ami-52836d28
...
[worker-1:worker]
...
ami = ami-52836d28
...
[worker-2:worker]
...
ami = ami-52836d28
...
[worker-3:worker]
...
ami = ami-52836d28
...
2 - Upgrade your project configuration
cje upgrade --config-only --force
3 - Stop all Managed controllers on CJOC
4 - Restart every controller one by one , check that the controller is up and running with dna connect controller-X
cje prepare controller-restart
edit the file setting the controller name
cje apply
5 - restart workers
cje prepare worker-restart
edit the file setting the correct name of the worker
cje apply
6 - Start all Manage controllers
0 Comments