Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

S903 palla

520 views

Published on

Adobe Summit AEM Customer Care Presentation 2018 - Top 5 Common Pitfalls to Avoid. Presenters Ameeth Palla, Mukund Palwankar, Andrew Khoury

Published in: Technology
  • Login to see the comments

  • Be the first to like this

S903 palla

  1. 1. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. S903 - Experience Manager: Top 5 Common Pitfalls to Avoid Ameeth Palla: Manager, AEM Customer Care | Andrew Khoury: Principal Engineer, AEM Customer Care | Mukund Palwankar: Sr. Manager, Cisco Web Platform
  2. 2. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Customer Challenges 2 60% Maintenance Architecture Configuration Tuning Upgrade Performance Testing
  3. 3. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Best Practices (2017 Session Link)  Tuning  Maintenance  Performance  Security  Upgrade 3
  4. 4. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 4TUNING
  5. 5. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Apache Oak – Node Storage 5 JCR / Oak API Oak Core Node Storage Database / Persistence API Two Node Store Options Segment - Tar Document - MongoDB AEM AEM 1 AEM 2 MongoDB Primary MongoDB Secondary reads / writes reads / writes Tar Segment MongoDB Secondary Document Apache Oak
  6. 6. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Optimize AEM Architecture – Maximize Performance Key Points to consider:  External Datastore (File/S3/Azure)  SegmentMK (TarMK) for Performance - Always go for this  DocumentMK (MongoMK) - for High Availability Official documentation: https://docs.adobe.com/docs/en/aem/6-3/deploy/platform/data-store-config.html https://helpx.adobe.com/experience-manager/6-3/sites/deploying/using/recommended-deploys.html 6
  7. 7. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. AEM Assets Optimization Key points to consider:  Replication  Binary-less Replication – Large Asset Implementations  Workflows  Transient Workflows 'or'  Offloading  Network & Storage  NodeStore on High Performance SSD Official documentation: https://helpx.adobe.com/experience-manager/6-3/assets/using/performance-tuning-guidelines.html https://helpx.adobe.com/experience-manager/6-3/assets/using/best-practices-for-assets.html 7
  8. 8. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. New Asset Workflow Processes  Adobe’s Image Transcoding Library  Core Image handling functions (Encoding, Transcoding, Image resizing, etc)  Advantages over other 3rd party libs (performance, scalability and quality)  PDF Rasterizer  Accurate Output  Selective & Quality thumbnails  Faster processing - Less memory usage  Both supported in AEM 6.3 and 6.4  Both compatible with Offloading and Transient Workflow Official Documentation: https://helpx.adobe.com/experience-manager/6-3/assets/using/imaging-transcoding-library.html https://helpx.adobe.com/experience-manager/6-3/assets/using/aem-pdf-rasterizer.html 11
  9. 9. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 12MAINTENANCE
  10. 10. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. AEM Maintenance For more information on AEM Maintenance Tasks, please refer: https://docs.adobe.com/docs/en/aem/6-3/administer/operations/operations-dashboard.html 13 Maintenance Task Tar MongoDB Default Window Version Purge Yes Yes Configurable Workflow Purge Yes Yes Weekly Audit Log Purge Yes Yes Configurable Data Store GC Yes Yes Weekly Online Revision Clean-Up Yes No Daily Offline Revision Clean-Up (aka Tar Compaction - 6.2 and older) Yes No Weekly Log rotation Yes Yes Daily
  11. 11. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. AEM 6.4 Maintenance 14  Enhanced logging  Version purge and Audit purge stop at end of maintenance window Maintenance Task Tar MongoDB Maintenance Window Tail Compaction Yes No Daily Lucene File Cleanup Yes Yes Configurable Project Purge Yes Yes Configurable Ad-hoc tasks purge Yes Yes Configurable Continuous Revision GC No Yes Every 5s Oak-run reindexing Yes Yes As needed
  12. 12. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. AEM Implementation at a glance  Our AEM journey started about 5 years ago with AEM 5.6  Our Goal  Create Multi-tenant Platform – “Platform of choice” for all customer, partner, employee facing web sites within Cisco  Where are we now?  16+ Web Sites including Cisco.com are already on the platform and many more are on their way  Savings of $2M in operational cost year over year  8 TB content, 1K+ content authors, 10K daily activations  That makes us one the largest AEM Sites implementation in the world
  13. 13. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. AEM Best Practices  Regular Upgrades & Maintenance Jobs  Regular OAK upgrades, We recently migrated to AEM 6.3  Weekly Maintenance Jobs (Workflow Purge, Offline Compaction, Data Store Garbage Collection)  Performance Tuning & Process Optimization  Dedicated Data Stores, Index Store Separation  Migration to Physical Host  Moved from NAS to SAN (and will move to SSD soon)  Custom Indexes, Workflow offload  Application Monitoring  We have deployed AppDynamics across our architecture stack  Great tool for Load Testing  DevOps  Agile Methodology, Monthly Releases  Completely automated release process (Rally, Eclipse, Git, SonarQube, Jenkins, Artifactory, uDeploy)  12000 regression test cases with every release (Selenium,Cucumber, Neoload, Calabash)
  14. 14. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Primary AUTHOR AUTHOR II APACHE / DISPATCHER Authors Shared Assets CDN DC1 DC2 DR APACHE / DISPATCHER (5 Nodes) APACHE / DISPATCHER (5 Nodes) APACHE / DISPATCHER (5 Nodes) AEM Publish (4 Nodes) AEM Publish (4 Nodes) AEM Publish (4 Nodes) InternalNetwork Protected Net DMZ Site Visitors AUTHOR III Activation Authors Content Archival AEM - High Level Architecture AEM Author AEM Publish • Content Sharding (Horizontal Scaling Architecture) • Content Archival • Caching Architecture & CDN • Resiliency & DR
  15. 15. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 0 5 10 15 20 25 0 100 200 300 400 500 600 700 800 900 1000 Houroftheday(24H) First Slowness Second Slowness Unplanned Downtime AEM Author – Impact of implementing best practices Q1FY16 Q2FY16 Q3FY16 Q4FY16 Q1FY17 Q2FY17 Q3FY17 Q4FY17 Q1FY18 Q2FY18 Q3FY18 Index Folder Storage Separation Virtual to Physical Host Migration Dedicated data store OAK Upgrade Content Sharding AEM 6.0 Upgrade AEM 6.3 Upgrade We are here Content Archival Oak Upgrade
  16. 16. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 19
  17. 17. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Performance: Implementation Site Performance  Make back end service calls fault tolerant  Set timeouts  Cache  Exponential back-off algorithm  Optimize client-side performance  CSS in html <head>  JS in end of <body>  Minify and GZip client libraries 20 Documentation: http://helpx.adobe.com/experience-manager/kb/optimize-aem-site-performance.html
  18. 18. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Performance: Implementation Author Instance Performance  Reduce the total components per page  Avoid nesting paragraph systems 21 Documentation: http://helpx.adobe.com/experience-manager/kb/optimize-aem-site-performance.html
  19. 19. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Performance: Caching 22 CDNBrowser AEM Dispatcher AEM Documentation: https://helpx.adobe.com/experience-manager/kb/optimizing-aem-site-caches.html
  20. 20. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Caching: Browser 23 CDNBrowser AEM Dispatcher AEM Has the file been modified? If-Modified-Since: Wed, 21 Mar 2018 06:00:00 GMT No. 304 Not Modified Send me /content/test.html GET /content/test.html HTTP/1.1 Here’s /content/test.html, cache it for 5 minutes. 200 OK Cache-Control: max-age=300 Last-Modified: Wed, 21 Mar 2018 06:00:00 GMT …  Cache-Control: max-age=300  Last-Modified: Wed, 21 Mar 2018 06:00:00 GMT
  21. 21. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.  Same HTTP Headers as browser  Use a CDN that supports stale-while-revalidate and stale-if-error  GZip compress everything except pre-compressed file formats Caching: CDN 24 CDNBrowser AEM Dispatcher AEM
  22. 22. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.  Leverage Cache-Control header & disable flush agents  Leverage re-fetching dispatcher flush Caching: Dispatcher 25 CDNBrowser AEM Dispatcher AEM
  23. 23. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.  Send headers Cache-Control: max-age=300 Last-Modified: Wed, 21 Mar 2018 06:00:00 GMT Performance: Caching 26 CDNBrowser AEM Dispatcher AEM
  24. 24. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Indexing in AEM  Define indexes for custom queries  Use Oak lucene property indexes  Be specific – avoid rules that index everything (e.g. nt:base nodetype) For more information: https://docs.adobe.com/docs/en/aem/6-3/deploy/platform/queries-and-indexing.html https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/troubleshooting-slow-queries.html 27
  25. 25. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 28 SECURITY
  26. 26. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. User / Group Permissions  Never modify out-of-the-box group or user permissions  Instead add groups as members of out-of-the-box groups  Define permissions against groups, not users  Leverage rep:glob type ACLs to allow multi-tenancy Official documentation: https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/security.html 29
  27. 27. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Service Users  Use in application code instead of “admin” session  Define ACLs directly for the service user  Leverage ACS Commons “Ensure Service User” Official documentation https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/security-service- users.html 30
  28. 28. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. User Administration  6.3 Enhancements  Closed User Group feature modified  6.4 Enhancements  Assets UI - Closed User Groups support (6.3 SP1 CFP2)  New user properties UI 31
  29. 29. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 32 UPGRADE
  30. 30. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. In-Place vs. Migration In-Place Pros  Preferred upgrade method  Follow official documentation  Simpler for large deployments Cons  Author instance downtime 33 Data Migration Pros  Potentially avoid downtime  Simple for small systems and lower environments Cons  Complex and time consuming for large environments  Unofficial method – power users only  Error prone
  31. 31. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Code Upgrade 1. Install to fresh AEM target version 2. Disable /libs overlays under /apps 3. Update maven dependencies – Uber jar version 4. Use unit testing 5. Test and find broken API calls  New in 6.4 - Pattern Detector  Runs on older AEM version  Detects potential 6.4 upgrade-breaking changes  Generates a report 35
  32. 32. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Upgrade Testing  Test upgrade on a copy of production  Regression test whole application  Re-run load and stress tests 36
  33. 33. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Upgrade to AEM 6.3  Upgrade to 6.3 in two steps  Platform upgrade – 3 Author Instances, 12 Publish instances, Took 48 hours  Migration to Touch UI  We decided to go with In-place Upgrade  Great partnership with Adobe team  We were invited to participate in beta testing of AEM 6.3  Very quick turnaround time on defect resolution  Early results  Compaction times down by 40%  Much improved performance as compared to AEM 6.0
  34. 34. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Takeaways  Store large files in an External Datastore  Tune configurations to suit your use case for optimal performance  Have a robust maintenance and system monitoring plan  Upgrade to the latest version  TEST comprehensively before moving to production 38
  35. 35. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Resources Forums.Adobe.com HelpX.Adobe.com @AdobeExpCare 1.800.497.0355 Common critical AEM issues: https://helpx.adobe.com/experience-manager/kb/common-critical-AEM-issues.html Customer Care Office Hours: https://helpx.adobe.com/customer-care-office-hours.html 39
  36. 36. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Upcoming Sessions Upcoming Sessions:  Customer Care Booth Sessions  S219: Adobe Experience Manager Rock Stars: New strategies and top tips  Wednesday – 2:30 to 3:30 pm  S222: Breaking the chains: Moving your digital experiences to the cloud  Thursday – 1:30 to 2:30 pm 40
  37. 37. © 2018 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. 41 Take the Survey to win! (Survey section of the mobile app) DAY 1 Bash Experience DAY 2 Signed football helmet DAY 3 Amazon Echo Show & Cloud Cam Bundle $10Starbucks Card SESSION PRIZE one per session

×