dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
25.96k stars 954 forks source link

Deployment as a service, configuration file, performance optimization #4122

Open vbickov opened 1 week ago

vbickov commented 1 week ago

I think there is a problem with documentation and usability:

  1. The "dragonfly --help" lists lots of parameters. What exactly do these parameters mean? Can I put these parameters in a config file?
  2. I believe I found a service file somewhere in the sources, but there is no information on how to use it. Moreover, I did not even know how to install the binary until I found an RPM in your release.
  3. I do not believe that the default dragonfly configuration is "one size fits all", but I could not find any information on how to tune performance, restrict memory, number of cores, etc.

I remember configuring Redis for the first time and finding all the necessary information was a crucial part of the process. I need a product with high performance for my project, but the lack of documentation is really concerning.

BorysTheDev commented 1 week ago

Hi @vbickov
You can find most of the flags here https://www.dragonflydb.io/docs/managing-dragonfly/flags In most cases only 4 parameters are important: --maxmemory, --proactor_threads, --oom_deny_ratio and --rss_oom_deny_ratio. The last is a new flag (we haven't updated the page yet) but do absolutely the same as oom_deny_ratio but for RSS memory.

romange commented 1 week ago

A valid feedback. @vbickov we are aware of these issues. Where you have you searched for this information - at dragonflydb.io or here in the repo?