How to change the instance type of controller on CJE-AWS

Issue

I need to change the instance type of the controllers on my CJE cluster

Environment

  • CloudBees Jenkins Enterprise (CJE)
  • Amazon Web Services (AWS)

Resolution

This method change the instance type for the controllers, take care that one controller it is up and running before restart the next one, these are the steps:

1 - Modified .dna/project.config file to set instance_type to m4.large on every controller and the default type

[controller]
instance_type = m4.large

[controller-1:controller]
instance_type = m4.large

[controller-2:controller]
instance_type = m4.large

[controller-3controller]
instance_type = m4.large

2 - Upgrade your project configuration

cje upgrade --config-only --force

3 - Restart every controller one by one , check that the controller it is up and running with dna connect controller-X

cje prepare controller-restart

edit the file setting the correct name of the controller

cje apply

Have more questions?

1 Comments

  • 0
    Avatar
    Iaroslav Nakonechnikov

    where is a link to other options? 
    is it possible to add IAM role, for example? or how to change volume size? 


Please sign in to leave a comment.