Skip to content
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

NO Official RPM Repository Available and very confusing #2766

Open
skrlance opened this issue Mar 23, 2024 · 8 comments
Open

NO Official RPM Repository Available and very confusing #2766

skrlance opened this issue Mar 23, 2024 · 8 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@skrlance
Copy link

Did you search GitHub Issues and GitHub Discussions First?
Yes
Is your feature request related to a problem? Please describe.
Dragonfly doesn't have it's own repository to install on Enterprise Linux 9. I tried installing rpm file provided on the released package on EL9 but dragonfly doesn't starts.
Describe the solution you'd like
First of all I need separate precompiled rpm repository for EL8 and EL9 available to download and install through dragonfly official website.
Second is I don't see anywhere in the example or configuration to set maxmemory, requirepass, and maxmemory-policy directly on configuration file. The available documentation doesn't teaches a much.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I am also thinking to try out KeyDB but it appears like Dragonfly is much better solution that it. So, I want to go for Dragonfly.

Additional context
Please make the rpm repository available and keep example configuration to set maxmemory, requirepass, and maxmemory-policy in the main configuration file.

@romange
Copy link
Collaborator

romange commented Mar 24, 2024

Thank you for bringing this issue to our attention! We're always looking for ways to improve Dragonfly.
If you're interested in helping out, we'd greatly appreciate contributions in the following areas:

  • RPM Repository Setup: We're looking for assistance with creating the necessary code for our RPM repository (e.g., .spec files, package configuration). If you have experience with RPM packaging, we'd love your help!

  • Documentation Enhancement: Our documentation is hosted here. You are welcome to send a PR or open an issue there about stuff that is missing on your opinion.

Regarding the EL9 issue: Could you please provide the log output or any other clues you've found? This will help us pinpoint the problem and work towards a solution.

@romange romange added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 24, 2024
@romange
Copy link
Collaborator

romange commented Mar 24, 2024

Another thing, Dragonfly does not have maxmemory-policy flag, instead it has cache_mode flag for that.

@skrlance
Copy link
Author

The problem was in your compiled rpm file where you need to make changes to your dragonfly.spec file while compiling:

  1. First thing is you should be giving permission to the dfly user to create and access the directory /var/log/dragonfly
  2. Second was that you were keeping wrong location of path to bin while compiling where dragonfly file should be move to /usr/bin and you are moving it to /usr/local/bin.

I solved the issue with the following commands:

cd /usr/local/bin
cp dragonfly /usr/bin

&
cd /var/log
mkdir dragonfly
chown -R dfly /var/log/dragonfly

Now, dragonfly is up and running in my server!! So, please make necessary changes to your .spec file while compiling.

@romange
Copy link
Collaborator

romange commented Mar 24, 2024

@skrlance would you like to send a PR?

@skrlance
Copy link
Author

Another thing, Dragonfly does not have maxmemory-policy flag, instead it has cache_mode flag for that.

This is my dargonfly.conf file and I will add cache_mode flag as you suggested:

--pidfile=/var/run/dragonfly/dragonfly.pid
--log_dir=/var/log/dragonfly
--dir=/var/lib/dragonfly
--max_log_size=20
--version_check=true
--requirepass=myredispass
--maxmemory=1gb
--compression_mode=2
--keys_output_limit=8192

@skrlance
Copy link
Author

@skrlance would you like to send a PR?

What PR?

@skrlance
Copy link
Author

Also, I forgot to mention, we should be removing:

#Restart=always

From:
/usr/lib/systemd/system/dragonfly.service

Or, dragonfly will crash and won't start.

@romange
Copy link
Collaborator

romange commented Mar 24, 2024

Also, I forgot to mention, we should be removing:

#Restart=always

From: /usr/lib/systemd/system/dragonfly.service

Or, dragonfly will crash and won't start.

why is that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants