Your SlideShare is downloading. ×
Drupal - it all comes down to performance
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

Drupal - it all comes down to performance

786
views

Published on

Combined presentation of 2 talks I gave on DrupalCamp Birghton and DrupalCamp Baltics.

Combined presentation of 2 talks I gave on DrupalCamp Birghton and DrupalCamp Baltics.

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
786
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
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. DrupalCamps 2012 Drupalit all comes down to performance Janis Janovskis @PASSIVUS http://passivemanagement.net
  • 2. Drupalit all comes down to performance ?
  • 3. Drupalit 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. Drupal it all comes down to performanceArchitecture APACHE1 MEMCACHE1 LOADBALANCER FILE SERVER MYSQL MYSQL MYSQL MYSQL APACHE2 MEMCACHE1
  • 15. 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)
  • 16. Drupal it all comes down to performance www.savethechildren.org.uk✔ 25 editors✔ UI friendly configuration ➔ Panels ➔ Context ➔ Views ➔ Pages
  • 17. Drupal it all comes down to performance Architecture varnish1 apache1 memcache1 MYSQL LOAD filesBALANCER MYSQL MYSQL varnish1 apache2 memcache2
  • 18. 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 …..
  • 19. Drupal it all comes down to performance Improvements → personal();✔ Analysing✔ Contributing✔ Training✔ Sharing
  • 20. Drupal it all comes down to performance Thanks http://passivemanagement.netjanis.janovskis@passivemanagement.net @PASSIVUS