You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some plugins (request/response rate limits) can use Redis as an external fast persistent storage. To connect to Redis, the parameters are host, port and password (optional). It's not possible to select a non-zero database in Redis. As result, it's not possible to share an existing Redis deployment if the zero database is already in use.
I suggest to add a new parameter with the cardinal of the database in Redis, being zero by default. The resyt-redis author suggest to implement this feature as follows: openresty/lua-resty-redis#53
Steps To Reproduce
Configure a rate-limiting plugin to connect to an existing Redis database with zero database in use.
Both data sets will be stored in the same database.
There is a chance of data corruption.
The text was updated successfully, but these errors were encountered:
I can see the value in this indeed. We'd need a new configuration field in the plugin configuration I believe, and as mentioned: select a different database on first connection, and use a different connection pool for each database.
Summary
Some plugins (request/response rate limits) can use Redis as an external fast persistent storage. To connect to Redis, the parameters are host, port and password (optional). It's not possible to select a non-zero database in Redis. As result, it's not possible to share an existing Redis deployment if the zero database is already in use.
I suggest to add a new parameter with the cardinal of the database in Redis, being zero by default. The resyt-redis author suggest to implement this feature as follows: openresty/lua-resty-redis#53
Steps To Reproduce
The text was updated successfully, but these errors were encountered: