SlideShare a Scribd company logo
1 of 42
Download to read offline
© 2017 Magento, Inc. Page | 2
Monitoring your cache
effectiveness in
Magento 2
© 2017 Magento, Inc. Page | 3
Tony Brown
Technical Director, Space 48
@Tonegolf71
@Space48ers
© 2017 Magento, Inc. Page | 4
Tony Brown
Technical Director, Space 48
@Tonegolf71
@Space48ers
@MageTitans
© 2017 Magento, Inc. Page |
Remember…
• Full Page Cache (FPC) is not an
excuse to have slow PHP /
Magento code
5
M2 FPC
© 2017 Magento, Inc. Page |
Varnish
7
Client Varnish Server
Client Varnish Server
Request
Request
Response Response
Cache-Miss
Cache-Hit, response
© 2017 Magento, Inc. Page |
• Natively faster with Varnish
• Now in CE and EE
• Building to work with one FPC
• Core improvements benefit everyone
Advantages over Core M1 FPC
8
© 2017 Magento, Inc. Page |
• Reduce requests reaching the full app to a minimum
• Only invalidate data when absolutely necessary and keep impact of
invalidation to a minimum
Optimal FPC Performance
9
More HITS
Less MISSES
In Other Words…
The challenge is how..?
© 2017 Magento, Inc. Page |
• Varnish config file and M2 core modules
• Tag support
• Method for handling private data on a page
• Method for independently cacheable elements
M2 FPC
12
© 2017 Magento, Inc. Page |
Why is FPC effectiveness important?
13
© 2017 Magento, Inc. Page |
• Bad performance hurts conversion!!!
Why is FPC effectiveness important?
14
© 2017 Magento, Inc. Page |
• Varnish command-line tools
• varnishstat
• varnishtop
• varnishlog
How do we know?
15
How can we easily monitor
FPC effectiveness?
© 2017 Magento, Inc. Page |
@maxpchadwick
http://maxchadwick.xyz
Something Digital
Mpchadwick_PageCacheHitRate
: https://goo.gl/oWJZ0w
Magento 1 Module
17
© 2017 Magento, Inc. Page |
• time
• url
• hit, miss (or partial)
• route
• plus more
M1 Module: Log Data
18
© 2017 Magento, Inc. Page |19
© 2017 Magento, Inc. Page |20
Can we use the same
approach?
© 2017 Magento, Inc. Page |
In Short… No
22
Client Varnish Server
Client Varnish Server
Request
Request
Response Response
Cache-Miss
Cache-Hit, response
But we can do something
similar!
© 2017 Magento, Inc. Page |
• varnishncsa
• Display Varnish logs in Apache / NCSA combined log format
• Format can be customised
• Can include Varnish extended variables
M2 FPC monitoring
24
© 2017 Magento, Inc. Page |
• time
• hit, miss
• url
M2 FPC monitoring
25
© 2017 Magento, Inc. Page |
• We will get data for all requests including static assets
• We are missing the route of the Magento Controller
Two Challenges
26
© 2017 Magento, Inc. Page |
Add the route as a header
27
X-Magento-Full-Action-Name | cms_index_index
© 2017 Magento, Inc. Page |28
© 2017 Magento, Inc. Page |
• time
• hit, miss
• route
• url
M2 FPC monitoring
29
© 2017 Magento, Inc. Page |
Add the route as a header
30
X-Magento-Full-Action-Name | cms_index_index
© 2017 Magento, Inc. Page |31
Some Examples
Can you guess what is
going wrong?
© 2017 Magento, Inc. Page |34
© 2017 Magento, Inc. Page |35
Beware of
cacheable=“false”
© 2017 Magento, Inc. Page |37
Beware of crazy admin
users!
© 2017 Magento, Inc. Page |
• Native New Relic Magento Varnish plugin!
• What else could we report on that is valuable?
• Data being invalidated, too broad or frequently?
What next?
39
© 2017 Magento, Inc. Page |
Thank you!
40
© 2017 Magento, Inc. Page |
Thank you!
41
© 2017 Magento, Inc. Page |
• Any Questions?
Thank you!
42
Sat 11th Nov 2017
@MageTitans
Don’t miss it!
Manchester

More Related Content

What's hot

The long way from Monolith to Microservices
The long way from Monolith to MicroservicesThe long way from Monolith to Microservices
The long way from Monolith to MicroservicesIgor Miniailo
 
Norwegian SharePoint Community - What happened at Ignite
Norwegian SharePoint Community - What happened at IgniteNorwegian SharePoint Community - What happened at Ignite
Norwegian SharePoint Community - What happened at IgniteMikael Svenson
 
Customer Facing - Strategic Review & Consultation Deck
Customer Facing - Strategic Review & Consultation DeckCustomer Facing - Strategic Review & Consultation Deck
Customer Facing - Strategic Review & Consultation Deckaimeedress
 
Process Flow Tech
Process Flow TechProcess Flow Tech
Process Flow TechFloydBement
 
Meet Magento Belarus - Davide Consonni
Meet Magento Belarus - Davide ConsonniMeet Magento Belarus - Davide Consonni
Meet Magento Belarus - Davide ConsonniAmasty
 
Meet Magento Belarus - Elena Leonova
Meet Magento Belarus - Elena LeonovaMeet Magento Belarus - Elena Leonova
Meet Magento Belarus - Elena LeonovaAmasty
 
Scribe insight 03 elevating performance
Scribe insight 03   elevating performanceScribe insight 03   elevating performance
Scribe insight 03 elevating performanceScribe Software Corp.
 

What's hot (8)

The long way from Monolith to Microservices
The long way from Monolith to MicroservicesThe long way from Monolith to Microservices
The long way from Monolith to Microservices
 
Norwegian SharePoint Community - What happened at Ignite
Norwegian SharePoint Community - What happened at IgniteNorwegian SharePoint Community - What happened at Ignite
Norwegian SharePoint Community - What happened at Ignite
 
Customer Facing - Strategic Review & Consultation Deck
Customer Facing - Strategic Review & Consultation DeckCustomer Facing - Strategic Review & Consultation Deck
Customer Facing - Strategic Review & Consultation Deck
 
Process Flow Tech
Process Flow TechProcess Flow Tech
Process Flow Tech
 
Meet Magento Belarus - Davide Consonni
Meet Magento Belarus - Davide ConsonniMeet Magento Belarus - Davide Consonni
Meet Magento Belarus - Davide Consonni
 
Meet Magento Belarus - Elena Leonova
Meet Magento Belarus - Elena LeonovaMeet Magento Belarus - Elena Leonova
Meet Magento Belarus - Elena Leonova
 
News from Koha and PTFS Europe
News from Koha and PTFS EuropeNews from Koha and PTFS Europe
News from Koha and PTFS Europe
 
Scribe insight 03 elevating performance
Scribe insight 03   elevating performanceScribe insight 03   elevating performance
Scribe insight 03 elevating performance
 

Similar to Monitoring your cache effectiveness in Magento 2

Chernivtsi Magento Meetup&Contribution day. Naida V.
Chernivtsi Magento Meetup&Contribution day. Naida V.Chernivtsi Magento Meetup&Contribution day. Naida V.
Chernivtsi Magento Meetup&Contribution day. Naida V.Elogic Magento Development
 
Igor Miniailo - Magento 2 API Design Best Practices
Igor Miniailo - Magento 2 API Design Best PracticesIgor Miniailo - Magento 2 API Design Best Practices
Igor Miniailo - Magento 2 API Design Best PracticesAtwix
 
The Evolution of Hosting and What's Next with Cloud
The Evolution of Hosting and What's Next with CloudThe Evolution of Hosting and What's Next with Cloud
The Evolution of Hosting and What's Next with CloudJosh Ward
 
Magento 2 ERP Integration Best Practices: Microsoft Dynamics
Magento 2 ERP Integration Best Practices: Microsoft DynamicsMagento 2 ERP Integration Best Practices: Microsoft Dynamics
Magento 2 ERP Integration Best Practices: Microsoft DynamicsJoshua Warren
 
Magento 2 Best Practice MLUK17
Magento 2 Best Practice MLUK17Magento 2 Best Practice MLUK17
Magento 2 Best Practice MLUK17Brent W Peterson
 
Testing in Magento 2
Testing in Magento 2 Testing in Magento 2
Testing in Magento 2 Igor Miniailo
 
MageConf 2017, Design API Best Practices
MageConf 2017, Design API Best PracticesMageConf 2017, Design API Best Practices
MageConf 2017, Design API Best PracticesIgor Miniailo
 
MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications
MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications
MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications Franziska Tanner
 
Mli 2017 technical backward compatibility
Mli 2017 technical backward compatibilityMli 2017 technical backward compatibility
Mli 2017 technical backward compatibilityHanoi MagentoMeetup
 
Introduction to Azure Functions
Introduction to Azure FunctionsIntroduction to Azure Functions
Introduction to Azure FunctionsMarco Parenzan
 
Experience in Magento Community Projects
Experience in Magento Community ProjectsExperience in Magento Community Projects
Experience in Magento Community ProjectsMagecom UK Limited
 
SPUnite17 Migrating your Customizations from On-prem to SharePoint Online
SPUnite17 Migrating your Customizations from On-prem to SharePoint OnlineSPUnite17 Migrating your Customizations from On-prem to SharePoint Online
SPUnite17 Migrating your Customizations from On-prem to SharePoint OnlineNCCOMMS
 
Magento Cloud - Introduction
Magento Cloud - IntroductionMagento Cloud - Introduction
Magento Cloud - IntroductionOleg Posyniak
 
Best Practices - By Lofi Dewanto
Best Practices - By Lofi DewantoBest Practices - By Lofi Dewanto
Best Practices - By Lofi DewantoGWTcon
 
Backward Compatibility Developer's Guide in Magento 2. #MM17CZ
Backward Compatibility Developer's Guide in Magento 2. #MM17CZBackward Compatibility Developer's Guide in Magento 2. #MM17CZ
Backward Compatibility Developer's Guide in Magento 2. #MM17CZIgor Miniailo
 
Volodymyr Kublytskyi - Develop Product, Design Platform
Volodymyr Kublytskyi - Develop Product, Design PlatformVolodymyr Kublytskyi - Develop Product, Design Platform
Volodymyr Kublytskyi - Develop Product, Design PlatformMeet Magento Italy
 
Imagine recap-devhub
Imagine recap-devhubImagine recap-devhub
Imagine recap-devhubMagento Dev
 
Oleh Kobchenko - Configure Magento 2 to get maximum performance
Oleh Kobchenko - Configure Magento 2 to get maximum performanceOleh Kobchenko - Configure Magento 2 to get maximum performance
Oleh Kobchenko - Configure Magento 2 to get maximum performanceMeet Magento Italy
 

Similar to Monitoring your cache effectiveness in Magento 2 (20)

Chernivtsi Magento Meetup&Contribution day. Naida V.
Chernivtsi Magento Meetup&Contribution day. Naida V.Chernivtsi Magento Meetup&Contribution day. Naida V.
Chernivtsi Magento Meetup&Contribution day. Naida V.
 
Igor Miniailo - Magento 2 API Design Best Practices
Igor Miniailo - Magento 2 API Design Best PracticesIgor Miniailo - Magento 2 API Design Best Practices
Igor Miniailo - Magento 2 API Design Best Practices
 
The Evolution of Hosting and What's Next with Cloud
The Evolution of Hosting and What's Next with CloudThe Evolution of Hosting and What's Next with Cloud
The Evolution of Hosting and What's Next with Cloud
 
Headless in the CMS
Headless in the CMSHeadless in the CMS
Headless in the CMS
 
Magento 2 ERP Integration Best Practices: Microsoft Dynamics
Magento 2 ERP Integration Best Practices: Microsoft DynamicsMagento 2 ERP Integration Best Practices: Microsoft Dynamics
Magento 2 ERP Integration Best Practices: Microsoft Dynamics
 
Magento 2 Best Practice MLUK17
Magento 2 Best Practice MLUK17Magento 2 Best Practice MLUK17
Magento 2 Best Practice MLUK17
 
Testing in Magento 2
Testing in Magento 2 Testing in Magento 2
Testing in Magento 2
 
MageConf 2017, Design API Best Practices
MageConf 2017, Design API Best PracticesMageConf 2017, Design API Best Practices
MageConf 2017, Design API Best Practices
 
MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications
MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications
MWLUG 2017: BP107 Plotting the Path for your IBM Domino Applications
 
Mli 2017 technical backward compatibility
Mli 2017 technical backward compatibilityMli 2017 technical backward compatibility
Mli 2017 technical backward compatibility
 
Introduction to Azure Functions
Introduction to Azure FunctionsIntroduction to Azure Functions
Introduction to Azure Functions
 
Experience in Magento Community Projects
Experience in Magento Community ProjectsExperience in Magento Community Projects
Experience in Magento Community Projects
 
SPUnite17 Migrating your Customizations from On-prem to SharePoint Online
SPUnite17 Migrating your Customizations from On-prem to SharePoint OnlineSPUnite17 Migrating your Customizations from On-prem to SharePoint Online
SPUnite17 Migrating your Customizations from On-prem to SharePoint Online
 
Magento Cloud - Introduction
Magento Cloud - IntroductionMagento Cloud - Introduction
Magento Cloud - Introduction
 
Best Practices - By Lofi Dewanto
Best Practices - By Lofi DewantoBest Practices - By Lofi Dewanto
Best Practices - By Lofi Dewanto
 
Backward Compatibility Developer's Guide in Magento 2. #MM17CZ
Backward Compatibility Developer's Guide in Magento 2. #MM17CZBackward Compatibility Developer's Guide in Magento 2. #MM17CZ
Backward Compatibility Developer's Guide in Magento 2. #MM17CZ
 
Volodymyr Kublytskyi - Develop Product, Design Platform
Volodymyr Kublytskyi - Develop Product, Design PlatformVolodymyr Kublytskyi - Develop Product, Design Platform
Volodymyr Kublytskyi - Develop Product, Design Platform
 
Imagine recap-devhub
Imagine recap-devhubImagine recap-devhub
Imagine recap-devhub
 
Optimizing your API to Perform at Scale
Optimizing your API to Perform at ScaleOptimizing your API to Perform at Scale
Optimizing your API to Perform at Scale
 
Oleh Kobchenko - Configure Magento 2 to get maximum performance
Oleh Kobchenko - Configure Magento 2 to get maximum performanceOleh Kobchenko - Configure Magento 2 to get maximum performance
Oleh Kobchenko - Configure Magento 2 to get maximum performance
 

Recently uploaded

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 

Recently uploaded (20)

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 

Monitoring your cache effectiveness in Magento 2

  • 1.
  • 2. © 2017 Magento, Inc. Page | 2 Monitoring your cache effectiveness in Magento 2
  • 3. © 2017 Magento, Inc. Page | 3 Tony Brown Technical Director, Space 48 @Tonegolf71 @Space48ers
  • 4. © 2017 Magento, Inc. Page | 4 Tony Brown Technical Director, Space 48 @Tonegolf71 @Space48ers @MageTitans
  • 5. © 2017 Magento, Inc. Page | Remember… • Full Page Cache (FPC) is not an excuse to have slow PHP / Magento code 5
  • 7. © 2017 Magento, Inc. Page | Varnish 7 Client Varnish Server Client Varnish Server Request Request Response Response Cache-Miss Cache-Hit, response
  • 8. © 2017 Magento, Inc. Page | • Natively faster with Varnish • Now in CE and EE • Building to work with one FPC • Core improvements benefit everyone Advantages over Core M1 FPC 8
  • 9. © 2017 Magento, Inc. Page | • Reduce requests reaching the full app to a minimum • Only invalidate data when absolutely necessary and keep impact of invalidation to a minimum Optimal FPC Performance 9
  • 10. More HITS Less MISSES In Other Words…
  • 12. © 2017 Magento, Inc. Page | • Varnish config file and M2 core modules • Tag support • Method for handling private data on a page • Method for independently cacheable elements M2 FPC 12
  • 13. © 2017 Magento, Inc. Page | Why is FPC effectiveness important? 13
  • 14. © 2017 Magento, Inc. Page | • Bad performance hurts conversion!!! Why is FPC effectiveness important? 14
  • 15. © 2017 Magento, Inc. Page | • Varnish command-line tools • varnishstat • varnishtop • varnishlog How do we know? 15
  • 16. How can we easily monitor FPC effectiveness?
  • 17. © 2017 Magento, Inc. Page | @maxpchadwick http://maxchadwick.xyz Something Digital Mpchadwick_PageCacheHitRate : https://goo.gl/oWJZ0w Magento 1 Module 17
  • 18. © 2017 Magento, Inc. Page | • time • url • hit, miss (or partial) • route • plus more M1 Module: Log Data 18
  • 19. © 2017 Magento, Inc. Page |19
  • 20. © 2017 Magento, Inc. Page |20
  • 21. Can we use the same approach?
  • 22. © 2017 Magento, Inc. Page | In Short… No 22 Client Varnish Server Client Varnish Server Request Request Response Response Cache-Miss Cache-Hit, response
  • 23. But we can do something similar!
  • 24. © 2017 Magento, Inc. Page | • varnishncsa • Display Varnish logs in Apache / NCSA combined log format • Format can be customised • Can include Varnish extended variables M2 FPC monitoring 24
  • 25. © 2017 Magento, Inc. Page | • time • hit, miss • url M2 FPC monitoring 25
  • 26. © 2017 Magento, Inc. Page | • We will get data for all requests including static assets • We are missing the route of the Magento Controller Two Challenges 26
  • 27. © 2017 Magento, Inc. Page | Add the route as a header 27 X-Magento-Full-Action-Name | cms_index_index
  • 28. © 2017 Magento, Inc. Page |28
  • 29. © 2017 Magento, Inc. Page | • time • hit, miss • route • url M2 FPC monitoring 29
  • 30. © 2017 Magento, Inc. Page | Add the route as a header 30 X-Magento-Full-Action-Name | cms_index_index
  • 31. © 2017 Magento, Inc. Page |31
  • 33. Can you guess what is going wrong?
  • 34. © 2017 Magento, Inc. Page |34
  • 35. © 2017 Magento, Inc. Page |35
  • 37. © 2017 Magento, Inc. Page |37
  • 38. Beware of crazy admin users!
  • 39. © 2017 Magento, Inc. Page | • Native New Relic Magento Varnish plugin! • What else could we report on that is valuable? • Data being invalidated, too broad or frequently? What next? 39
  • 40. © 2017 Magento, Inc. Page | Thank you! 40
  • 41. © 2017 Magento, Inc. Page | Thank you! 41
  • 42. © 2017 Magento, Inc. Page | • Any Questions? Thank you! 42 Sat 11th Nov 2017 @MageTitans Don’t miss it! Manchester