Soumettre la recherche
Mettre en ligne
Drupal and Varnish Reverse Proxy
•
Télécharger en tant que ODP, PDF
•
5 j'aime
•
3,258 vues
V
VFXCode
Suivre
Technologie
Signaler
Partager
Signaler
Partager
1 sur 23
Télécharger maintenant
Recommandé
Assurer - a pluggable server testing/monitoring framework
Assurer - a pluggable server testing/monitoring framework
Gosuke Miyashita
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
عطاءالمنعم اثیل شیخ
nir
nir
HAINIRMALRAJ
How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...
Gosuke Miyashita
Php Power Tools
Php Power Tools
Michelangelo van Dam
/* pOrt80BKK */ - PHP Day - PHP Performance with APC + Memcached for Windows
/* pOrt80BKK */ - PHP Day - PHP Performance with APC + Memcached for Windows
Ford AntiTrust
Apc presentation
Apc presentation
guestef8544
Website releases made easy with the PEAR installer - Barcelona 2008
Website releases made easy with the PEAR installer - Barcelona 2008
Helgi Þormar Þorbjörnsson
Recommandé
Assurer - a pluggable server testing/monitoring framework
Assurer - a pluggable server testing/monitoring framework
Gosuke Miyashita
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
عطاءالمنعم اثیل شیخ
nir
nir
HAINIRMALRAJ
How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...
Gosuke Miyashita
Php Power Tools
Php Power Tools
Michelangelo van Dam
/* pOrt80BKK */ - PHP Day - PHP Performance with APC + Memcached for Windows
/* pOrt80BKK */ - PHP Day - PHP Performance with APC + Memcached for Windows
Ford AntiTrust
Apc presentation
Apc presentation
guestef8544
Website releases made easy with the PEAR installer - Barcelona 2008
Website releases made easy with the PEAR installer - Barcelona 2008
Helgi Þormar Þorbjörnsson
Northeast PHP - High Performance PHP
Northeast PHP - High Performance PHP
Jonathan Klein
Website releases made easy with the PEAR installer, OSCON 2009
Website releases made easy with the PEAR installer, OSCON 2009
Helgi Þormar Þorbjörnsson
Watch Me Install Alfresco
Watch Me Install Alfresco
Alfresco Software
Modern Perl toolchain (help building microservices)
Modern Perl toolchain (help building microservices)
Jose Luis Martínez
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
Perforce
Deploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
Tasawr Interactive
Capistrano
Capistrano
Travis Roberts
Asynchronous Threads in Lasso 8.5
Asynchronous Threads in Lasso 8.5
bilcorry
WE18_Performance_Up.ppt
WE18_Performance_Up.ppt
webhostingguy
are available here
are available here
webhostingguy
Caching and tuning fun for high scalability @ phpBenelux 2011
Caching and tuning fun for high scalability @ phpBenelux 2011
Wim Godden
Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012
Wim Godden
Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...
wensheng wei
香港六合彩
香港六合彩
csukxnr
eZ Publish vs Drupal - technical battle
eZ Publish vs Drupal - technical battle
Kaliop-slide
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and Profiling
Scott MacVicar
Everyone loves PHP
Everyone loves PHP
Abhijit Das
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Chris Tankersley
Caching for Cash: Caching
Caching for Cash: Caching
Scott MacVicar
Writing Prefork Workers / Servers
Writing Prefork Workers / Servers
Kazuho Oku
Introduction to PHP
Introduction to PHP
Jussi Pohjolainen
Http Parameter Pollution, a new category of web attacks
Http Parameter Pollution, a new category of web attacks
Stefano Di Paola
Contenu connexe
Tendances
Northeast PHP - High Performance PHP
Northeast PHP - High Performance PHP
Jonathan Klein
Website releases made easy with the PEAR installer, OSCON 2009
Website releases made easy with the PEAR installer, OSCON 2009
Helgi Þormar Þorbjörnsson
Watch Me Install Alfresco
Watch Me Install Alfresco
Alfresco Software
Modern Perl toolchain (help building microservices)
Modern Perl toolchain (help building microservices)
Jose Luis Martínez
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
Perforce
Deploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
Tasawr Interactive
Capistrano
Capistrano
Travis Roberts
Asynchronous Threads in Lasso 8.5
Asynchronous Threads in Lasso 8.5
bilcorry
WE18_Performance_Up.ppt
WE18_Performance_Up.ppt
webhostingguy
are available here
are available here
webhostingguy
Caching and tuning fun for high scalability @ phpBenelux 2011
Caching and tuning fun for high scalability @ phpBenelux 2011
Wim Godden
Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012
Wim Godden
Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...
wensheng wei
香港六合彩
香港六合彩
csukxnr
eZ Publish vs Drupal - technical battle
eZ Publish vs Drupal - technical battle
Kaliop-slide
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and Profiling
Scott MacVicar
Everyone loves PHP
Everyone loves PHP
Abhijit Das
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Chris Tankersley
Caching for Cash: Caching
Caching for Cash: Caching
Scott MacVicar
Writing Prefork Workers / Servers
Writing Prefork Workers / Servers
Kazuho Oku
Tendances
(20)
Northeast PHP - High Performance PHP
Northeast PHP - High Performance PHP
Website releases made easy with the PEAR installer, OSCON 2009
Website releases made easy with the PEAR installer, OSCON 2009
Watch Me Install Alfresco
Watch Me Install Alfresco
Modern Perl toolchain (help building microservices)
Modern Perl toolchain (help building microservices)
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
Deploy Rails Application by Capistrano
Deploy Rails Application by Capistrano
Capistrano
Capistrano
Asynchronous Threads in Lasso 8.5
Asynchronous Threads in Lasso 8.5
WE18_Performance_Up.ppt
WE18_Performance_Up.ppt
are available here
are available here
Caching and tuning fun for high scalability @ phpBenelux 2011
Caching and tuning fun for high scalability @ phpBenelux 2011
Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012
Samba Optimization and Speed Tuning f...
Samba Optimization and Speed Tuning f...
香港六合彩
香港六合彩
eZ Publish vs Drupal - technical battle
eZ Publish vs Drupal - technical battle
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and Profiling
Everyone loves PHP
Everyone loves PHP
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Your Inner Sysadmin - Tutorial (SunshinePHP 2015)
Caching for Cash: Caching
Caching for Cash: Caching
Writing Prefork Workers / Servers
Writing Prefork Workers / Servers
Similaire à Drupal and Varnish Reverse Proxy
Introduction to PHP
Introduction to PHP
Jussi Pohjolainen
Http Parameter Pollution, a new category of web attacks
Http Parameter Pollution, a new category of web attacks
Stefano Di Paola
Running PHP on a Java container
Running PHP on a Java container
netinhoteixeira
Implementing Comet using PHP
Implementing Comet using PHP
King Foo
Choosing an API
Choosing an API
Joe Walling
SPARQLing Services
SPARQLing Services
Leigh Dodds
Introduction to Modern Perl
Introduction to Modern Perl
Dave Cross
Beyond the Node: Arkestration with Noah
Beyond the Node: Arkestration with Noah
lusis
MNPHP Scalable Architecture 101 - Feb 3 2011
MNPHP Scalable Architecture 101 - Feb 3 2011
Mike Willbanks
Nginx Workshop Aftermath
Nginx Workshop Aftermath
Denis Zhdanov
Iptablesrocks
Iptablesrocks
qwer_asdf
Perl Dancer, FPW 2010
Perl Dancer, FPW 2010
Alexis Sukrieh
Oscon 2011 - ATS
Oscon 2011 - ATS
Leif Hedstrom
AppSec EU 2009 - HTTP Parameter Pollution by Luca Carettoni and Stefano di P...
AppSec EU 2009 - HTTP Parameter Pollution by Luca Carettoni and Stefano di P...
Magno Logan
Apache Traffic Server
Apache Traffic Server
supertom
Zend Con 2008 Slides
Zend Con 2008 Slides
mkherlakian
Os Treat
Os Treat
oscon2007
HAProxy scale out using open source
HAProxy scale out using open source
Ingo Walz
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
SaltStack
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch Fix
Diana Tkachenko
Similaire à Drupal and Varnish Reverse Proxy
(20)
Introduction to PHP
Introduction to PHP
Http Parameter Pollution, a new category of web attacks
Http Parameter Pollution, a new category of web attacks
Running PHP on a Java container
Running PHP on a Java container
Implementing Comet using PHP
Implementing Comet using PHP
Choosing an API
Choosing an API
SPARQLing Services
SPARQLing Services
Introduction to Modern Perl
Introduction to Modern Perl
Beyond the Node: Arkestration with Noah
Beyond the Node: Arkestration with Noah
MNPHP Scalable Architecture 101 - Feb 3 2011
MNPHP Scalable Architecture 101 - Feb 3 2011
Nginx Workshop Aftermath
Nginx Workshop Aftermath
Iptablesrocks
Iptablesrocks
Perl Dancer, FPW 2010
Perl Dancer, FPW 2010
Oscon 2011 - ATS
Oscon 2011 - ATS
AppSec EU 2009 - HTTP Parameter Pollution by Luca Carettoni and Stefano di P...
AppSec EU 2009 - HTTP Parameter Pollution by Luca Carettoni and Stefano di P...
Apache Traffic Server
Apache Traffic Server
Zend Con 2008 Slides
Zend Con 2008 Slides
Os Treat
Os Treat
HAProxy scale out using open source
HAProxy scale out using open source
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
Making Spinnaker Go @ Stitch Fix
Making Spinnaker Go @ Stitch Fix
Dernier
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
V3cube
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
lior mazor
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Gabriella Davis
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Antenna Manufacturer Coco
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
Pixlogix Infotech
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Dernier
(20)
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Drupal and Varnish Reverse Proxy
1.
Scalability is the
new black
2.
Scalability is a
desirable property of a system, a network, or a process, which indicates its ability to either handle growing amounts of work in a graceful manner or to be enlarged. What is scalability? -Wikipedia
3.
4.
5.
Better session
handling
6.
7.
8.
Delay between corresponding
prefflow forks and vanilla Drupal
9.
Patch compatibility is
not 100% guaranteed
10.
11.
if you need
the features of PF
12.
13.
if you need
the features of PF
14.
No
15.
if you are
afraid of experimental and 3 rd party code for the site
16.
17.
18.
Squid – most
used proxy
19.
Varnish – mostly
used with Drupal sites
20.
Nginx – http
and proxy server in one
21.
22.
Almost out of
the box compatibility with Pressflow (and Drupal 7)
23.
Surpassed only by
nginx with a very small margin
24.
Very helpful tools
(varnishtop, varnishhist etc)
25.
26.
Configuration looks difficult
at first
27.
A little slower
than nginx
28.
Needs a backend
29.
30.
# apt-get -t
testing install varnish
31.
Configure diffrent listening
port for apache if they share the same environment
32.
Configure Varnish to
forward traffic to the Apache's server IP and Port
33.
34.
Set the Caching
Mode to External
35.
Set the Page
Cache Maximum Age > 0
36.
37.
Static files should
have expire headers for correct varnish cache life
38.
Avoid non 2xx
request status, like 3xx redirects.
39.
Choose carefully the
Minimum cache lifetime in Pressflow
40.
backend default {
.host = "<ApacheIP"; .port = "80"; .connect_timeout = 120s; .first_byte_timeout = 60s; .between_bytes_timeout = 20s; .max_connections = 95; } sub vcl_hash { if (req.http.Cookie) { set req.hash += req.http.Cookie; } } sub vcl_fetch { if (req.url ~ "(png|gif|jpg|swf|css|js)$") { unset beresp.http.set-cookie; } }
41.
sub vcl_recv {
if (req.request != "GET" && req.request != "HEAD" && req.request != "PUT" && req.request != "POST" && req.request != "TRACE" && req.request != "OPTIONS" && req.request != "DELETE") { /* Non-RFC2616 or CONNECT which is weird. */ return (pipe); } if (req.request != "GET" && req.request != "HEAD") { /* We only deal with GET and HEAD by default */ return (pass); } if (req.url ~ "(png|gif|jpg|swf|css|js)$") { unset req.http.Cookie; return (lookup); } set req.http.Cookie = regsuball(req.http.Cookie, "(^|;*)(__[a-z]+)=[^;]*", ""); set req.http.Cookie = regsuball(req.http.Cookie, "(^|;*)(slider-block_1)=[^;]*", ""); set req.http.Cookie = regsuball(req.http.Cookie, "(^|;*)(DrupalAdminToolbar)=[^;]*", ""); set req.http.Cookie = regsub(req.http.Cookie, "^;*", ""); if (req.http.Cookie ~ "^*$") { unset req.http.Cookie; }
42.
if (req.http.Authorization ||
req.http.Cookie) { return (pass); } if (req.url ~ "installphp|updatephp|cronphp") { return (pass); } if (req.http.Accept-Encoding) { if (req.url ~ "(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") { # No point in compressing these remove req.http.Accept-Encoding; } elsif (req.http.Accept-Encoding ~ "gzip") { set req.http.Accept-Encoding = "gzip"; } else { remove req.http.Accept-Encoding; } } set req.grace = 30s; return (lookup); }
43.
Varnish tools -
varnishhist
44.
Varnish - varnishtop
45.
Varnish – varnishtop
-i TxURL
46.
Varnish - varnishstat
47.
48.
Nginx with boost
: 1678.02 Request / Second
49.
Rackspace Instance 2048MB
(88$/month)
50.
Apache with Boost
: 54.77 Request / Second
51.
Questions? Stefanos Boglou
Télécharger maintenant