Sitecore E-Commerce Cookbook - Welcome to the Sitecore Developer
Deploy Sitecore with Zero Downtime · #SitecoreSYM What is the Challenge? • Sitecore is a CMS...
Transcript of Deploy Sitecore with Zero Downtime · #SitecoreSYM What is the Challenge? • Sitecore is a CMS...
#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
#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
#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
#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
#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
#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.
#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
#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.
#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
#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)
#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.
#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.
#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.
#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.
#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.
#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
#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/
#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