Open Edtcetera opened 1 year ago
I will take a crack at this, from the looks of this I will need to upgrade node redis and follow their clustering guide as connecting to a redis cluster seems to be different: https://github.com/redis/node-redis/blob/master/docs/clustering.md
I assume the ethercalc connection to redis is done at db.ls : https://github.com/audreyt/ethercalc/blob/master/src/db.ls
I've forked the project and managed to migrate the redis client package to the latest ioredis package which supports Redis Sentinel and Clusters: https://github.com/Edtcetera/ethercalc-ioredis/pull/1/commits/cf4565477126978c898947345401307b40c7cfe3
I will need to add more flags for Sentinel/Cluster setup, as well as support for Redis username
When I create a Redis node with the argument '--cluster-enabled yes' the ethercalc service begins to crash when a single user joins the spreadsheet with the following logs:
When cluster-enabled is default false, ethercalc multi-user support functions correctly
I am using Redis:7.0.5