Your SlideShare is downloading. ×
eZ publish - Instant Publishing and Greater Traffic
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

eZ publish - Instant Publishing and Greater Traffic

2,301
views

Published on


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,301
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. GLOBAL AGENCY: e-communication e-technology e-systemesInstant Publishing and Greater TrafficHow to create a more dynamic presence for yournews website with eZ Publish and Varnish?Discover the newest extension eZ Accelerator! eZ Accelerator 14/10/2011 1
  • 2. SUMMARYCHALLANGES AND OBJECTIVES ! Managing heavy web traffic using eZ Publish ! Achieving greater responsiveness during publishingSTATE OF THE ART: EXISTING SOLUTIONS !   Natives solutions ! Classic ! eZ DFS Cluster ! Static Cache ! Specific solution ! Specific static publishing ! Third-party solution !   Cache server on top (Varnish or CDN)THE NOVACTIVE SOLUTION: A NEW EXTENSION ! eZ Accelerator eZ Accelerator 14/10/2011 2
  • 3. Challanges and ObjectivesChallanges ! eZ Publish is the most powerful Open-Source CMS !  Meets all the needs of content management ! Allows all types of design !   Has high scalability ! However greater flexibility and performance come at price: over loading database requests !   This can create performance problems in the event of heavy images and/or high trafficObjectives ! Deploy eZ Publish for news websites so they may handle high traffic requests ! Load balancing of traffic ! Preserving the scalability ! Seeking an instant publication tool: current challenge of news websites ! Avoiding multiple specific developments !   Long and costly ! Reduces the scalability of a platform eZ Accelerator 14/10/2011 3
  • 4. Native SolutionseZ Publish 4.X eZ Accelerator 14/10/2011 4
  • 5. 1. Classic Architecture eZ Accelerator 14/10/2011 5
  • 6. 1. Classic Architecture Visitors eZ Contributors MySQL eZ Accelerator 14/10/2011 6
  • 7. 2. eZ DFS Classic Architecture eZ Accelerator 14/10/2011 7
  • 8. 2. eZ DFS Classic Architecture Visitors Load Balancer eZ eZ eZ eZ Contributors eZ DFS NFS MySQL eZ Accelerator 14/10/2011 8
  • 9. 2. Classic and eZ DFS ArchitectureBenefits !   Optimal cache management !   Instant publishingDisadvantages ! Database will be under significant demand !   Performance is directly related to the quality of code and design choice ! Heavily dependent on the amount of content and users / contributorsUse Case ! Inadequate for objectives: !   > 100 pages/sec !   > 150 K objects eZ ! Suitable for sites with limited traffic eZ Accelerator 14/10/2011 9
  • 10. 3. Classic + Static Cache Architecture eZ Accelerator 14/10/2011 10
  • 11. 3. Classic + Static Cache Architecture Visitors Static Cache eZ Contributors MySQL eZ Accelerator 14/10/2011 11
  • 12. 4. eZ DFS + Static Cache Architecture eZ Accelerator 14/10/2011 12
  • 13. 4.eZ DFS+Static Cache Architecture–Multi Front Visitors Load Balancer Static Static Static Static Cache Cache Cache Cache eZ eZ eZ eZ Contributors eZ DFS NFS MySQL eZ Accelerator 14/10/2011 13
  • 14. 4. eZ DFS + Static Cache ArchitectureBenefits ! Perfect reliability when experiencing high traffic ! Does not require a cache serverDisadvantages !   Not very flexible: Does not offer solutions for transverse block management (Ex: Site menu / footer / ...) ! Very heavy cache clearing ! Does not handle all potential node views of a content ! Problem in connected mode (Full AJAX or no cache) !   Apache is always solicited (and less powerful than Varnish)Use cases ! Adapted for sites with high traffic with institutional content !   Not suitable for sites with many transverse blocks and high contribution, as for example media and/or news sites. eZ Accelerator 14/10/2011 14
  • 15. Other solution:Adding a cache server on topFor example: Varnish eZ Accelerator 14/10/2011 15
  • 16. 1. Classic Architecture + Varnish eZ Accelerator 14/10/2011 16
  • 17. 1. Classic Architecture + Varnish Visitors Varnish eZ Contributors MySQL eZ Accelerator 14/10/2011 17
  • 18. 2. eZ DFS Architecture + Varnish eZ Accelerator 14/10/2011 18
  • 19. 2. eZ DFS Architecture + Varnish Load Balancer Visitors Varnish Varnish eZ eZ eZ eZ Contributors eZ DFS NFS MySQL eZ Accelerator 14/10/2011 19
  • 20. 2. Architecture eZ DFS + VarnishBenefits !   No development is needed (except connected party) !   Flexible cache management ! Transparency with the applicationDisadvantages ! Managing the connected party? !   Works on a short TTL (Time To Live) ! Delaying the publication with 2xTTL time ! Induced time lag of contents !   The permanent dilemma: !   The greater the TTL is, the less responsive it is. !   The more you reduce the TTL, the less capable you are of handling high traffic eZ Accelerator 14/10/2011 20
  • 21. How to do better? eZ Accelerator 14/10/2011 21
  • 22. Novactive ObjectivesCombine advantages of each solution ! Classic eZ DFS Cluster !   Optimal cache management !   Instant publishing ! eZ DFS Cluster - Static Cache ! Reliability !   Cache Server !   Flexible cache management ! Transparency of the application.…and remove all disadvantages. eZ Accelerator 14/10/2011 22
  • 23. Our solutioneZ Accelerator eZ Accelerator 14/10/2011 23
  • 24. eZ Accelerator A connector between Varnish and eZ PublishPrinciple: ! Clear specific and targeted Varnish Cache at the end of the publication process. !   On all relatives URLs: !   Of a content !   Of related node connections with the content view caching process !   In other words, all rules of the content view cache are respected in Varnish purge! eZ Accelerator 14/10/2011 24
  • 25. eZ AcceleratoreZ Accelerator in details: !   a control interface to clear specific Varnish caches !   The management of several Varnish servers. eZ Accelerator 14/10/2011 25
  • 26. eZ AcceleratoreZ Accelerator in details: !   Multi-site access managment ! Varnish cache purging !   On publication (take care of workflow process), ! Manually via !   A new button in the adminsitration interface !   A CLI script eZ Accelerator 14/10/2011 26
  • 27. eZ Accelerator eZ Accelerator 14/10/2011 27
  • 28. eZ Accelerator eZ Accelerator 14/10/2011 28
  • 29. eZ Accelerator !   No slowdown in the publication process (daemon) !   StaleCache management, which in turn does not hide any obsolete pages in Varnish !   Some template operators for managing ESI (and block) !   A Varnish 3 configuration file optimized for eZ Publish !   Interface available in FR and EN eZ Accelerator 14/10/2011 29
  • 30. To be resume: without eZ AcceleratorProcess without extension Visitors TTL very short> Varnish performance panics with high traffic eZ eZ eZ eZ ViewCache Publication eZ DFS System process Contributors NFS MySQL Trageted purge of eZ Cache eZ Accelerator 14/10/2011 30
  • 31. To be resume: avec eZ AcceleratorProcess with extension Visitors Trageted purge of TTL very long > noeZ Accelerator Varnish Varnish solicitation of database (even Cache in high traffic period) eZ eZ eZ eZ ViewCache Publication eZ DFS System process Contributors NFS MySQL Trageted purge of eZ Cache eZ Accelerator 14/10/2011 31
  • 32. For simple sites, eZ Accelerator alsoworks with a single server! eZ Accelerator 14/10/2011 32
  • 33. eZ AcceleratorOnly one eZ Publish instance ! Only one web server (Apache) !   N SiteAccess ! Only one database VisitorseZ Accelerator extension ! With only one VarnishOnly on Varnish ! Varnish ! Very long TTL VarnishNo cluster modeNo NFS eZ Accelerator ContributorsA simple architecture eZ MySQLVery efficient!!! eZ Accelerator 14/10/2011 33
  • 34. eZ Accelerator – Advanced usage !   Managing cache-block !   Varnish became an application piece of the platform !   ESI System !   Deleting cache-block and using benefit of ESI views !   Update these caches (old cache-block) with the ezpublish view caching system.Example: !   The left menu is unique per node of depth 2 ! We want: ! Generate the menu once a node of depth 2 !   Update this menu directly when a change is made eZ Accelerator 14/10/2011 34
  • 35. eZ Accelerator – Advanced usagePagelayout standard eZ Publish: With cache-block Pagelayout Header (cache-block) Menu (cache-block) View Footer (cache-block) eZ Accelerator 14/10/2011 35
  • 36. eZ Accelerator – Advanced usagePagelayout with eZ Accelerator: Without cache-block Pagelayout Header (/content/view/header/2) Menu (/content/view/menu/N) View Footer (/content/view/footer/2) eZ Accelerator 14/10/2011 36
  • 37. eZ Accelerator in clonclusion eZ Accelerator 14/10/2011 37
  • 38. eZ Accelerator in conclusionObjectives Attained !   In production on several websites, eZ Accelerator has proved its efficiency on high traffic sites: ! Varnish caches 98% of requests !   Apache handle 2% of actual traffic !   The database is dedicated to the backoffice and to the generation of new content ! We see a significant slowdown of usage of the NFS ! Beyond speed, more security: the website is always available due to the shield protection of Varnish (even if have server problems occur)Certified extension by eZ Systems !   In production on Sport24.com, deployed on a daily news site ! Easy to install ! Available in the eZ Market since mid-October 2011Since August 2011 Novactive, is a certified Varnish partner ! Provides support for the extension eZ Accelerator !   May advise in the setup of your Varnish servers eZ Accelerator 14/10/2011 38
  • 39. Address: 42-44, rue de Paradis 75010 PARIS FRANCEPhone: +331.48.24.33.60Fax: +331.48.24.33.54Email: info@novactive.comSite: www.novactive.comSARL au capital de 132.576 eurosRCS Paris B 408 999 233 eZ Accelerator 14/10/2011 39