DEV Community

Nuster Cache Server
Nuster Cache Server

Posted on

nuster - A web caching proxy server based on HAProxy

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.

See detailed benchmark

Installation

Download

Download stable version from releases page
for production use, otherwise git clone the source code.

Build

make TARGET=linux2628
make install
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

See usages, FAQ, examples on Github

Top comments (0)