How to change the type of gear in shutter mode?

I accidentally chose a large outfit when I created my application in shutter mode. Is there a way to lower the transfer type without actually re-creating my application? Both large to medium, or perhaps even large to small .highcpu.

Thanks in advance guys

+6
source share
2 answers

You need to recreate your application, however there is an easy way to create a copy using the --from-app flag.

To resize, scale, and / or scope, you can use rhc app create to clone an existing application. The following command will create a full copy of the original application and create a new unscaled version of the application using the default small.highcpu mechanism in the US region:

 $ rhc app create <new_app_name> --from-app <existing_app_name> --no-scaling --gear-size small.highcpu 

The following command will create a full copy of the original application and create a new scalable version of the application using medium gear in the European region:

 $ rhc app create <new_app_name> --from-app <existing_app_name> --scaling --gear-size medium --region aws-eu-west-1 

For more information on scaling and available disk sizes, check out the OpenShift Developer Portal .

+9
source

Unfortunately, you cannot downgrade your existing gear. However, you can use the rhc snapshot function to make it easier to transfer the application to a lower gear.

You can read about snapshot and recovery in the documentation: https://developers.openshift.com/en/managing-backing-up-applications.html

0
source

Source: https://habr.com/ru/post/978317/


All Articles