-
Notifications
You must be signed in to change notification settings - Fork 21
switch to persistent peerstore #19
base: master
Are you sure you want to change the base?
Conversation
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
To remove bad badger License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
main.go
Outdated
} | ||
|
||
opts := pstoreds.DefaultOpts() | ||
opts.CacheSize = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wont this increase our allocation velocity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but in a shared setup, the cache is useless because it'll just be thrashing all the time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depending on size and type of cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have metrics regarding the hit rate. Unfortunately, open census was disabled because it was allocating too much (Why knows more).
Perhaps this helps: