mirror of
https://github.com/jiangwenyuan/nuster.git
synced 2025-10-09 15:23:55 +02:00
Page:
Basic Config
Pages
Basic Config
Getting Started
Home
Performance
Use nuster As HTTP Cache Server
Use nuster As HTTP.HTTPS Loader Balancer
Use nuster As RESTful NoSQL Cache Server
Use nuster As TCP Loader Balancer
Web cache server HTTP 2 performance benchmark: nuster vs nginx
Web cache server performance benchmark: nuster vs nginx vs varnish vs squid
Web cache server performance benchmark: nuster vs squid
nuster Cache
nuster NoSQL
No results
2
Basic Config
Jiang Wenyuan edited this page 2020-04-21 21:38:33 +09:00
Config file looks like
global
nuster cache on data-size 100m
nuster nosql on data-size 200m
defaults
mode http
frontend fe
bind *:8080
#bind *:4433 ssl crt example.com.pem alpn h2,http/1.1
use_backend be2 if { path_beg /_kv/ }
default_backend be1
backend be1
nuster cache on
nuster rule img ttl 1d if { path_beg /img/ }
nuster rule api ttl 30s if { path /api/some/api }
server s1 127.0.0.1:8081
server s2 127.0.0.1:8082
backend be2
nuster nosql on
nuster rule r1 ttl 3600
There are four basic section
s: global
, defaults
, frontend
and backend
.
- global
- defines process-wide and often OS-specific parameters
nuster cache on
ornuster nosql on
must be declared in this section in order to use cache or nosql functionality
- defaults
- defines default parameters for all other
frontend
,backend
sections - and can be overwritten in specific
frontend
orbackend
section
- defines default parameters for all other
- frontend
- describes a set of listening sockets accepting client connections
- bankend
- describes a set of servers to which the proxy will connect to forward incoming connections
nuster cache on
ornuster nosql on
must be declared in this sectionnuster rule
must be declared here
You can define multiple frontend
or backend
sections.
You can find HAProxy documentation in /doc
, and Online HAProxy Documentation
- nuster wiki
- Documentation
- nuster Cache
- nuster NoSQL
- Performance Benchmark
- Web cache server HTTP/2: nuster vs nginx
- Web cache server: nuster vs nginx vs varnish
- Web cache server: nuster vs squid