Snapchat / KeyDB

A Multithreaded Fork of Redis
https://keydb.dev
BSD 3-Clause "New" or "Revised" License
11.57k stars 579 forks source link

[Question] Multi-Master support of multiple databases #655

Open skyfox14 opened 1 year ago

skyfox14 commented 1 year ago

Hi,

we are using KeyDB in a Multi-Master setup and came across a particular limitation in the Cluster documentation. Specifically, it states that:

KeyDB Cluster does not support multiple databases like the stand alone version of KeyDB. There is just database 0 and the SELECT command is not allowed.

(Source: https://docs.keydb.dev/docs/cluster-spec#implemented-subset)

However, in our usage of the Multi-Master setup, we have not encountered this limitation. This leads us to question whether this section might have been mistakenly copied from the Redis documentation and does not actually apply to KeyDB? (Source: https://redis.io/docs/reference/cluster-spec/#implemented-subset)

Thank you for the clarification.

Cheers, Antonios

air3ijai commented 1 year ago

KeyDB, besides a Redis like Cluster-mode, has a special mode Multi-Master - Using Multiple Masters and it is different from the Cluster one.

Cluster is about sharding and Multi-Master is like reciprocal replication and here we may have multiple databases.