SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
DrupalCamps 2012

           Drupal
it all comes down to performance


        Janis Janovskis
         @PASSIVUS
 http://passivemanagement.net
Drupal
it all comes down to performance




            ?
Drupal
it all comes down to performance


           WHY?
          WHERE?
           HOW?

               :)
Drupal
          it all comes down to performance
    Database level – wt … is cache?
✔   cache_block
✔   cache_bootstrap
✔   cache_field
✔   cache_form
✔   cache_.....
Drupal
          it all comes down to performance
            Database → cache_your_???();
✔   cache_set
✔   cache_get
✔   ctools_include('object-cache');
✔   ctools_object_cache_set('my_module', $id,
    $object);
✔   ctools_include('object-cache');
✔   ctools_object_cache_clear('my_module', $id);
Drupal
             it all comes down to performance
                  Database → caching();
✔   Query caching – query_cache_type=1
✔   table caching – memcache
✔   noSQL
    ➔   MongoDB
    ➔   CouchDB
    ➔   Reddis
    ➔   ….
Drupal
          it all comes down to performance
                         PHP
✔   APC
✔   XCACHE
✔   Remove redundant modules(code)
✔   Profiling (Xhprof)
Drupal
          it all comes down to performance
    PHP - Modules
✔   entity_cache
✔   boost (best on shared environments)
✔   block_cache_alter
✔   memcache api integration
✔   apc integration
✔   elysia cron (better cron job management)
✔   ajax blocks
Drupal
          it all comes down to performance
                Filesystem - backend
✔   File size limitations (file field configuration
✔   aggregate css
✔   aggregate js
✔   remove redundant css/js
✔   cdn
Drupal
          it all comes down to performance
                 Files –> front end();
✔   Build in css/js architecture (“clearfix”)
✔   Built in js framework (jQuery, + jQuery UI(D7
✔   Image preloads
              ADMIN             CONTENT



                       MODULE


              THEME             THEME
Drupal
         it all comes down to performance
    Performance → Web servers();
✔   Load balancing
✔   Apache mod_proxy
✔   Ningx vs Apache
✔   Varnish proxy caching
Drupal
        it all comes down to performance
          TESTING YOUR BUILT

✔   DrupalWebTestCase
✔   devel module → query information
✔   views statistics
✔   performance tests(jmeter)
Drupal
          it all comes down to performance
                       www.bounty.com
✔   ~1.5 milj. users
✔   Affiliate marketing solutions
✔   Embed community
✔   “Crapped” (not fresh) backend
✔   Almost no documentation
✔   Offline db integration
Drupal
      it all comes down to performance
Architecture

               APACHE1             MEMCACHE1


  LOAD
BALANCER                 FILE SERVER           MYSQL
                                               MYSQL
                                               MYSQL
                                               MYSQL

               APACHE2            MEMCACHE1
Drupal
          it all comes down to performance
    Bounty → Improvements();
✔   No panels
✔   Block instances
✔   By, by boot :)
✔   Education – tutoring
✔   Micro-sites
✔   Code improvements(Documentation)
✔   Removing redundancies (profile module)
Drupal
           it all comes down to performance
                  www.savethechildren.org.uk
✔   25 editors
✔   UI friendly configuration
    ➔   Panels
    ➔   Context
    ➔   Views
    ➔   Pages
Drupal
           it all comes down to performance
    Architecture

           varnish1   apache1       memcache1


                                                MYSQL
  LOAD                      files
BALANCER                                        MYSQL
                                                MYSQL


           varnish1   apache2       memcache2
Drupal
          it all comes down to performance
    Save the Children → improvements();
✔   Memcache
✔   Profiling with xhprof, devel
✔   Contributing to community
✔   Education
✔   … I am still on this role …..
Drupal
          it all comes down to performance
    Improvements → personal();
✔   Analysing
✔   Contributing
✔   Training
✔   Sharing
Drupal
   it all comes down to performance


             Thanks
     http://passivemanagement.net
janis.janovskis@passivemanagement.net
            @PASSIVUS

Contenu connexe

Similaire à Drupal - it all comes down to performance

Drupal Meetup Lisbon
Drupal Meetup LisbonDrupal Meetup Lisbon
Drupal Meetup LisbonPaulo Gomes
 
Embracing the modern web using Drupal as Headless CMS with GatsbyJS NYC
Embracing the modern web using Drupal as Headless CMS with GatsbyJS NYCEmbracing the modern web using Drupal as Headless CMS with GatsbyJS NYC
Embracing the modern web using Drupal as Headless CMS with GatsbyJS NYCJesus Manuel Olivas
 
Building and Maintaining a Distribution in Drupal 7 with Features
Building and Maintaining a  Distribution in Drupal 7 with FeaturesBuilding and Maintaining a  Distribution in Drupal 7 with Features
Building and Maintaining a Distribution in Drupal 7 with FeaturesNuvole
 
Improving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLAImproving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLAJesus Manuel Olivas
 
BADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best PracticesBADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best Practicesmeghsweet
 
Tutorial MySQL com Java
Tutorial MySQL com JavaTutorial MySQL com Java
Tutorial MySQL com JavaMySQL Brasil
 
Using JavaScript in Drupal
Using JavaScript in DrupalUsing JavaScript in Drupal
Using JavaScript in Drupalkatbailey
 
Divio - Django in the "cloud" 
Divio - Django in the "cloud" Divio - Django in the "cloud" 
Divio - Django in the "cloud" Mathieu Meylan
 
Speeding up your Drupal site
Speeding up your Drupal siteSpeeding up your Drupal site
Speeding up your Drupal siteRonan Berder
 
Dbdeployer, the universal installer
Dbdeployer, the universal installerDbdeployer, the universal installer
Dbdeployer, the universal installerGiuseppe Maxia
 
Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9Mediacurrent
 
How to keep Drupal relevant in the Git-based and API-driven CMS era - BADCamp
How to keep Drupal relevant in the Git-based and API-driven CMS era - BADCampHow to keep Drupal relevant in the Git-based and API-driven CMS era - BADCamp
How to keep Drupal relevant in the Git-based and API-driven CMS era - BADCampJesus Manuel Olivas
 
Drupal 6 Performance Tips
Drupal 6 Performance TipsDrupal 6 Performance Tips
Drupal 6 Performance TipsTrevor James
 
Drupal performance and scalability
Drupal performance and scalabilityDrupal performance and scalability
Drupal performance and scalabilityTwinbit
 
We need revisions and CRAP everywhere in Drupal core
We need revisions and CRAP everywhere in Drupal coreWe need revisions and CRAP everywhere in Drupal core
We need revisions and CRAP everywhere in Drupal coreDick Olsson
 
Depolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and CapistranoDepolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and Capistranolibsys
 
App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)outstanding59
 
Inside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldInside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldRichard McDougall
 

Similaire à Drupal - it all comes down to performance (20)

A Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 MinutesA Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 Minutes
 
Drupal Meetup Lisbon
Drupal Meetup LisbonDrupal Meetup Lisbon
Drupal Meetup Lisbon
 
Embracing the modern web using Drupal as Headless CMS with GatsbyJS NYC
Embracing the modern web using Drupal as Headless CMS with GatsbyJS NYCEmbracing the modern web using Drupal as Headless CMS with GatsbyJS NYC
Embracing the modern web using Drupal as Headless CMS with GatsbyJS NYC
 
Building and Maintaining a Distribution in Drupal 7 with Features
Building and Maintaining a  Distribution in Drupal 7 with FeaturesBuilding and Maintaining a  Distribution in Drupal 7 with Features
Building and Maintaining a Distribution in Drupal 7 with Features
 
Improving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLAImproving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLA
 
BADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best PracticesBADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best Practices
 
Tutorial MySQL com Java
Tutorial MySQL com JavaTutorial MySQL com Java
Tutorial MySQL com Java
 
Using JavaScript in Drupal
Using JavaScript in DrupalUsing JavaScript in Drupal
Using JavaScript in Drupal
 
SynapseIndia drupal presentation on drupal
SynapseIndia drupal  presentation on drupalSynapseIndia drupal  presentation on drupal
SynapseIndia drupal presentation on drupal
 
Divio - Django in the "cloud" 
Divio - Django in the "cloud" Divio - Django in the "cloud" 
Divio - Django in the "cloud" 
 
Speeding up your Drupal site
Speeding up your Drupal siteSpeeding up your Drupal site
Speeding up your Drupal site
 
Dbdeployer, the universal installer
Dbdeployer, the universal installerDbdeployer, the universal installer
Dbdeployer, the universal installer
 
Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9Best Practices for Moving to Drupal 9
Best Practices for Moving to Drupal 9
 
How to keep Drupal relevant in the Git-based and API-driven CMS era - BADCamp
How to keep Drupal relevant in the Git-based and API-driven CMS era - BADCampHow to keep Drupal relevant in the Git-based and API-driven CMS era - BADCamp
How to keep Drupal relevant in the Git-based and API-driven CMS era - BADCamp
 
Drupal 6 Performance Tips
Drupal 6 Performance TipsDrupal 6 Performance Tips
Drupal 6 Performance Tips
 
Drupal performance and scalability
Drupal performance and scalabilityDrupal performance and scalability
Drupal performance and scalability
 
We need revisions and CRAP everywhere in Drupal core
We need revisions and CRAP everywhere in Drupal coreWe need revisions and CRAP everywhere in Drupal core
We need revisions and CRAP everywhere in Drupal core
 
Depolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and CapistranoDepolying Drupal with Git, Drush Make and Capistrano
Depolying Drupal with Git, Drush Make and Capistrano
 
App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)
 
Inside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldInside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworld
 

Plus de Janis Janovskis

Drupal for big data projects at the DupalCamp North 2015.
Drupal for big data projects at the DupalCamp North 2015.Drupal for big data projects at the DupalCamp North 2015.
Drupal for big data projects at the DupalCamp North 2015.Janis Janovskis
 
Don't drive diesels - why quality matters
Don't drive diesels  - why quality mattersDon't drive diesels  - why quality matters
Don't drive diesels - why quality mattersJanis Janovskis
 
Drupal for big data is it ready?
Drupal for big data   is it ready?Drupal for big data   is it ready?
Drupal for big data is it ready?Janis Janovskis
 
How to set up a great team?
How to set up a great team?How to set up a great team?
How to set up a great team?Janis Janovskis
 
Leading open source development team on large scale cloud based systems
Leading open source development team on large scale cloud based systemsLeading open source development team on large scale cloud based systems
Leading open source development team on large scale cloud based systemsJanis Janovskis
 

Plus de Janis Janovskis (6)

Drupal for big data projects at the DupalCamp North 2015.
Drupal for big data projects at the DupalCamp North 2015.Drupal for big data projects at the DupalCamp North 2015.
Drupal for big data projects at the DupalCamp North 2015.
 
Don't drive diesels - why quality matters
Don't drive diesels  - why quality mattersDon't drive diesels  - why quality matters
Don't drive diesels - why quality matters
 
Drupal for big data is it ready?
Drupal for big data   is it ready?Drupal for big data   is it ready?
Drupal for big data is it ready?
 
How to set up a great team?
How to set up a great team?How to set up a great team?
How to set up a great team?
 
Why to give talks
Why to give talksWhy to give talks
Why to give talks
 
Leading open source development team on large scale cloud based systems
Leading open source development team on large scale cloud based systemsLeading open source development team on large scale cloud based systems
Leading open source development team on large scale cloud based systems
 

Dernier

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
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
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Dernier (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
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
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

Drupal - it all comes down to performance

  • 1. DrupalCamps 2012 Drupal it all comes down to performance Janis Janovskis @PASSIVUS http://passivemanagement.net
  • 2. Drupal it all comes down to performance ?
  • 3. Drupal it all comes down to performance WHY? WHERE? HOW? :)
  • 4. Drupal it all comes down to performance Database level – wt … is cache? ✔ cache_block ✔ cache_bootstrap ✔ cache_field ✔ cache_form ✔ cache_.....
  • 5. Drupal it all comes down to performance Database → cache_your_???(); ✔ cache_set ✔ cache_get ✔ ctools_include('object-cache'); ✔ ctools_object_cache_set('my_module', $id, $object); ✔ ctools_include('object-cache'); ✔ ctools_object_cache_clear('my_module', $id);
  • 6. Drupal it all comes down to performance Database → caching(); ✔ Query caching – query_cache_type=1 ✔ table caching – memcache ✔ noSQL ➔ MongoDB ➔ CouchDB ➔ Reddis ➔ ….
  • 7. Drupal it all comes down to performance PHP ✔ APC ✔ XCACHE ✔ Remove redundant modules(code) ✔ Profiling (Xhprof)
  • 8. Drupal it all comes down to performance PHP - Modules ✔ entity_cache ✔ boost (best on shared environments) ✔ block_cache_alter ✔ memcache api integration ✔ apc integration ✔ elysia cron (better cron job management) ✔ ajax blocks
  • 9. Drupal it all comes down to performance Filesystem - backend ✔ File size limitations (file field configuration ✔ aggregate css ✔ aggregate js ✔ remove redundant css/js ✔ cdn
  • 10. Drupal it all comes down to performance Files –> front end(); ✔ Build in css/js architecture (“clearfix”) ✔ Built in js framework (jQuery, + jQuery UI(D7 ✔ Image preloads ADMIN CONTENT MODULE THEME THEME
  • 11. Drupal it all comes down to performance Performance → Web servers(); ✔ Load balancing ✔ Apache mod_proxy ✔ Ningx vs Apache ✔ Varnish proxy caching
  • 12. Drupal it all comes down to performance TESTING YOUR BUILT ✔ DrupalWebTestCase ✔ devel module → query information ✔ views statistics ✔ performance tests(jmeter)
  • 13. Drupal it all comes down to performance www.bounty.com ✔ ~1.5 milj. users ✔ Affiliate marketing solutions ✔ Embed community ✔ “Crapped” (not fresh) backend ✔ Almost no documentation ✔ Offline db integration
  • 14.
  • 15. Drupal it all comes down to performance Architecture APACHE1 MEMCACHE1 LOAD BALANCER FILE SERVER MYSQL MYSQL MYSQL MYSQL APACHE2 MEMCACHE1
  • 16. Drupal it all comes down to performance Bounty → Improvements(); ✔ No panels ✔ Block instances ✔ By, by boot :) ✔ Education – tutoring ✔ Micro-sites ✔ Code improvements(Documentation) ✔ Removing redundancies (profile module)
  • 17.
  • 18. Drupal it all comes down to performance www.savethechildren.org.uk ✔ 25 editors ✔ UI friendly configuration ➔ Panels ➔ Context ➔ Views ➔ Pages
  • 19. Drupal it all comes down to performance Architecture varnish1 apache1 memcache1 MYSQL LOAD files BALANCER MYSQL MYSQL varnish1 apache2 memcache2
  • 20. Drupal it all comes down to performance Save the Children → improvements(); ✔ Memcache ✔ Profiling with xhprof, devel ✔ Contributing to community ✔ Education ✔ … I am still on this role …..
  • 21. Drupal it all comes down to performance Improvements → personal(); ✔ Analysing ✔ Contributing ✔ Training ✔ Sharing
  • 22. Drupal it all comes down to performance Thanks http://passivemanagement.net janis.janovskis@passivemanagement.net @PASSIVUS