Comments (10)
@netrixken Well, it's hard to say. Higher values allow more cache and lower values allow more sessions to coexist in the same time. I'd suggest you start with half of the RAM and test.
from nuster.
@zoltanbalog79 Thanks.
Currently, disk support in stats and purge is not yet finished. (almost finished purge, testing...)
from nuster.
@zoltanbalog79 fixed in master, thanks
from nuster.
this bug still exists in 3.2.0.19. /tmp/cache is empty so cache hits always 0.
**GLOBAL**
global.nuster.cache.data.size: 33554432
global.nuster.cache.dict.size: 1048576
global.nuster.cache.uri: /nuster/cache
global.nuster.cache.purge_method: PURGE
global.nuster.cache.stats.used_mem: 0
global.nuster.cache.stats.req_total: 3496
global.nuster.cache.stats.req_hit: 0
global.nuster.cache.stats.req_fetch: 3371
global.nuster.cache.stats.req_abort: 10
**PERSISTENCE**
global.nuster.cache.dir: /tmp/cache
global.nuster.cache.loaded: yes
GLOBAL
master-worker
nuster cache on data-size 32m dir /tmp/cache uri /nuster/cache
nuster nosql off
BACKEND
nuster cache on
nuster rule server_blog disk only ttl 2h
http-response set-header x-cache hit if { nuster.cache.hit }
from nuster.
Confirmed break on disk only
mode, but works on disk sync
mode
from nuster.
@netrixken fixed in v3.2.1.19
from nuster.
It worked now. I delete these leftover haproxy configuration from nuster config. Thank you very much!
chroot /var/lib/haproxy
user haproxy
group haproxy
Now, only used_mem
is still always 0. Or disk cache not counted as used_mem
?
from nuster.
only used_mem is still always 0. Or disk cache not counted as used_mem?
disk only
mode does not use memory, except temporary memory.
chroot /var/lib/haproxy
If you have this setting, the cache file is stored into /var/lib/haproxy/tmp/cache
(chroot-dir + cache-dir)
from nuster.
If for example i have 100 MB RAM, how much the biggest data-size I can set? Thanks @jiangwenyuan
from nuster.
@netrixken I'm closing it now, feel free to reopen the issue if anything wrong
from nuster.
Related Issues (20)
- Updates & deb packages HOT 10
- 实际测试的性能,比作者说的差距非常大。结论:没有必须使用nuster,直接使用nginx就可以。 HOT 3
- How to use Haproxy v2.4.0 HOT 4
- question: how to ignore a specific query parameter for http cache? HOT 5
- Support 304 answers? HOT 2
- Can we force the first request return stale cache when stale on? HOT 7
- Enhancement library improvements for nuster!
- Does `wait on` even work? HOT 4
- CORS HOT 10
- timeout if server directive is missing port HOT 5
- Log cache hit or miss in log file HOT 2
- incorrect date header HOT 2
- backend response headers not passed to client HOT 4
- ARM64 Docker images
- Will caching work for forward proxy? HOT 2
- Equivalent of hash_always_miss HOT 1
- stat `store.disk.cache.loaded` vary depending on running as daemon
- Nuster seems to ignore cache-control headers from BE. Like "no-cache" HOT 5
- will nuster be updated with latest features of haproxy?
- [Security] Infinite loop in src/http_ana.c
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuster.