SlideShare a Scribd company logo
Setting up automated tasks
Automating
tasks with
VARNISH PLUS
Hugo Cruz
Product Manager
About me
• Oslo based developer, from Portugal
• Lots of hats, mostly Front-end
Email: hugo@varnish-software.com
IRC: hugo on irc.linpro.no
Twitter: @hrcru
AGENDA
- Automating tasks with VARNISH PLUS
• The Varnish Plus minimum stack
• Playing with statistics
• VCL version control with Git
• Cache invalidation
• Increase value with VCS
Live demo
ahead
Besides black magic, there is only
automation and mechanisation
- Federico Garcia Lorca
Monitoring Configuration
Business
Statistics
Automate your tasks
Integrate Varnish Plus in your
existing toolset.
The minimum
value stack
BenefitsSetup
Management tools
Realtime monitoring
JSON API for everything
$ Setup Varnish Plus repository
$ Install Varnish Cache Plus
$ Install varnish-agent and vcs-probe
$ Install Varnish Administration Console
$ Install Varnish Custom Statistics
Varnish Cache Plus
Supercharged
version of the
popular open source
HTTP reverse proxy,
Varnish Cache
Varnish
Administration
Console
Cluster controller
for you Varnish(s)
installation
Varnish Custom
Statistics
A real-time
statistics engine
Varnish agents
and VCS probe
Varnish agent and
VCS probe are
responsible for
extracting data for
VAC and VCS
Minimal Value stack
VAC
VCS
4.1
VCS probe
Varnish agent
Varnish Cache Plus
4.1
VCS probe
Varnish agent
4.0
VCS probe
Varnish agent
4.0
VCS probe
Varnish agent
{
UI
API
UI
API
Varnish
Customs Statistics
Varnish
Administration Console
Playing with
stats
Different aggregations available
RRD statistical data
gathered in the VAC
Completely configurable
Varnish Stats through
VAC
More VCL fun
3. automatic deploy and rollover.
1. setup a git hook with VAC API
2. change VCL
VCL + GIT
Purging
Benefits
high performance purging
$ curl -X PURGE -H ‘X-Cache-Group: Production’
-H ‘X-HMAC:
0xf7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8
‘ -H ‘X-Timestamp: 1391641007 http://vac-server:8088/purge-url
purge several instances
in a group, fast
$ “ No need for extra setup. Purger is up and running with VAC, on port 8088.”
Issue a purge
acl purgers {
“127.0.0.1”;
“192.168.0.0”/24;
}
sub vcl_recv {
if (req.request == “PURGE”) {
if (!client.ip ~ purgers) {
error 405 “Method not allowed”;
}
if (digest.hmac_sha256(“secret-key”,req.url +
req.http.x-timestamp + req.http.x-cache-group) != req.http.x-hmac) {
error 405 “Method not allowed”;
}
return (lookup);
}
}
Extra security
Super Fast Purger
Fully secure
Increase
value with
VCS
Benefits
Live Production
debugging
Business indicators
Realtime statistics engine
sub vcl_deliver {
# This creates a grouping for each specific value of the Host request
std.log("vcs-key: " + req.http.host);
# This creates a key based on both the Host header and the URL
std.log("vcs-key: URL-“ + req.http.host + req.url);
# This will create two keys 'MISS' and 'HIT', each counting
# stats for requests matching one of the two conditions.
if (obj.hits == 0) {
std.log("vcs-key: MISS");
}
else {
std.log("vcs-key: HIT");
}
}
Time series API
VCS
Basic setup
(counting hits and misses)
A/B testing
Minimum stack
Setup the components
Playing with
stats
VAC powered
Varnish stats
VCL version control
Integrating VCL and GIT
Cache Invalidation
Using the Super Fast Purger
VCS in production
Debugging with VCS
Summing up
Thank you!
Reach out to me if you have further questions
hugo@varnish-software.com

More Related Content

PPTX
Infrastructural challenges of a fast-pace startup
PDF
PDF
Tick Stack - Listen your infrastructure and please sleep
ODP
Nagios Conference 2013 - Eric Stanley - Whats New Core 4
PDF
Varnish http accelerator
PDF
Varnish Cache
PDF
Varnish high availability
ODP
Varnish qconsp 2011
Infrastructural challenges of a fast-pace startup
Tick Stack - Listen your infrastructure and please sleep
Nagios Conference 2013 - Eric Stanley - Whats New Core 4
Varnish http accelerator
Varnish Cache
Varnish high availability
Varnish qconsp 2011

Similar to Setting up automated tasks (20)

PDF
Advanced cache invalidation
PDF
PHP Project development with Vagrant
PDF
Best practices for caching Plone with Varnish at large scale - PloneConf Bras...
PDF
Caching with Varnish
PDF
Running php on nginx
PPT
Varnish and Drupal- Accelerating Website Performance and Flexibility with Var...
PPT
Professional deployment
PDF
Performance
PDF
Google App Engine: For PHP Developers
PDF
AMS Node Meetup December presentation Phusion Passenger
PDF
Monitoring Docker at Scale - Docker San Francisco Meetup - August 11, 2015
ODP
HAProxy scale out using open source
PDF
VUG5: Varnish at Opera Software
PDF
T3DD12 Caching with Varnish
PPTX
VMware VI Toolkit UKVMUG
PDF
My Opera meets Varnish, Dec 2009
PPTX
Load Balancing and Scaling with NGINX
PDF
Varnish Cache Plus. Random notes for wise web developers
PDF
Php through the eyes of a hoster phpbnl11
PDF
Convert Your Dev Environment to a Docker Stack - PHP Tek 2025.pdf
Advanced cache invalidation
PHP Project development with Vagrant
Best practices for caching Plone with Varnish at large scale - PloneConf Bras...
Caching with Varnish
Running php on nginx
Varnish and Drupal- Accelerating Website Performance and Flexibility with Var...
Professional deployment
Performance
Google App Engine: For PHP Developers
AMS Node Meetup December presentation Phusion Passenger
Monitoring Docker at Scale - Docker San Francisco Meetup - August 11, 2015
HAProxy scale out using open source
VUG5: Varnish at Opera Software
T3DD12 Caching with Varnish
VMware VI Toolkit UKVMUG
My Opera meets Varnish, Dec 2009
Load Balancing and Scaling with NGINX
Varnish Cache Plus. Random notes for wise web developers
Php through the eyes of a hoster phpbnl11
Convert Your Dev Environment to a Docker Stack - PHP Tek 2025.pdf
Ad

More from Varnish Software (20)

PDF
Ask Me Anything on authentication & authorisation in Varnish
PDF
Boozt.com Use Case
PPTX
Akamai connector for varnish
PPTX
Varnish High Availability
PDF
PostNord: Copy On Write
PPTX
Varnish extend
PDF
Streaming with Varnish
PPTX
Edgestash
PPTX
What is new in varnish plus
PDF
Varnish Extend demo
PDF
Varnish extend introduction
PDF
Cedexis introduction
PDF
Secure content caching
PDF
Microservices
PDF
Varnishtest
PDF
Lightning fast with Varnish
PDF
E-commerce use case
PDF
Access control
PPTX
Varnish TLS
Ask Me Anything on authentication & authorisation in Varnish
Boozt.com Use Case
Akamai connector for varnish
Varnish High Availability
PostNord: Copy On Write
Varnish extend
Streaming with Varnish
Edgestash
What is new in varnish plus
Varnish Extend demo
Varnish extend introduction
Cedexis introduction
Secure content caching
Microservices
Varnishtest
Lightning fast with Varnish
E-commerce use case
Access control
Varnish TLS
Ad

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPTX
Cloud computing and distributed systems.
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
A Presentation on Artificial Intelligence
PDF
Encapsulation theory and applications.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
cuic standard and advanced reporting.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Empathic Computing: Creating Shared Understanding
Cloud computing and distributed systems.
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
A comparative analysis of optical character recognition models for extracting...
MIND Revenue Release Quarter 2 2025 Press Release
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
A Presentation on Artificial Intelligence
Encapsulation theory and applications.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
cuic standard and advanced reporting.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf

Setting up automated tasks

  • 3. Hugo Cruz Product Manager About me • Oslo based developer, from Portugal • Lots of hats, mostly Front-end Email: hugo@varnish-software.com IRC: hugo on irc.linpro.no Twitter: @hrcru
  • 4. AGENDA - Automating tasks with VARNISH PLUS • The Varnish Plus minimum stack • Playing with statistics • VCL version control with Git • Cache invalidation • Increase value with VCS
  • 6. Besides black magic, there is only automation and mechanisation - Federico Garcia Lorca
  • 7. Monitoring Configuration Business Statistics Automate your tasks Integrate Varnish Plus in your existing toolset.
  • 9. BenefitsSetup Management tools Realtime monitoring JSON API for everything $ Setup Varnish Plus repository $ Install Varnish Cache Plus $ Install varnish-agent and vcs-probe $ Install Varnish Administration Console $ Install Varnish Custom Statistics
  • 10. Varnish Cache Plus Supercharged version of the popular open source HTTP reverse proxy, Varnish Cache Varnish Administration Console Cluster controller for you Varnish(s) installation Varnish Custom Statistics A real-time statistics engine Varnish agents and VCS probe Varnish agent and VCS probe are responsible for extracting data for VAC and VCS Minimal Value stack
  • 11. VAC VCS 4.1 VCS probe Varnish agent Varnish Cache Plus 4.1 VCS probe Varnish agent 4.0 VCS probe Varnish agent 4.0 VCS probe Varnish agent { UI API UI API Varnish Customs Statistics Varnish Administration Console
  • 13. Different aggregations available RRD statistical data gathered in the VAC Completely configurable Varnish Stats through VAC
  • 15. 3. automatic deploy and rollover. 1. setup a git hook with VAC API 2. change VCL VCL + GIT
  • 17. Benefits high performance purging $ curl -X PURGE -H ‘X-Cache-Group: Production’ -H ‘X-HMAC: 0xf7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8 ‘ -H ‘X-Timestamp: 1391641007 http://vac-server:8088/purge-url purge several instances in a group, fast $ “ No need for extra setup. Purger is up and running with VAC, on port 8088.” Issue a purge acl purgers { “127.0.0.1”; “192.168.0.0”/24; } sub vcl_recv { if (req.request == “PURGE”) { if (!client.ip ~ purgers) { error 405 “Method not allowed”; } if (digest.hmac_sha256(“secret-key”,req.url + req.http.x-timestamp + req.http.x-cache-group) != req.http.x-hmac) { error 405 “Method not allowed”; } return (lookup); } } Extra security Super Fast Purger Fully secure
  • 19. Benefits Live Production debugging Business indicators Realtime statistics engine sub vcl_deliver { # This creates a grouping for each specific value of the Host request std.log("vcs-key: " + req.http.host); # This creates a key based on both the Host header and the URL std.log("vcs-key: URL-“ + req.http.host + req.url); # This will create two keys 'MISS' and 'HIT', each counting # stats for requests matching one of the two conditions. if (obj.hits == 0) { std.log("vcs-key: MISS"); } else { std.log("vcs-key: HIT"); } } Time series API VCS Basic setup (counting hits and misses) A/B testing
  • 20. Minimum stack Setup the components Playing with stats VAC powered Varnish stats VCL version control Integrating VCL and GIT Cache Invalidation Using the Super Fast Purger VCS in production Debugging with VCS Summing up
  • 21. Thank you! Reach out to me if you have further questions hugo@varnish-software.com