From da30f372a8ad8f505eb441bd17f7fe2b170453c1 Mon Sep 17 00:00:00 2001 From: TeoV Date: Fri, 17 Jul 2020 16:22:28 +0300 Subject: [PATCH] [Remote] Update engine2 to inform cache on internal of changes --- .../remote_replication/engine2_mongo/cgrates.json | 12 +++++++++++- .../remote_replication/engine2_redis/cgrates.json | 12 ++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/data/conf/samples/remote_replication/engine2_mongo/cgrates.json b/data/conf/samples/remote_replication/engine2_mongo/cgrates.json index 1caa34dff..34264e1a3 100644 --- a/data/conf/samples/remote_replication/engine2_mongo/cgrates.json +++ b/data/conf/samples/remote_replication/engine2_mongo/cgrates.json @@ -11,6 +11,15 @@ "http": ":2380", }, +"rpc_conns": { + "replicateToCache": { + "strategy": "*broadcast_sync", + "conns": [ + {"address": "*internal"}, + {"address": "127.0.0.1:2012", "transport":"*json"}, + ], + } +}, "data_db": { "db_type": "mongo", @@ -39,7 +48,8 @@ "apiers": { "enabled": true, "scheduler_conns": ["*internal"], + "caches_conns": ["replicateToCache"], }, -} +}, diff --git a/data/conf/samples/remote_replication/engine2_redis/cgrates.json b/data/conf/samples/remote_replication/engine2_redis/cgrates.json index 2dbeaca6f..1d54116fe 100644 --- a/data/conf/samples/remote_replication/engine2_redis/cgrates.json +++ b/data/conf/samples/remote_replication/engine2_redis/cgrates.json @@ -22,6 +22,17 @@ }, +"rpc_conns": { + "replicateToCache": { + "strategy": "*broadcast_sync", + "conns": [ + {"address": "*internal"}, + {"address": "127.0.0.1:2012", "transport":"*json"}, + ], + } +}, + + "rals": { "enabled": true, }, @@ -35,6 +46,7 @@ "apiers": { "enabled": true, "scheduler_conns": ["*internal"], + "caches_conns": ["replicateToCache"], }, }