Magento CE 126.96.36.199 with Varnish 4.0.3 & Turpentine 0.6.8
When I load the page or inner pages for the first time those are slow(as First bite is always slow) and on second attempt it becomes quicker coming from Varnish, now since page has been stored in Varnish cache is should be served faster(coming from Varnish) no matter which connection or network I use, but in my case if at same time I go to another PC/network(or sometimes even different browsers on same PC) and try to load the same page it becomes slow. I am using all the default settings of Turpentine in my VCL config.
Here is my /etc/varnish/varnish.params
# Varnish environment configuration description. This was derived from # the old style sysconfig/defaults settings # Set this to 1 to make systemd reload try to switch vcl without restart. RELOAD_VCL=1 # Main configuration file. You probably want to change it. VARNISH_VCL_CONF=/home/www/vhosts/example.org/httpdocs/var/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=188.8.131.52 VARNISH_LISTEN_PORT=80 # 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 # Backend storage specification, see Storage Types in the varnishd(5) # man page for details. VARNISH_STORAGE="malloc,12G" # Default TTL used when the backend does not specify one VARNISH_TTL=120 # User and group for the varnishd worker processes VARNISH_USER=varnish VARNISH_GROUP=varnish # Other options, see the man page varnishd(1) DAEMON_OPTS="-p thread_pool_min=5 -p thread_pool_max=500 -p thread_pool_timeout=300 -p cli_buffer=16384 -p feature=+esi_ignore_other_elements -p vcc_allow_inline_c=on"
Could it be because I am storing everything in RAM as
VARNISH_STORAGE="malloc,12G"and there might be a default behavior of memory to just wipe out after every minute or second and I also need to save in SSD? or there could be another issue?
If you say "First bite is always slow" than does it mean it will be slower for each different browser, and each session/connection? this is what is actually happening with me.
Almost all the stores I have seen which are providing page in like milliseconds(having Varnish) does not encounter the same issue. When I browse those sites from various connections it all looks same with pretty much same speed. How can I achieve this?
Please also look at Admin > System > Configuration > Caching Options which may help to answer