Want to subscribe to topics you're interested in?
Become a Member

Installing Varnish Cache ?

Discussion in 'Other Centmin Mod Installed software' started by Talia Olga, Sep 29, 2014.

  1. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    oh ! thanks
    now am mad for varnish
    pls help me , how i can install varnish on centos 6.5 x64 box with centminmod

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @Talia Olga already answered at Help me for my.cnf config for Dedicated Server | Centmin Mod Community but moved off topic post to new thread here.

    Varnish official 3.x YUM repo is available since 1.2.3-eva2000.04 Change Log Centmin Mod - Menu based Nginx installer for CentOS servers

    There's no support for configuring Varnish, Centmin Mod only provides the base Varnish YUM repo for ease of installation for folks who know what they are doing for Varnish vcl configuration for their specific web apps..
     
  3. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    oh, am sorry
    can you please clearly tell me to enable varnish
    what i need to do??
    right now i have your latest centmin mod
    and am using wordpress

    yum install varnish-3.0
    -----------------------------
    1580 packages excluded due to repository priority protections
    Setting up Install Process
    No package varnish-3.0 available.
    Error: Nothing to do

    yum list installed | grep varnish
    varnish-release.noarch 3.0-1.el6 installed
     
    Last edited: Sep 29, 2014
  4. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    as above quoted example

    Code:
    yum -q list varnish --enablerepo=varnish-3.0
    Code:
    yum -q list varnish --enablerepo=varnish-3.0
    Available Packages
    varnish.x86_64  3.0.5-1.el6           varnish-3.
     
  5. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    so where is varnish config file
    and how i will restart and stop varnish??
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    The Varnish Cache is installed via official Varnish YUM repository, so everything config file (vcl etc) and init.d startup script wise are located at their documented default locations as per official documentation Documentation | Varnish Community

    You can also query the installed Varnish package via rpm -ql command to find out what the package installed.

    Code:
    rpm -ql varnish
    /etc/logrotate.d/varnish
    /etc/rc.d/init.d/varnish
    /etc/rc.d/init.d/varnishlog
    /etc/rc.d/init.d/varnishncsa
    /etc/sysconfig/varnish
    /etc/varnish
    /etc/varnish/default.vcl
    /usr/bin/varnish_reload_vcl
    /usr/bin/varnishadm
    /usr/bin/varnishhist
    /usr/bin/varnishlog
    /usr/bin/varnishncsa
    /usr/bin/varnishreplay
    /usr/bin/varnishsizes
    /usr/bin/varnishstat
    /usr/bin/varnishtest
    /usr/bin/varnishtop
    /usr/lib64/varnish
    /usr/lib64/varnish/libvarnish.so
    /usr/lib64/varnish/libvarnishcompat.so
    /usr/lib64/varnish/libvcl.so
    /usr/lib64/varnish/libvgz.so
    /usr/lib64/varnish/vmods
    /usr/lib64/varnish/vmods/libvmod_std.so
    /usr/sbin/varnishd
    /usr/share/doc/varnish-3.0.5
    /usr/share/doc/varnish-3.0.5/ChangeLog
    /usr/share/doc/varnish-3.0.5/LICENSE
    /usr/share/doc/varnish-3.0.5/README
    /usr/share/doc/varnish-3.0.5/README.redhat
    /usr/share/doc/varnish-3.0.5/examples
    /usr/share/doc/varnish-3.0.5/examples/default.vcl
    /usr/share/doc/varnish-3.0.5/examples/zope-plone.vcl
    /usr/share/man/man1/varnishadm.1.gz
    /usr/share/man/man1/varnishd.1.gz
    /usr/share/man/man1/varnishhist.1.gz
    /usr/share/man/man1/varnishlog.1.gz
    /usr/share/man/man1/varnishncsa.1.gz
    /usr/share/man/man1/varnishreplay.1.gz
    /usr/share/man/man1/varnishsizes.1.gz
    /usr/share/man/man1/varnishstat.1.gz
    /usr/share/man/man1/varnishtest.1.gz
    /usr/share/man/man1/varnishtop.1.gz
    /usr/share/man/man3/vmod_std.3.gz
    /usr/share/man/man7/varnish-cli.7.gz
    /usr/share/man/man7/varnish-counters.7.gz
    /usr/share/man/man7/vcl.7.gz
    /var/lib/varnish
    /var/log/varnish
     
    Last edited: Sep 29, 2014
  7. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    so, what's the command for varnish start and stop??
    service varnish restart ??
    alright after i install centmin mod
    i uninstall csf and from centmin.sh i disable pagespeed and recompile nginx.
    and then for varnish what i have to do ??
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    normal Varnish start and stop commands for CentOS/Redhat builds as per documentation Documentation | Varnish Community

    Code:
    chkconfig varnish on
    service varnish stop/start/reload/start 
    Code:
    service varnish
    Usage: /etc/init.d/varnish {start|stop|status|restart|condrestart|try-restart|reload|force-reload}
    As to configuration of Varnish Cache that is up to you as Centmin Mod only provides the official Varnish Cache YUM repo itself so that folks who know how to configuration and setup Varnish Cache can do it themselves. Which basically involves
    1. Setting up and configuring Varnish Cache default.vcl settings for your specific apps
    2. Then switching the default Varnish Cache listening port to 80
    3. Then switching each and all Nginx vhost .conf files including virtual.conf located in /usr/local/nginx/conf/conf.d/ from listen 80 to listen XX where XX is your defined Varnish backend port.
    4. Setting up Nginx for reverse proxy IP forwarding via HttpRealIpModule as per step 5 of Getting Started guide.
    All these 4 steps are left to end user to do as Centmin Mod is provided as is, without any specific support for Varnish Cache.
     
  9. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    thanks
    but how much allocate memory is best for memcache??
    i have 16 gb ram
     
  10. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  11. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    when i run this command:
    chkconfig varnish on
    >>error reading information on service varnish: No such file or directory
    why??
     
  12. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    rpm -ql varnish
    package varnish is not installed
    You have mail in /var/spool/mail/root
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you haven't installed Varnish Cache, above command only lists Varnish Cache you need to use yum install command to install it as per documentation.

    list Varnish Cache
    Code:
    yum -q list varnish --enablerepo=varnish-3.0
    install Varnish Cache
    Code:
    yum install varnish --enablerepo=varnish-3.0
    If you haven't used Varnish Cache before, I'd advise against using it for production live site until you do testing first and have read the official documentation
     
  14. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    i used varnish 3 years in ubuntu!!
    i am completely noob in centos
    one of my dedi is from an host they don't have any dns that's why bind config is little tricky but it will slow down my site performence
    that's why i choose your centminmod and centos
     
  15. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah in that case you have alot of reading to do for CentOS :D And I'd stick with CentOS 6.x as CentOS 7.x has even more changes like changing from init.d to systemd see CentOS 7.x - CentOS 7.0 Install on VirtualBOX Guest Server

    i.e. all startup init.d scripts
    Code:
    ls -lah /etc/init.d/
    total 296K
    drwxr-xr-x.  2 root root 4.0K Sep 28 10:09 .
    drwxr-xr-x. 10 root root 4.0K Sep  3 20:24 ..
    -rwxr-xr-x   1 root root 3.3K May 28 14:37 auditd
    -r-xr-xr-x.  1 root root 1.4K Nov 23  2013 blk-availability
    -rwxr-xr-x.  1 root root 2.8K Nov 23  2013 crond
    -rwxr-xr-x   1 root root 1.9K Dec 22  2013 csf
    -rw-r--r--   1 root root  19K Sep  3 13:02 functions
    -rwxr-xr-x   1 root root 5.8K Oct 10  2013 halt
    -rwxr-xr-x   1 root root 1.8K Sep 26 03:55 haveged
    -rwxr-xr-x.  1 root root  11K Nov 23  2013 ip6tables
    -rwxr-xr-x.  1 root root  11K Nov 23  2013 iptables
    -rwxr-xr-x.  1 root root 4.5K Oct  8  2013 iscsi
    -rwxr-xr-x.  1 root root 3.9K Oct  8  2013 iscsid
    -rwxr-xr-x   1 root root  652 Oct 10  2013 killall
    -rwxr-xr-x   1 root root 2.2K Dec 22  2013 lfd
    -r-xr-xr-x.  1 root root 2.1K Nov 23  2013 lvm2-lvmetad
    -r-xr-xr-x.  1 root root 2.7K Nov 23  2013 lvm2-monitor
    -rwxr-xr-x   1 root root 2.6K Apr  7 11:49 mdmonitor
    -rwxr-xr-x   1 root root 3.5K Sep 26 03:54 memcached
    -rwxr-xr-x.  1 root root 2.2K Sep 13  2012 messagebus
    -rwxr-xr-x   1 root root 2.5K Sep 22 09:06 multipathd
    -rwxr-xr-x   1 root root  12K Sep 26 03:46 mysql
    -rwxr-xr-x   1 root root 3.0K Oct 10  2013 netconsole
    -rwxr-xr-x   1 root root 5.4K Oct 10  2013 netfs
    -rwxr-xr-x   1 root root 6.2K Oct 10  2013 network
    -rwxr-xr-x   1 root root 2.0K Sep 26 03:45 nginx
    -rwxr-xr-x   1 root root 2.4K Sep 26 03:55 nsd
    -rwxr-xr-x   1 root root 1.9K Jul 15  2013 ntpd
    -rwxr-xr-x   1 root root 2.0K Jul 15  2013 ntpdate
    -rwxr-xr-x   1 root root 3.5K Sep 26 03:50 php-fpm
    -rwxr-xr-x   1 root root 3.9K Feb 20  2014 postfix
    -rwxr-xr-x.  1 root root 1.5K Sep 17  2013 rdisc
    -rwxr-xr-x.  1 root root 1.8K Nov 22  2013 restorecond
    -rwxr-xr-x   1 root root 1.8K Dec 17  2011 rngd
    -rwxr-xr-x.  1 root root 2.0K Aug 15  2013 rsyslog
    -rwxr-xr-x.  1 root root 1.7K Nov 22  2013 sandbox
    -rwxr-xr-x.  1 root root 2.1K Nov 20  2012 saslauthd
    -rwxr-xr-x   1 root root  647 Oct 10  2013 single
    -rwxr-xr-x.  1 root root 3.0K Feb 21  2013 smartd
    -rwxr-xr-x   1 root root 2.2K Sep 15 06:42 snmpd
    -rwxr-xr-x   1 root root 1.7K Sep 15 06:42 snmptrapd
    -rwxr-xr-x.  1 root root 4.5K Nov 22  2013 sshd
    -rwxr-xr-x   1 root root 1.2K Aug 29 07:13 sysstat
    -rwxr-xr-x.  1 root root 2.3K Nov 22  2013 udev-post
    -rwxr-xr-x   1 root root 2.9K Dec  2  2013 varnish
    -rwxr-xr-x   1 root root 1.8K Dec  2  2013 varnishlog
    -rwxr-xr-x   1 root root 1.8K Dec  2  2013 varnishncsa
     
  16. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    in
    vi /etc/sysconfig/varnish
    here is:
    -s file,/var/lib/varnish/varnish_storage.bin,4G"
    if i change it to
    -s malloc,<given amount>G
    then, i am facing this error:
    Stopping Varnish Cache: [OK]
    Starting Varnish Cache: $DAEMON_OPTS empty.
    Please put configuration options in /etc/sysconfig/varnish
    and again when i fix that line in /etc/sysconfig/varnish
    then every thing is ok
    i wanna store cache in RAM instead of harddisk
    so what i gonna do??
     
  17. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    and
    which ALTERNATIVE SECTION i will EDIT??
    1,2,3
     
  18. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I usually have my own custom sysconfig/varnish setup that is based on alternative 3 configuration defined in /etc/sysconfig/varnish so use that to edit and set Varnish to either be backed by file or memory caching varnish.sysconfig in redhat – Varnish

    Again best to read the Redhat/CentOS official documentation for Varnish Cache at Documentation | Varnish Community

    Code:
    ## Alternative 3, Advanced configuration
    #
    # See varnishd(1) for more information.
    #
    # # Main configuration file. You probably want to change it :)
    VARNISH_VCL_CONF=/etc/varnish/default.vcl
    #
    # # Default address and port to bind to
    # # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
    # # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
    # VARNISH_LISTEN_ADDRESS=
    VARNISH_LISTEN_PORT=6081
    #
    # # Telnet admin interface listen address and port
    VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
    VARNISH_ADMIN_LISTEN_PORT=6082
    #
    # # Shared secret file for admin interface
    VARNISH_SECRET_FILE=/etc/varnish/secret
    #
    # # The minimum number of worker threads to start
    VARNISH_MIN_THREADS=50
    #
    # # The Maximum number of worker threads to start
    VARNISH_MAX_THREADS=1000
    #
    # # Idle timeout for worker threads
    VARNISH_THREAD_TIMEOUT=120
    #
    # # Cache file location
    VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin
    #
    # # Cache file size: in bytes, optionally using k / M / G / T suffix,
    # # or in percentage of available disk space using the % suffix.
    VARNISH_STORAGE_SIZE=1G
    #
    # # Backend storage specification
    VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
    #
    # # Default TTL used when the backend does not specify one
    VARNISH_TTL=120
    #
    # # DAEMON_OPTS is used by the init script.  If you add or remove options, make
    # # sure you update this section, too.
    DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
                 -f ${VARNISH_VCL_CONF} \
                 -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
                 -t ${VARNISH_TTL} \
                 -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
                 -u varnish -g varnish \
                 -S ${VARNISH_SECRET_FILE} \
                 -s ${VARNISH_STORAGE}"
    #
    
     
  19. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    7:51 PM
    1.7.5
    5.x.x
    Code:
    # Configuration file for varnish
    #
    # /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this
    # shell script fragment.
    #
    
    # Maximum number of open files (for ulimit -n)
    NFILES=131072
    
    # Locked shared memory (for ulimit -l)
    # Default log size is 82MB + header
    MEMLOCK=82000
    
    # Maximum number of threads (for ulimit -u)
    NPROCS="unlimited"
    
    # Maximum size of corefile (for ulimit -c). Default in Fedora is 0
    # DAEMON_COREFILE_LIMIT="unlimited"
    
    # Set this to 1 to make init script reload try to switch vcl without restart.
    # To make this work, you need to set the following variables
    # explicit: VARNISH_VCL_CONF, VARNISH_ADMIN_LISTEN_ADDRESS,
    # VARNISH_ADMIN_LISTEN_PORT, VARNISH_SECRET_FILE, or in short,
    # use Alternative 3, Advanced configuration, below
    RELOAD_VCL=1
    
    # This file contains 4 alternatives, please use only one.
    
    ## Alternative 1, Minimal configuration, no VCL
    #
    # Listen on port 6081, administration on localhost:6082, and forward to
    # content server on localhost:8080.  Use a fixed-size cache file.
    #
    #DAEMON_OPTS="-a :6081 \
    #             -T localhost:6082 \
    #             -b localhost:8080 \
    #             -u varnish -g varnish \
    #             -s file,/var/lib/varnish/varnish_storage.bin,1G"
    
    
    ## Alternative 2, Configuration with VCL
    #
    # Listen on port 6081, administration on localhost:6082, and forward to
    # one content server selected by the vcl file, based on the request.  Use a
    # fixed-size cache file.
    #
    DAEMON_OPTS="-a :80 \
                 -T localhost:6082 \
                 -f /etc/varnish/default.vcl \
                 -u varnish -g varnish \
                 -S /etc/varnish/secret \
                 -s file,/var/lib/varnish/varnish_storage.bin,4G"
    
    
    ## Alternative 3, Advanced configuration
    #
    # See varnishd(1) for more information.
    #
    # # Main configuration file. You probably want to change it :)
    VARNISH_VCL_CONF=/etc/varnish/default.vcl
    #
    # # Default address and port to bind to
    # # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
    # # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.
    # VARNISH_LISTEN_ADDRESS=
    VARNISH_LISTEN_PORT=6081
    #
    # # Telnet admin interface listen address and port
    VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
    VARNISH_ADMIN_LISTEN_PORT=6082
    #
    # # Shared secret file for admin interface
    VARNISH_SECRET_FILE=/etc/varnish/secret
    #
    # # The minimum number of worker threads to start
    VARNISH_MIN_THREADS=50
    #
    # # The Maximum number of worker threads to start
    VARNISH_MAX_THREADS=1000
    #
    # # Idle timeout for worker threads
    VARNISH_THREAD_TIMEOUT=120
    #
    # # Cache file location
    VARNISH_STORAGE_FILE=/var/lib/varnish/varnish_storage.bin
    #
    # # Cache file size: in bytes, optionally using k / M / G / T suffix,
    # # or in percentage of available disk space using the % suffix.
    VARNISH_STORAGE_SIZE=1G
    #
    # # Backend storage specification
    VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
    #
    # # Default TTL used when the backend does not specify one
    VARNISH_TTL=120
    #
    # # DAEMON_OPTS is used by the init script.  If you add or remove options, make
    # # sure you update this section, too.
    DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
                 -f ${VARNISH_VCL_CONF} \
                 -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \
                 -t ${VARNISH_TTL} \
                 -w ${VARNISH_MIN_THREADS},${VARNISH_MAX_THREADS},${VARNISH_THREAD_TIMEOUT} \
                 -u varnish -g varnish \
                 -S ${VARNISH_SECRET_FILE} \
                 -s ${VARNISH_STORAGE}"
    #
    
    
    ## Alternative 4, Do It Yourself. See varnishd(1) for more information.
    #
    # DAEMON_OPTS=""
    
    i edit this like that
    now where i will specify that varnish will use ram memory instead of harddisk and where i will specify the port??
     
  20. eva2000

    eva2000 Administrator Staff Member

    53,488
    12,130
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,672
    Local Time:
    12:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    by default /etc/sysconfig/varnish uses alternative 3 config anyway, so just need to edit the VARNISH_LISTEN_PORT and VARNISH_STORAGE_FILE and edit VARNISH_STORAGE_SIZE

    i.e.

    Code:
    # # Cache file size: in bytes, optionally using k / M / G / T suffix,
    # # or in percentage of available disk space using the % suffix.
    VARNISH_STORAGE_SIZE=1G
    #
    # # Backend storage specification
    #VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
    VARNISH_STORAGE="malloc,${VARNISH_STORAGE_SIZE}"
    
    rest is up to you as it's all in official docs at Using Varnish — Varnish version 3.0.6rc1 documentation :)

    Code:
    varnishadm -T 127.0.0.1:6082 -S /etc/varnish/secret param.show
    acceptor_sleep_decay        0.900000 []
    acceptor_sleep_incr         0.001000 [s]
    acceptor_sleep_max          0.050000 [s]
    auto_restart                on [bool]
    ban_dups                    on [bool]
    ban_lurker_sleep            0.010000 [s]
    between_bytes_timeout       60.000000 [s]
    cc_command                  "exec gcc -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -fpic -shared -Wl,-x -o %o %s"
    cli_buffer                  8192 [bytes]
    cli_timeout                 10 [seconds]
    clock_skew                  10 [s]
    connect_timeout             0.700000 [s]
    critbit_cooloff             180.000000 [s]
    default_grace               10.000000 [seconds]
    default_keep                0.000000 [seconds]
    default_ttl                 120.000000 [seconds]
    diag_bitmap                 0x0 [bitmap]
    esi_syntax                  0 [bitmap]
    expiry_sleep                1.000000 [seconds]
    fetch_chunksize             128 [kilobytes]
    fetch_maxchunksize          262144 [kilobytes]
    first_byte_timeout          60.000000 [s]
    group                       varnish (495)
    gzip_level                  6 []
    gzip_memlevel               8 []
    gzip_stack_buffer           32768 [Bytes]
    gzip_tmp_space              0 []
    gzip_window                 15 []
    http_gzip_support           on [bool]
    http_max_hdr                64 [header lines]
    http_range_support          on [bool]
    http_req_hdr_len            8192 [bytes]
    http_req_size               32768 [bytes]
    http_resp_hdr_len           8192 [bytes]
    http_resp_size              32768 [bytes]
    idle_send_timeout           60 [seconds]
    listen_address              :6081
    listen_depth                1024 [connections]
    log_hashstring              on [bool]
    log_local_address           off [bool]
    lru_interval                2 [seconds]
    max_esi_depth               5 [levels]
    max_restarts                4 [restarts]
    nuke_limit                  50 [allocations]
    pcre_match_limit            10000 []
    pcre_match_limit_recursion  10000 []
    ping_interval               3 [seconds]
    pipe_timeout                60 [seconds]
    prefer_ipv6                 off [bool]
    queue_max                   100 [%]
    rush_exponent               3 [requests per request]
    saintmode_threshold         10 [objects]
    send_timeout                600 [seconds]
    sess_timeout                5 [seconds]
    sess_workspace              65536 [bytes]
    session_linger              50 [ms]
    session_max                 100000 [sessions]
    shm_reclen                  255 [bytes]
    shm_workspace               8192 [bytes]
    shortlived                  10.000000 [s]
    syslog_cli_traffic          on [bool]
    thread_pool_add_delay       2 [milliseconds]
    thread_pool_add_threshold   2 [requests]
    thread_pool_fail_delay      200 [milliseconds]
    thread_pool_max             1000 [threads]
    thread_pool_min             50 [threads]
    thread_pool_purge_delay     1000 [milliseconds]
    thread_pool_stack           unlimited [bytes]
    thread_pool_timeout         120 [seconds]
    thread_pool_workspace       65536 [bytes]
    thread_pools                2 [pools]
    thread_stats_rate           10 [requests]
    user                        varnish (496)
    vcc_err_unref               on [bool]
    vcl_dir                     /etc/varnish
    vcl_trace                   off [bool]
    vmod_dir                    /usr/lib64/varnish/vmods
    waiter                      default (epoll, poll)
     
    Last edited: Sep 29, 2014