опыт использования схемы Drupal+varnish+nginx руслан исай
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

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

  • 804 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
804
On Slideshare
772
From Embeds
32
Number of Embeds
1

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 32

http://drupalconf.ru 32

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. Experience in Drupal, Nginx and Varnish Ruslan Isay Project manager i20.biz company isay.r@i20.biz
  • 2. Спонсоры Генеральный спонсор Организатор Серебряный спонсор Серебряный спонсор Бронзовый спонсор Бронзовый спонсор
  • 3. Agenda1. Server2. Cache3. Content4. User5. Developer6. Bonus
  • 4. RequirementsMore than 500 000 actual pages800 000 of registered usersAbout 150 000 pages changed every monthALWAYS serve pages quickly
  • 5. Servers architecture NO Apache
  • 6. Servers architecture
  • 7. Servers architecture. SolutionsVarnish:• no persistent storage• flexible ESI, cache and TTL configuration• fast memory cache
  • 8. Servers architecture. SolutionsNginx:• persistent file storage• hard to configure• load balancing• fast static cache
  • 9. Servers architecture
  • 10. Cache lookup
  • 11. Cache refresh• frequently page content updates• fast appearance of new content on many pages• quick response for user interaction• regular changes
  • 12. Hot news• Panels• Panels Everywhere• edge side includes (ESI) integration• panes• one pane style plugin to rule all ESI
  • 13. Hot newsJust managelayouts...
  • 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. User events• comments• votes• counters• user profile info• user favorites• node ratings• content management
  • 16. User eventsSolution - trigger PURGE/BAN of ESI, static filecache by URLModules - Purge + Cache expiration + Rules
  • 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. 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. Bonuspack. Security - CSRF• tokens - not available• no proven solution• may be tokens by ESI and custom script?
  • 20. CreditsAleksey Khodakovskiy - Drupal ideasAlexander Kuznecov - mega admin
  • 21. Thank you for attention Ruslan Isay Project manager i20.biz company isay.r@i20.biz
  • 22. Спонсоры Генеральный спонсор Организатор Серебряный спонсор Серебряный спонсор Бронзовый спонсор Бронзовый спонсор