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

Redis replacement - valkey - missing systemd service #3213

Open
Gorian opened this issue Nov 25, 2024 · 2 comments
Open

Redis replacement - valkey - missing systemd service #3213

Gorian opened this issue Nov 25, 2024 · 2 comments

Comments

@Gorian
Copy link

Gorian commented Nov 25, 2024

Info

version: 42680

Description

Redis, and the bundle redis-native has been replaced in recent versions by valkey, which seems to be a drop-in FOSS replacement. However, the replacement isn't documented, and it doesn't come with a systemd service. This leads to broken servers when an updates removes Redis and there's no longer any redis service running. Ideally, we'd adapt a systemd service file, E.G. https://github.com/valkey-io/valkey/blob/unstable/utils/systemd-valkey_server.service and then possibly alias is to the redis-service that was previously ran by the redis bundle for backwards compatability.

@bryteise
Copy link
Member

I'm not sure I want to just have this default enable if redis was enabled as there are what looks to be some differences between config in what we were last shipping of redis and the current valkey stuff. I did make the main service use a default valkey.conf that is now shipped. That conf will try and load an /etc/redis.conf if it exists (and an /etc/valkey.conf if it exists too) and will use the /var/lib/redis directory for its state still (as well as the redis user and group).

@Gorian
Copy link
Author

Gorian commented Nov 25, 2024

Unfortunately, I don't know anything about valkey - I never heard of it before digging into the reason my server stopped working, as it was dependent on Redis. I do know that since valkey was auto-installed with the OS updated, all I had to do to make it work was copy the systemd service file, update the binary path, and then start (and enable it) and with no additional configuration (since I was using the default redis config on the default port), it just worked. I can see how it might be complicated if you had a more in-depth configuration though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants