How to update bluemix app but leaving this app available?

I have a Java Liberty Web Application on Bluemix. If I need to update it, the application will be unavailable for several minutes. Is it possible to update it without disconnecting it? For example, deploy two applications and redirect them to the second when it is updated?

+4
source share
2 answers

This is known as a blue-green deployment, and there are several plug-ins for cloud showers that will do this automatically:

Bluemix Active Deployment Service

, - . , Bluemix . cf , :

  cf add-plugin-repo bluemix http://plugins.ng.bluemix.net/
  cf install-plugin active-deploy -r bluemix 

( cf ), ,

cf push --no-route new-version
cf active-deploy-create old-version new-version

Cloud Foundry -

,   cf add-plugin-repo garage https://garage-cf-plugins.eu-gb.mybluemix.net/  cf install-plugin blue-green-deploy -r

, ,

cf blue-green-deploy app_name --smoke-test <path to test script>

smoke test , .

+2

. , .

  • myroute.mybluemix.net
  • .
  • myroute2.mybluemix.net
  • myroute.mybluemix.net , cf map-route APP_NAME DOMAIN [-n HOSTNAME]. myroute.mybluemix.net, myroute.mybluemix.net myroute2.mybluemix.net. ( , ).
  • unmap myroute.mybluemix.net , cf unmap-route APP_NAME DOMAIN [-n HOSTNAME]. myroute.mybluemix.net .
  • cf delete APP_NAME
  • () myroute2.mybluemix.net, cf unmap-route APP_NAME DOMAIN [-n HOSTNAME]

, , .

+6

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


All Articles