Hi all, I have created a web caching proxy server nuster, please give it a try and star:)
Introduction
Nuster is a simple yet powerful web caching proxy server based on HAProxy.
It is 100% compatible with HAProxy, and takes full advantage of the ACL
functionality of HAProxy to provide fine-grained caching policy based on
the content of request, response or server status, such as,
- request url: cache only if the request url equals to X
- request query: cache only if the request query contains X and equls to Y
- cookie: cache only if cookie contains X and equls to Y
- response header: cache only if the response contains header X equals to Y
- rate: cache only if the request rate is greater than X
- etc, any combination of above
Performance
Nuster is very fast, some test shows nuster is almost three times faster than
nginx when both using single core, and nearly two times faster than nginx and
three times faster than varnish when using all cores.
Installation
Download
Download stable version from releases page
for production use, otherwise git clone the source code.
Build
make TARGET=linux2628
make install
use
make TARGET=linux2628 USE_PTHREAD_PSHARED=1
to use pthread lib
See HAProxy README for details.
Docker
docker pull nuster/nuster
docker run -d -v /path/to/nuster.cfg:/etc/nuster/nuster.cfg:ro -p 8080:8080 nuster/nuster:1.7.9.3
See usages, FAQ, examples on Github
Top comments (0)