continuous deployment - I want zero downtime deploys on CloudBees - but my app needs to warm up -


i want 0 downtime deployment of apps on cloudbees (i using continuous deployment) - app needs time warm up?

also, able roll if things go horribly wrong, there way this?

what want, may not realise - blue-green deployment, have active/standby app pair - , deploy standby, cut on when ready.

see here better description.

well, news - there plugin here.

you can automate part of jenkins build, example, in freestyle job script (this assumes have setup app per above link:

# install , configure bees sdk export bees_home=/opt/cloudbees/cloudbees-sdk/ export path=$path:$bees_home if [ ! -d ~/.bees ];     bees init -f -a <account name> -ep -k $bees_api -s $bees_secret fi bees plugin:install com.cloudbees.sdk.plugins:bg-plugin     # deploy bees app:bg:deploy -n <your app name> target/web-webapp.war     # warm new servers - example - smoke test here: echo "preparing new servers router switch over..." in {1..50}     curl -s "http://yourwebsite.com/" > /dev/null     sleep 5 done     # switch router echo "switching router on new servers..." bees app:bg:switch -n <your app name> -f     # shutdown old servers echo "shutting down old servers..." bees app:bg:stop -n int -f 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -