Code Monkey home page Code Monkey logo

Comments (10)

jiangwenyuan avatar jiangwenyuan commented on May 10, 2024 1

@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.

jiangwenyuan avatar jiangwenyuan commented on May 10, 2024

@zoltanbalog79 Thanks.

Currently, disk support in stats and purge is not yet finished. (almost finished purge, testing...)

from nuster.

jiangwenyuan avatar jiangwenyuan commented on May 10, 2024

@zoltanbalog79 fixed in master, thanks

from nuster.

netrixken avatar netrixken commented on May 10, 2024

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.

jiangwenyuan avatar jiangwenyuan commented on May 10, 2024

Confirmed break on disk only mode, but works on disk sync mode

from nuster.

jiangwenyuan avatar jiangwenyuan commented on May 10, 2024

@netrixken fixed in v3.2.1.19

from nuster.

netrixken avatar netrixken commented on May 10, 2024

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.

jiangwenyuan avatar jiangwenyuan commented on May 10, 2024

@netrixken

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.

netrixken avatar netrixken commented on May 10, 2024

If for example i have 100 MB RAM, how much the biggest data-size I can set? Thanks @jiangwenyuan

from nuster.

jiangwenyuan avatar jiangwenyuan commented on May 10, 2024

@netrixken I'm closing it now, feel free to reopen the issue if anything wrong

from nuster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.