SlideShare a Scribd company logo
LEVERAGING THE POWER OF VCL
AND VARNISHTEST
David Porter
Tech Lead / Software Developer – Global eCommerce
Varnish Summit Boston – March 2017
PURPOSE OF THIS TALK
To inspire VCL users to embrace software development practices for all to benefit.
THE PLAN• Where we were
• Where we are
WHERE WE WERE
F5s, NetSec, Tickets, Trouble
And it was not good.
5
• F5 Local Traffic Manager (LTM)
• Used as a load balancer, ACL, and a bit more…
• It's software (TCL) but no development practices.
‣ All handled by NetSec, tickets only, super slow
‣ Prone to typos, no linting
‣ No version control, full copy/paste, rapidly growing files
‣ No testing or measure to prevent regression
‣ Not much of a review process (code pasted in ticket)
‣ Too much duplication between environments, nothing shared
In the beginning was the F5…
A lot more.
6
• Broaden the team and contributor base
‣ Insight into logic
‣ Insight into configuration
‣ Not just netsec/sysops/devops
• More sophistication
‣ LTM… Varnish is an LTM/LB too, but cooler
‣ Caching… Can’t live without it
‣ HTTPhandling...Tune your requests/responses
We needed more.
WHERE WE ARE
Traffic Routing, HTTP handling, Caching
8
• Routing by hostname
‣ e.g. status.rackspace.com
• Routing by path
‣ e.g. rackspace.com/knowledge_center
• Environment / ACL handling
‣ Internal URLs
‣ Admin Panels
• Long-term redirection
‣ Old hostnames
‣ Old resources
Local Traffic Management (LTM)
9
• CORS (Cross-Origin Resource Sharing)
‣ Global policy with overrides from backends
• HTTP methods
‣ e.g. preventTRACE method
• Normalization
‣ Fix wacky requests
‣ e.g. rackspace.com///////////cloud
• Framebusting
‣ Global policy
‣ Hostname-specific exceptions (e.g. VWO heatmap tool)
• ESI
‣ When and where appropriate
HTTP Handling
10
• 90%+ hit rate
‣ e.g rackspace.com/cloud?foo=bar -> rackspace.com/cloud
‣ Path-specific overrides
‣ Disregard query params by default
‣ Internal overrides only
• Grace
‣ Invaluable during downtime
‣ Great during maintenance periods / updates
Caching
ALL TESTED
Very satisfying, gains confidence.
HOW WE GOT HERE
Automation, Continuous Integration, SDLC
13
• Puppet
‣ Configuration automation / simplification
‣ ERB templates
• Jenkins CI
‣ Puppet + Docker = great for idempotent behavior
‣ Run/lint Puppet-generated VCL
‣ Run Varnish tests against latest VCLin Docker container
• Ant
‣ TaskAutomation
‣ Defined set of tasks, no checklists for humans
Automation, automation, automation
14
• Local
‣ Vagrant VMs use same Puppet configs as staging/production
• Docker
‣ Temporary environments for CI
‣ Simplified CI architecture for all applications
• Full Staging Environment
‣ Comprehensive replica of production, top to bottom
‣ Smaller than production, still uses HAtechniques (multiple machines)
• Active/Passive Production
‣ Call it pre-prod
‣ Multiple production envs = better disaster recovery (DR)
Environments
15
• One repository to rule them all
• Better than just documentation
• Developers can contribute
‣ Path for learning VCL
‣ Foundation in varnistest
• DevOps engineers can contribute
‣ Path for learning VCL
‣ Foundation in varnistest
• Peer Review
‣ At least two peers required to sign-off
‣ Preferrably 1 DevOps, 1 Developer
SDLC (Software Development Life Cycle)
EVERYBODY WINS
No one is alone, nothing is lost.
CLOSING REMARKS
To inspire VCL users to embrace software development practices for all to benefit.
THANK YOUContact me – david.porter@rackspace.com
See me afterward for show and tell

More Related Content

PDF
Presentation citrix desktop virtualization (2)
DOCX
Study notes for CompTIA Certified Advanced Security Practitioner
PPTX
Everything you need to know about cloud migration(Build Stuff 2021)
PPTX
Major Cloud Platforms Players - Year 2015
PDF
Hyper Stratus Migrating Applications to the Cloud
PDF
RightScale Webinar: Operationalize Your Enterprise AWS Usage Through an IT Ve...
PDF
Enterprise Integration Patterns Revisited (EIP) for the Era of Big Data, Inte...
PPTX
Best Practices for Architecting VDI with Flash Storage
Presentation citrix desktop virtualization (2)
Study notes for CompTIA Certified Advanced Security Practitioner
Everything you need to know about cloud migration(Build Stuff 2021)
Major Cloud Platforms Players - Year 2015
Hyper Stratus Migrating Applications to the Cloud
RightScale Webinar: Operationalize Your Enterprise AWS Usage Through an IT Ve...
Enterprise Integration Patterns Revisited (EIP) for the Era of Big Data, Inte...
Best Practices for Architecting VDI with Flash Storage

What's hot (20)

PPTX
More Freestyle Less Duty: Integration Platform as a Service (IPaaS)
PPTX
An Easy Way to Adopt Hybrid Cloud, Datacomm Solution
PDF
OSDC 2016 - Hybrid Cloud - A Cloud Migration Strategy
PDF
Multi cloud migration decision framework
PDF
Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...
PPTX
Introducing social networking into an e commerce platform - (delver) sears ho...
PDF
What is BI on Cloud
PPTX
AMAZE™ - Application Migration to Cloud
PPTX
Moving to the cloud: cloud strategies and roadmaps
PPTX
Cloud computing elisheba wiggins
PPTX
Migrating Traditional Apps from On-Premises to the Hybrid Cloud
PPT
Business Intelligence in the Cloud I
PDF
IBM Cloud pak for data brochure
PPSX
PeopleSoft Cloud Architecture - OpenWorld 2016
PPTX
Mashing Up DevOps with Cloud Computing
PPTX
Cloud Foundry - #IBMOTS 2016
PDF
Rackspace::Solve NYC - Solving for Rapid Customer Growth and Scale Through De...
PPTX
Cloud computing case studies with ProfitBricks IaaS
PDF
Why 85% of workloads are not on public cloud, and why they will be
PPTX
Best Practices for Building Successful Cloud Projects
More Freestyle Less Duty: Integration Platform as a Service (IPaaS)
An Easy Way to Adopt Hybrid Cloud, Datacomm Solution
OSDC 2016 - Hybrid Cloud - A Cloud Migration Strategy
Multi cloud migration decision framework
Real World Use Cases and Success Stories for In-Memory Data Grids (TIBCO Acti...
Introducing social networking into an e commerce platform - (delver) sears ho...
What is BI on Cloud
AMAZE™ - Application Migration to Cloud
Moving to the cloud: cloud strategies and roadmaps
Cloud computing elisheba wiggins
Migrating Traditional Apps from On-Premises to the Hybrid Cloud
Business Intelligence in the Cloud I
IBM Cloud pak for data brochure
PeopleSoft Cloud Architecture - OpenWorld 2016
Mashing Up DevOps with Cloud Computing
Cloud Foundry - #IBMOTS 2016
Rackspace::Solve NYC - Solving for Rapid Customer Growth and Scale Through De...
Cloud computing case studies with ProfitBricks IaaS
Why 85% of workloads are not on public cloud, and why they will be
Best Practices for Building Successful Cloud Projects
Ad

Viewers also liked (16)

PDF
Design in Tech Report 2017
PDF
IBM Storage for Analytics, Cognitive and Cloud
DOCX
Khalil khan (it engineer resume)
DOC
Sudhir hadoop and Data warehousing resume
PDF
What is A Cloud Stack in 2017
PDF
Europa AI startup scaleups report 2016
PDF
Secure content caching
PDF
Microservices
PDF
AgensGraph: a Multi-model Graph Database based on PostgreSql
PDF
Mobile Finance: 2017 Trends and Innovations
PPTX
Tugas 4 0317-mukhlis abdilah-1411511213
PDF
Cross-regional Application Deplolyment on AWS - Channy Yun (JAWS Days 2017)
PDF
EMPLOYEE ENGAGEMENT & RETENTION: A REVIEW OF LITERATURE
PPTX
PDF
3582_0001
DOCX
Secretarias, la mano derecha del poder.
Design in Tech Report 2017
IBM Storage for Analytics, Cognitive and Cloud
Khalil khan (it engineer resume)
Sudhir hadoop and Data warehousing resume
What is A Cloud Stack in 2017
Europa AI startup scaleups report 2016
Secure content caching
Microservices
AgensGraph: a Multi-model Graph Database based on PostgreSql
Mobile Finance: 2017 Trends and Innovations
Tugas 4 0317-mukhlis abdilah-1411511213
Cross-regional Application Deplolyment on AWS - Channy Yun (JAWS Days 2017)
EMPLOYEE ENGAGEMENT & RETENTION: A REVIEW OF LITERATURE
3582_0001
Secretarias, la mano derecha del poder.
Ad

Similar to Varnishtest (20)

PDF
Thijs Feryn: Varnish - where devops & sysadmins meet
PPTX
Varnish extend
PDF
PLNOG 4: Leszek Urbański - A modern HTTP accelerator for content providers
PDF
Performance
PDF
Building Internet-scale Applications
PDF
Mark Interrante OpenStack Design Summit
ODP
PHP London Dec 2013 - Varnish - The 9 circles of hell
PDF
Supercharging Content Delivery with Varnish
PDF
Netcentric: customer experience
ODP
Accelerate your web app with a layer of Varnish
PDF
OSDC 2018 | Migrating to the cloud by Devdas Bhagat
PPT
Planning for-high-performance-web-application
PDF
[Rakuten TechConf2014] [F-4] At Rakuten, The Rakuten OpenStack Platform and B...
PPTX
devops_
PDF
Securing DevOps
PDF
Modern Web development and operations practices
PPTX
Rock Solid WordPress
PPTX
Design Reviews for Operations - Velocity Europe 2014
ODP
MNPHP Scalable Architecture 101 - Feb 3 2011
Thijs Feryn: Varnish - where devops & sysadmins meet
Varnish extend
PLNOG 4: Leszek Urbański - A modern HTTP accelerator for content providers
Performance
Building Internet-scale Applications
Mark Interrante OpenStack Design Summit
PHP London Dec 2013 - Varnish - The 9 circles of hell
Supercharging Content Delivery with Varnish
Netcentric: customer experience
Accelerate your web app with a layer of Varnish
OSDC 2018 | Migrating to the cloud by Devdas Bhagat
Planning for-high-performance-web-application
[Rakuten TechConf2014] [F-4] At Rakuten, The Rakuten OpenStack Platform and B...
devops_
Securing DevOps
Modern Web development and operations practices
Rock Solid WordPress
Design Reviews for Operations - Velocity Europe 2014
MNPHP Scalable Architecture 101 - Feb 3 2011

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
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
Lightning fast with Varnish
PDF
E-commerce use case
PDF
Access control
PPTX
Varnish TLS
PPTX
Debugging varnish
PDF
De idea a implementación con Varnish Plus
PDF
Varnish cache en ocho pasos
PDF
Varnish plus con paywall avanzado en la voz de galicia
Ask Me Anything on authentication & authorisation in Varnish
Boozt.com Use Case
Akamai connector for varnish
Varnish High Availability
PostNord: Copy On Write
Streaming with Varnish
Edgestash
What is new in varnish plus
Varnish Extend demo
Varnish extend introduction
Cedexis introduction
Lightning fast with Varnish
E-commerce use case
Access control
Varnish TLS
Debugging varnish
De idea a implementación con Varnish Plus
Varnish cache en ocho pasos
Varnish plus con paywall avanzado en la voz de galicia

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
PPTX
A Presentation on Artificial Intelligence
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation theory and applications.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
KodekX | Application Modernization Development
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Mobile App Security Testing_ A Comprehensive Guide.pdf
Modernizing your data center with Dell and AMD
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
A Presentation on Artificial Intelligence
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Unlocking AI with Model Context Protocol (MCP)
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
cuic standard and advanced reporting.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Approach and Philosophy of On baking technology
Encapsulation theory and applications.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
KodekX | Application Modernization Development
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

Varnishtest

  • 1. LEVERAGING THE POWER OF VCL AND VARNISHTEST David Porter Tech Lead / Software Developer – Global eCommerce Varnish Summit Boston – March 2017
  • 2. PURPOSE OF THIS TALK To inspire VCL users to embrace software development practices for all to benefit.
  • 3. THE PLAN• Where we were • Where we are
  • 4. WHERE WE WERE F5s, NetSec, Tickets, Trouble
  • 5. And it was not good. 5 • F5 Local Traffic Manager (LTM) • Used as a load balancer, ACL, and a bit more… • It's software (TCL) but no development practices. ‣ All handled by NetSec, tickets only, super slow ‣ Prone to typos, no linting ‣ No version control, full copy/paste, rapidly growing files ‣ No testing or measure to prevent regression ‣ Not much of a review process (code pasted in ticket) ‣ Too much duplication between environments, nothing shared In the beginning was the F5…
  • 6. A lot more. 6 • Broaden the team and contributor base ‣ Insight into logic ‣ Insight into configuration ‣ Not just netsec/sysops/devops • More sophistication ‣ LTM… Varnish is an LTM/LB too, but cooler ‣ Caching… Can’t live without it ‣ HTTPhandling...Tune your requests/responses We needed more.
  • 7. WHERE WE ARE Traffic Routing, HTTP handling, Caching
  • 8. 8 • Routing by hostname ‣ e.g. status.rackspace.com • Routing by path ‣ e.g. rackspace.com/knowledge_center • Environment / ACL handling ‣ Internal URLs ‣ Admin Panels • Long-term redirection ‣ Old hostnames ‣ Old resources Local Traffic Management (LTM)
  • 9. 9 • CORS (Cross-Origin Resource Sharing) ‣ Global policy with overrides from backends • HTTP methods ‣ e.g. preventTRACE method • Normalization ‣ Fix wacky requests ‣ e.g. rackspace.com///////////cloud • Framebusting ‣ Global policy ‣ Hostname-specific exceptions (e.g. VWO heatmap tool) • ESI ‣ When and where appropriate HTTP Handling
  • 10. 10 • 90%+ hit rate ‣ e.g rackspace.com/cloud?foo=bar -> rackspace.com/cloud ‣ Path-specific overrides ‣ Disregard query params by default ‣ Internal overrides only • Grace ‣ Invaluable during downtime ‣ Great during maintenance periods / updates Caching
  • 11. ALL TESTED Very satisfying, gains confidence.
  • 12. HOW WE GOT HERE Automation, Continuous Integration, SDLC
  • 13. 13 • Puppet ‣ Configuration automation / simplification ‣ ERB templates • Jenkins CI ‣ Puppet + Docker = great for idempotent behavior ‣ Run/lint Puppet-generated VCL ‣ Run Varnish tests against latest VCLin Docker container • Ant ‣ TaskAutomation ‣ Defined set of tasks, no checklists for humans Automation, automation, automation
  • 14. 14 • Local ‣ Vagrant VMs use same Puppet configs as staging/production • Docker ‣ Temporary environments for CI ‣ Simplified CI architecture for all applications • Full Staging Environment ‣ Comprehensive replica of production, top to bottom ‣ Smaller than production, still uses HAtechniques (multiple machines) • Active/Passive Production ‣ Call it pre-prod ‣ Multiple production envs = better disaster recovery (DR) Environments
  • 15. 15 • One repository to rule them all • Better than just documentation • Developers can contribute ‣ Path for learning VCL ‣ Foundation in varnistest • DevOps engineers can contribute ‣ Path for learning VCL ‣ Foundation in varnistest • Peer Review ‣ At least two peers required to sign-off ‣ Preferrably 1 DevOps, 1 Developer SDLC (Software Development Life Cycle)
  • 16. EVERYBODY WINS No one is alone, nothing is lost.
  • 17. CLOSING REMARKS To inspire VCL users to embrace software development practices for all to benefit.
  • 18. THANK YOUContact me – david.porter@rackspace.com See me afterward for show and tell