docker icon indicating copy to clipboard operation
docker copied to clipboard

Add dbindex to redis.config.php

Open Hujgo opened this issue 1 year ago • 5 comments

add dbindex for redis as comment. referenced from a6f2a3c commit.

Hujgo avatar Jun 14 '24 19:06 Hujgo

That's not a comment. :-)

Also, this would have to be handled in the PHP session handler too otherwise the result might not be what people expect...

https://github.com/nextcloud/docker/blob/064069b3060092b64f6fc1e418932fa215d57364/docker-entrypoint.sh#L108-L133

joshtrichards avatar Jun 16 '24 14:06 joshtrichards

kind of duplictae of https://github.com/nextcloud/docker/pull/1286

Can you elaborate the use case?

J0WI avatar Jun 18 '24 20:06 J0WI

Can you elaborate the use case?

Having an external redis master-master cluster and deploying nextcloud only on designated node. I am aware that prefix hash is calculated by concatenating instanceid, path and version, so in theory there should be no conflicting prefixes, however being able to separate it in separate dbindices in case of needing to cleanup after update etc. is a bonus, especially if you're managing mutliple instances connecting to single cluster. One of the solutions would be having option to use consistent prefix for redis entries.

GroondCharge avatar Sep 11 '24 12:09 GroondCharge

If this will get pulled into main, has the session lock configuration been adjusted aswell? I've tried an example here https://github.com/nextcloud/docker/pull/2288/files

GroondCharge avatar Sep 23 '24 07:09 GroondCharge

Having an external redis master-master cluster and deploying nextcloud only on designated node

But Redis Cluster doesn't support dbindex / multiple databases.

https://redis.io/docs/latest/commands/select/

joshtrichards avatar Oct 16 '24 15:10 joshtrichards