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
Try | Time (sec) |
---|---|
1st | 21.062 |
2nd | 6.426 |
3rd | 0.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"
Try | Time (sec) |
---|---|
1st | 120.002 |
2nd | 0.039 |
3rd | 0.000 |