Last active
August 29, 2015 14:01
-
-
Save ivanproskuryakov/e6a05402138ed3d208d3 to your computer and use it in GitHub Desktop.
Varnish + Apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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