1

I installed varnish cache and verified using official guide.

In official guide mention 5ms to load the url with varnish but mine it is 12s.

Info:

OS : ubuntu 14.0.4, webserver : apache2, php : 7, php memory_limit : 2G, Varnish : varnish-4.0.5

Below attached my store front(http://host/codebase/production) chrome console output

Easy for your reference

what I need to tune? please feel free to post answer/comment, any help would be much appreciated, we can keep consolidating answer of tuning page load speed.

4
  • 1
    Depending on VCL you have in use, Varnish may not cache the page with subdirectory-like installation. Most likely you get Age: 0 when verifying configuration - this means the page was not cached. Commented Aug 8, 2017 at 21:19
  • thanks! you right it is not cache the page, one of my extension use cacheable="false", I removed it, now ttfb reduced to 1s. I think 1s also huge load time as per the official guide. any thoughts? Commented Aug 8, 2017 at 21:25
  • Do you have positive value in Age: now? Commented Aug 9, 2017 at 4:58
  • yes, +ve value... Commented Aug 9, 2017 at 7:24

1 Answer 1

0

i have export varnish vcl config in backend and move it to varnish config folder

configuration in my dev enviroment
Enable all cache types
No js or css minify or bundle. Dev site no need this feature
Backend port 8080 i'm using nginx server listening 8080 port


Move magento exported file varnish.vcl (located in magentoroot/var) to /etc/varnish/ change name to default.vcl I use ubuntu os and change default varnish port 6081 to 80 for listen all traffic user

daemon varnish config service located in /etc/varnish/default

DAEMON_OPTS="-a :80 -T localhost:6082 -f /etc/varnish/default.vcl"

Change port nignx to 8080

After that restart all service such as nginx, varnish, php

Above is all my experiences in my dev machine

2
  • thanks! I completed the configuration, varnish works but somehow ttfb 1s, but official verification mention 5ms, how to tune to achieve 5ms? that is my question Commented Aug 10, 2017 at 14:48
  • I'm not sure 5ms is theory. For clean install magento. Check system.log or exception log for more information. My local usually load around 1-2 sec
    – mrtuvn
    Commented Aug 10, 2017 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.