New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data-size when memory off? #79
Comments
@igorescobar what's your dict-size and data-size value? It's unlikely to occur See https://github.com/jiangwenyuan/nuster#global-nuster-cachenosql
So when |
Oh, so even when |
Unless you know the average size of key and the length of host/path, etc, it's impossible to calculate a request at least needs: ~300: sizeof(nst_dict_entry_t) + sizeof(key)(build from You can find out how much memory is used by: https://github.com/jiangwenyuan/nuster#output
|
Is there a way to just let |
I'm asking about how to calculate because Nginx for example has this
So it kinda helps you to calculate how much memory you might need based on the number of keys you have on your hash table. |
nginx key_zones is something like dict-size
So a 1MB dict-size has a length of 1024*1024/8=131072(but you can save more than that) But for data-size, it's different. Only pointers are store in dict while real data are stored in data. But if you do want some estimation, how about |
Do you have any idea why would All of the sudden it stoped writing but everything seems to be fine on the logs:
|
This is my current config:
/nuster/cache has approx 9.1 GiB there. |
It was my mistake. I thought that if I had the Thanks for your support and your input in this @jiangwenyuan |
Ah, yeah, you need to enable nuster on each backend |
@igorescobar Turns out that |
Hi,
I'm trying to understand how this data-size + dict-size works together.
On my setup I have I have
memory off
anddisk on
. Initially, I thought that data-size was actually the max amount of data I want to store inside ofdir
but when I raised that to gigabytes in size (which is ok if we are talking about disk) is started to have errors likenuster_1 | [ALERT] 141/085908 (1) : Out of memory when initializing cache.
So why data-size is relevant when
memory off
?The text was updated successfully, but these errors were encountered: