atomictag.com
Easy reloading of Varnish VCLVarnish in a box! | Varnish in a box!
http://www.atomictag.com/2015/04/05/easy-reloading-of-varnish-vcl
Varnish in a box! All my thoughts about using Varnish Cache technology. Easy reloading of Varnish VCL. Bin/bash # Reload a varnish config FILE="/opt/varnish/etc/config/default.vcl" # Hostname and management port # (defined in /etc/default/varnish or on startup) HOSTPORT="localhost:2000" NOW=`date '%d/%m/%Y %H:%M:%S:%N'` error() { echo 1 &2 "Failed to reload $FILE." exit 1 } varnishadm -T $HOSTPORT -S /opt/varnish/etc/secret vcl.load reload $NOW $FILE error varnishadm -T $HOSTPORT -S /opt/varn...Ingvar Ha...
atomictag.com
Varnishadm: how to load a new VCL without restartingVarnish in a box! | Varnish in a box!
http://www.atomictag.com/2015/04/05/varnishadm-how-to-load-a-new-vcl-without-restarting
Varnish in a box! All my thoughts about using Varnish Cache technology. Varnishadm: how to load a new VCL without restarting. Connect via Varnishadm to Varnish instance:. Display currently load VCL by using. Varnish vcl.list 200 active 0 boot varnish. Load & compile new VCL by using. Varnish vcl.load new vcl "/opt/varnish/etc/config/new vcl.vcl" 200 VCL compiled. varnish. Use the new VCL by using. Varnish vcl.use new vcl 200 VCL 'new vcl' now active varnish. Check loaded & active VCL by using. Tuning Var...
atomictag.com
VarnishadmVarnish In A Box! | Varnish in a box!
http://www.atomictag.com/tag/varnishadm
Varnish in a box! All my thoughts about using Varnish Cache technology. Monitoring heart beat in Varnish Cache. In order to know Varnish Cache if is running and able to handle HTTP requests properly, without having the backends as part the equation please add the following VCL snippet makes sure that the URL /heart-beat always returns 200:. Sub vcl recv { if (req.method = "GET" & req.url = /heart-beat") { return(synth(200, "OK") ; } }. Posted in Varnish 3. Connect via Varnishadm to Varnish instance:.
atomictag.com
Force cache and leverage browser caching for non cachable contentsVarnish in a box! | Varnish in a box!
http://www.atomictag.com/2015/04/05/force-cache-and-leverage-browser-caching-for-non-cachable-contents
Varnish in a box! All my thoughts about using Varnish Cache technology. Force cache and leverage browser caching for non cachable contents. Add this code in the VCL BACKEND RESPONSE. Also add this in the VCL DELIVER. Posted in Varnish 4. Retrieve WordPress logged in username, store it in a custom http x-header and clean cookie. Configure PURGE in VCL 4.0 →. Leave a Reply Cancel reply. Your email address will not be published. Required fields are marked *. Are you a human? Tuning Varnish startup parameters.
atomictag.com
kfraVarnish in a box! | Varnish in a box!
http://www.atomictag.com/author/kfra
Varnish in a box! All my thoughts about using Varnish Cache technology. Tuning Varnish startup parameters. Thread pool add delay=2 thread pools = (Number of CPU cores) thread pool min = (800 / Number of CPU cores) thread pool max = 4000 timeout linger = 50 workspace session=262144 malloc,(yourmemory - 20%)G. Posted in Varnish 4. Varnish offers great capabilities to manipulate requests coming from the backend servers. Posted in Varnish 4. Varnish Administration Certification Class – Milan, Italy. If you u...
atomictag.com
VclVarnish In A Box! | Varnish in a box!
http://www.atomictag.com/tag/vcl
Varnish in a box! All my thoughts about using Varnish Cache technology. Varnish offers great capabilities to manipulate requests coming from the backend servers. The following example let you cache all request despite from what is coming from the backend servers. Posted in Varnish 4. Force redirect in Varnish. Sometimes in certain occasion you need to manage a complete redirection to an external site directly from Varnish. Posted in Varnish 4. Enable VCL variables logging. The key function is. Stdsyslog(...
atomictag.com
Varnish 4 | Varnish in a box!
http://www.atomictag.com/category/varnish-4
Varnish in a box! All my thoughts about using Varnish Cache technology. Tuning Varnish startup parameters. Thread pool add delay=2 thread pools = (Number of CPU cores) thread pool min = (800 / Number of CPU cores) thread pool max = 4000 timeout linger = 50 workspace session=262144 malloc,(yourmemory - 20%)G. Posted in Varnish 4. Varnish offers great capabilities to manipulate requests coming from the backend servers. Posted in Varnish 4. Varnish Administration Certification Class – Milan, Italy. Varnish ...
atomictag.com
Monitoring heart beat in Varnish CacheVarnish in a box! | Varnish in a box!
http://www.atomictag.com/2015/04/30/monitoring-heart-beat-in-varnish-cache
Varnish in a box! All my thoughts about using Varnish Cache technology. Monitoring heart beat in Varnish Cache. In order to know Varnish Cache if is running and able to handle HTTP requests properly, without having the backends as part the equation please add the following VCL snippet makes sure that the URL /heart-beat always returns 200:. Sub vcl recv { if (req.method = "GET" & req.url = /heart-beat") { return(synth(200, "OK") ; } }. Posted in Varnish 3. VclFiddle for Varnish Cache. Are you a human?
atomictag.com
Varnish 4: a simple start.sh scriptVarnish in a box! | Varnish in a box!
http://www.atomictag.com/2015/04/05/varnish-4-a-simple-start-sh-script
Varnish in a box! All my thoughts about using Varnish Cache technology. Varnish 4: a simple start.sh script. I have created a very simple start.sh script that helps to run Varnish 4.0 on our servers. Please note that we also created a very simple logfile to check HIT/MISS requests. Bin/sh pkill varnishd echo 'Killed Varnishd daemon' pkill varnishncsa echo 'Killed Varnishcsa log daemon' ulimit -n 10240 ulimit -l 16384 /usr/local/sbin/varnishd -a. Posted in Varnish 4. Configure PURGE in VCL 4.0. Varnish Hi...
atomictag.com
WordpressVarnish In A Box! | Varnish in a box!
http://www.atomictag.com/tag/wordpress
Varnish in a box! All my thoughts about using Varnish Cache technology. Retrieve WordPress logged in username, store it in a custom http x-header and clean cookie. Posted in Varnish 4. Tuning Varnish startup parameters. Varnish Administration Certification Class – Milan, Italy. Varnish High Availability (VHA) 1.2 released. HTTPie: a CLI, cURL-like tool for humans. On Configure PURGE in VCL 4.0. On Configure PURGE in VCL 4.0. Varnish on Stack Overflow. Varnish in a box! Tuning Varnish startup parameters.
SOCIAL ENGAGEMENT