瀏覽代碼

[dsmp] Add RedisStreamManager and connect to dsmp redis instance (#27262)

* [dsmp] moved redis functions to RedisStreamManager

* update env variables

* use getEventStream generator function

* improve error handling

GitOrigin-RevId: 0e4858bb9a49693664cc472179e838a4d81041a8
Domagoj Kriskovic 1 年之前
父節點
當前提交
874a6a612b
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      develop/dev.env
  2. 1 0
      services/web/local-test.env

+ 1 - 0
develop/dev.env

@@ -13,6 +13,7 @@ MONGO_URL=mongodb://mongo/sharelatex?directConnection=true
 NOTIFICATIONS_HOST=notifications
 PROJECT_HISTORY_HOST=project-history
 QUEUES_REDIS_HOST=redis
+DSMP_REDIS_HOST=redis
 REALTIME_HOST=real-time
 REDIS_HOST=redis
 SESSION_SECRET=foo

+ 1 - 0
services/web/local-test.env

@@ -3,6 +3,7 @@ CLEANUP_MONGO=true
 REDIS_HOST=127.0.0.1
 REDIS_DB=5
 QUEUES_REDIS_HOST=127.0.0.1
+DSMP_REDIS_HOST=127.0.0.1
 PUBSUB_REDIS_HOST=127.0.0.1
 RATELIMITER_REDIS_HOST=127.0.0.1
 GCLOUD_2_REDIS_HOST=127.0.0.1