bigcache
bigcache copied to clipboard
Error logs about bytes allocation?
What is the issue you are having?
I'm seeing this get printed out with a severity of error
. I'm wondering is this something I need to worry about? If not, is there a reason why it reports as an error
vs. a info
or warn
?
2022/11/11 18:52:43 bytes_queue.go:117: Allocated new queue in 604.417µs; Capacity: 2522348

I'm basically using the default configuration but
LifeWindow = 30 * time.Minute
Shards = 2048
I'm wondering is there a guide lines on how to properly configure the shards properly? Also sorry if this isn't the right forum to ask the question. I can move it somewhere else if you know a better forum for this quesiton.
Environment: github.com/allegro/bigcache v1.2.1 go 1.18
It's generated by this line https://github.com/allegro/bigcache/blob/16df11e2ee38e06da57939e8cbc11cc94f3fa4ce/queue/bytes_queue.go#L138 and we are using logger from stdlib that prints to stderr so technically it's not an error as there are no severity/levels in stdlib (although there could be in the future Go proposal: structured logging).
If you see it often you can disable verbose or increase size to one mentioned in last log you see.