How to

  • Set up a varnish server on a virtual box (xubuntu 15.10)
    • with installation document
  • Added the backend server
    • gltg.ncsa.illinois.edu
  • Test with curl command

Varnish command to help

Reset (purge) the cache

Varnish command to reset (purge) the cache
varnishadm -T 127.0.0.1:6082 url.purge .

 

Test results

Getting nitrate since 2015

 

TryTime (sec)
1st21.062
2nd6.426
3rd0.299

Getting nitrate since 2014

 

curl command to test
curl -s -w "%{time_total}\n" -o /dev/null "http://127.0.0.1:6081/clowder/api/geostreams/datapoints?attributes=nitrate-as-n-mgl&since=2014"
TryTime (sec)
1st120.002
2nd0.039
3rd0.000

 

 

 

  • No labels