Page 1
#SitecoreSYM#SitecoreSYM © 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
1
Deploy Sitecore with Zero Downtime
Patrick PerroneBill Cacy
Page 2
#SitecoreSYM
What is a Blue/Green Deployment?
Two Identical environments
• Blue
• Green
One environment is live
One environment is not live
Load balancer used to direct traffic to the ‘live’ environment
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
2
Page 3
#SitecoreSYM
Why Do We Care?
Deployment technique that reduces downtime
Rollback to prior version if needed
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
3
Page 4
#SitecoreSYM
What is the Challenge?
• Sitecore is a CMS with a shared data layer
• Data isn’t owned solely by development team
• Sitecore owns the schema
• Content authors own ”content”
• End-users indirectly generate content
• Complex inter-relationship between xDB and SQL and search
indices
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
4
Page 5
#SitecoreSYM
The Solution
An Approach to Blue/Green Sitecore Deployments
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
5
Page 6
#SitecoreSYM 6
Server Architecture
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Page 7
#SitecoreSYM
The Octopus Environments
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
7
Page 8
#SitecoreSYM 8
Each host is added to both the Blue and the Green environments
Secondary tentacle installed on each server
Active and Non-Active roles added to the host
“sitecore-cm” vs “non-active-sitecore-cm”
Octopus Setup
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Page 9
#SitecoreSYM 9
Octopus Environment
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Sitecore CM server in Octopus
Page 10
#SitecoreSYM 10
Step 1: Synchronize Content
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Database content synced between Live and Non-Live instances
Octopus targets configured with roles for stc-sql (Live) and non-active-stc-sql (Non-Live)
Page 11
#SitecoreSYM 11
Step 2: Deploy New Version
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Page 12
#SitecoreSYM 12
Step 3: Testing
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Page 13
#SitecoreSYM 13
Step 4: Change Connection Strings and Analytics Index
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Page 14
#SitecoreSYM 14
Step 5: Make Blue the Live Environment
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Page 15
#SitecoreSYM 15
Step 6: Finish Retiring the Green Environment
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
Page 16
#SitecoreSYM
Questions?
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
16
Page 17
#SitecoreSYM
Thank you.
If you’d like to talk more about our
point-of-view on Blue/Green
Deployments or have us send you a
copy of our presentation, please
contact us.
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
17
Patrick PerroneVP of Development, [email protected] ://www.linkedin.com/in/patrick-perrone-38536913/
Bill CacySitecore Architect, [email protected] ://www.linkedin.com/in/william-cacy-7724b149/
Page 18
#SitecoreSYM
FOR DISCUSSION PURPOSES ONLY. Sitecore Confidential and Proprietary. © 2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
© 2001-2018 Sitecore Corporation A/S. All rights reserved. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand and product names are the property of their respective owners.
18