[Feature]: Support for redis sentinel #205

Closed
opened 2026-02-04 18:43:39 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @onedr0p on GitHub (Aug 16, 2022).

Feature detail

Hi 👋🏼

It would be great if immich could connect to a highly available redis instance.

Here's a couple examples of applications that support this method of redis.

Thanks!

Platform

Server

Originally created by @onedr0p on GitHub (Aug 16, 2022). ### Feature detail Hi 👋🏼 It would be great if immich could connect to a highly available redis instance. Here's a couple examples of applications that support this method of redis. - https://www.authelia.com/configuration/session/redis/ - https://github.com/outline/outline/blob/93bb9d067d0f61a2f5d6f1d302774b128095a4d0/.env.sample#L22L29 Thanks! ### Platform Server
Author
Owner

@alextran1502 commented on GitHub (Aug 16, 2022):

Hello,

Thank you for opening the issue. This will be left to the user to implement because it is very specific to a user group

@alextran1502 commented on GitHub (Aug 16, 2022): Hello, Thank you for opening the issue. This will be left to the user to implement because it is very specific to a user group
Author
Owner

@onedr0p commented on GitHub (Nov 13, 2022):

@alextran1502

To be able to implement sentinel support, there would have to be a switch from node-redis to ioredis, since node-redis doesn't have sentinel support https://github.com/redis/node-redis/issues/302 :/

Would you accept PRs on this change?

@onedr0p commented on GitHub (Nov 13, 2022): @alextran1502 To be able to implement sentinel support, there would have to be a switch from node-redis to [ioredis](https://github.com/luin/ioredis), since node-redis doesn't have sentinel support https://github.com/redis/node-redis/issues/302 :/ Would you accept PRs on this change?
Author
Owner

@alextran1502 commented on GitHub (Nov 13, 2022):

You can try but I think there might be dependencies that depends on node-redis, like the socket-io implementation

@alextran1502 commented on GitHub (Nov 13, 2022): You can try but I think there might be dependencies that depends on node-redis, like the socket-io implementation
Author
Owner

@onedr0p commented on GitHub (Nov 13, 2022):

Actually it looks like Bull passes the RedisOpts directly to ioredis, not sure why the redis lib is in the packages.json

https://github.com/OptimalBits/bull/blob/master/REFERENCE.md#queue

Since with Redis Sentinel would require multiple hosts passthru to the application, do you think the way Outline made it configurable is a decent decision for implentation?

https://github.com/luin/ioredis#sentinel

@onedr0p commented on GitHub (Nov 13, 2022): Actually it looks like Bull passes the `RedisOpts` directly to ioredis, not sure why the `redis` lib is in the `packages.json` https://github.com/OptimalBits/bull/blob/master/REFERENCE.md#queue Since with Redis Sentinel would require multiple hosts passthru to the application, do you think the way Outline made it [configurable](https://github.com/outline/outline/blob/93bb9d067d0f61a2f5d6f1d302774b128095a4d0/.env.sample#L22L29) is a decent decision for implentation? https://github.com/luin/ioredis#sentinel
Author
Owner

@alextran1502 commented on GitHub (Nov 14, 2022):

Here is the reason we have Redis in the dependency https://docs.nestjs.com/websockets/adapter

@alextran1502 commented on GitHub (Nov 14, 2022): Here is the reason we have Redis in the dependency https://docs.nestjs.com/websockets/adapter
Author
Owner

@samip5 commented on GitHub (Mar 31, 2023):

@alextran1502 Could you re-open this so it would get closed when the support is implemented from the PR?

@samip5 commented on GitHub (Mar 31, 2023): @alextran1502 Could you re-open this so it would get closed when the support is implemented from the PR?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#205