Experience in Drupal, Nginx       and Varnish                Ruslan Isay                Project manager                i20...
Спонсоры                          Генеральный спонсор     Организатор Серебряный спонсор   Серебряный спонсор Бронзовый сп...
Agenda1.   Server2.   Cache3.   Content4.   User5.   Developer6.   Bonus
RequirementsMore than 500 000 actual pages800 000 of registered usersAbout 150 000 pages changed every monthALWAYS serve p...
Servers architecture         NO Apache
Servers architecture
Servers architecture. SolutionsVarnish:• no persistent storage• flexible ESI, cache and TTL configuration• fast memory cache
Servers architecture. SolutionsNginx:• persistent file storage• hard to configure• load balancing• fast static cache
Servers architecture
Cache lookup
Cache refresh• frequently page content updates• fast appearance of new content on many pages• quick response for user inte...
Hot news• Panels• Panels Everywhere• edge side includes (ESI) integration• panes• one pane style plugin to rule all ESI
Hot newsJust managelayouts...
Hot news• module d.o/project/esi not used• custom integration module• hook for url arguments by pane type• expiration by T...
User events• comments• votes• counters• user profile info• user favorites• node ratings• content management
User eventsSolution - trigger PURGE/BAN of ESI, static filecache by URLModules - Purge + Cache expiration + Rules
Support & deploy• ESI urls and callbacks back support• stubs for future features• AJAX/AHAH urls and callbacks back suppor...
Bonuspack. Usercache• all cache (user/anonym) - the same• user-specific blocks by ESI• pass Drupal UID with COOKIES to JS ...
Bonuspack. Security - CSRF• tokens - not available• no proven solution• may be tokens by ESI and custom script?
CreditsAleksey Khodakovskiy - Drupal ideasAlexander Kuznecov - mega admin
Thank you for attention             Ruslan Isay             Project manager             i20.biz company             isay.r...
Спонсоры                          Генеральный спонсор     Организатор Серебряный спонсор   Серебряный спонсор Бронзовый сп...
Upcoming SlideShare
Loading in …5
×

опыт использования схемы Drupal+varnish+nginx руслан исай

641 views
604 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
641
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

опыт использования схемы Drupal+varnish+nginx руслан исай

  1. 1. Experience in Drupal, Nginx and Varnish Ruslan Isay Project manager i20.biz company isay.r@i20.biz
  2. 2. Спонсоры Генеральный спонсор Организатор Серебряный спонсор Серебряный спонсор Бронзовый спонсор Бронзовый спонсор
  3. 3. Agenda1. Server2. Cache3. Content4. User5. Developer6. Bonus
  4. 4. RequirementsMore than 500 000 actual pages800 000 of registered usersAbout 150 000 pages changed every monthALWAYS serve pages quickly
  5. 5. Servers architecture NO Apache
  6. 6. Servers architecture
  7. 7. Servers architecture. SolutionsVarnish:• no persistent storage• flexible ESI, cache and TTL configuration• fast memory cache
  8. 8. Servers architecture. SolutionsNginx:• persistent file storage• hard to configure• load balancing• fast static cache
  9. 9. Servers architecture
  10. 10. Cache lookup
  11. 11. Cache refresh• frequently page content updates• fast appearance of new content on many pages• quick response for user interaction• regular changes
  12. 12. Hot news• Panels• Panels Everywhere• edge side includes (ESI) integration• panes• one pane style plugin to rule all ESI
  13. 13. Hot newsJust managelayouts...
  14. 14. Hot news• module d.o/project/esi not used• custom integration module• hook for url arguments by pane type• expiration by TTL• pane type as ESI url part - custom TTL• programmatic ESI control
  15. 15. User events• comments• votes• counters• user profile info• user favorites• node ratings• content management
  16. 16. User eventsSolution - trigger PURGE/BAN of ESI, static filecache by URLModules - Purge + Cache expiration + Rules
  17. 17. Support & deploy• ESI urls and callbacks back support• stubs for future features• AJAX/AHAH urls and callbacks back support• scripts for "smooth" static cache regeneration• mistake cost multiplied - always think twice...
  18. 18. Bonuspack. Usercache• all cache (user/anonym) - the same• user-specific blocks by ESI• pass Drupal UID with COOKIES to JS formanage "cosmetic" render• manage cache exceptions
  19. 19. Bonuspack. Security - CSRF• tokens - not available• no proven solution• may be tokens by ESI and custom script?
  20. 20. CreditsAleksey Khodakovskiy - Drupal ideasAlexander Kuznecov - mega admin
  21. 21. Thank you for attention Ruslan Isay Project manager i20.biz company isay.r@i20.biz
  22. 22. Спонсоры Генеральный спонсор Организатор Серебряный спонсор Серебряный спонсор Бронзовый спонсор Бронзовый спонсор

×