Skip to content

Instantly share code, notes, and snippets.

@ivanproskuryakov
Last active August 29, 2015 14:01
Show Gist options
  • Save ivanproskuryakov/e6a05402138ed3d208d3 to your computer and use it in GitHub Desktop.
Save ivanproskuryakov/e6a05402138ed3d208d3 to your computer and use it in GitHub Desktop.
Varnish + Apache
1. apt-get install varnish
2. http://www.magentocommerce.com/magento-connect/turpentine-varnish-cache.html
3. insert key nano /etc/varnish/secret +"\n"
varnishlog
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}
-p cli_buffer=10000"
http://www.transmachina.com/en/knowledge-resources/varnish-caching-memory
http://serverfault.com/questions/108054/does-varnish-require-much-ram
http://www.lullabot.com/blog/article/configuring-varnish-high-availability-multiple-web-servers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment