Add test for replicate routeID through dispatchers

This commit is contained in:
TeoV
2020-04-14 16:28:27 +03:00
committed by Dan Christian Bogos
parent 6a31c38025
commit 0862d5e39b
25 changed files with 627 additions and 92 deletions

View File

@@ -0,0 +1,52 @@
{
"general": {
"node_id": "DispatcherEngine",
"log_level": 7,
"reconnects": 1,
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080",
},
"stor_db": {
"db_type": "*internal",
},
"caches":{
"partitions": {
"*dispatcher_routes": {"limit": -1, "ttl": "1h", "replicate": true}
},
"replication_conns": ["cacheReplication"],
},
"rpc_conns": {
"cacheReplication": {
"conns": [{"address": "127.0.0.1:3013", "transport":"*gob"}],
},
},
"schedulers": {
"enabled": true,
},
"dispatchers":{
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}

View File

@@ -0,0 +1,51 @@
{
"general": {
"node_id": "DispatcherEngine2",
"log_level": 7,
"reconnects": 1,
},
"listen": {
"rpc_json": ":3012",
"rpc_gob": ":3013",
"http": ":3080",
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "11",
},
"stor_db": {
"db_type": "*internal",
},
"caches":{
"partitions": {
"*dispatcher_routes": {"limit": -1, "ttl": "1h"}
},
},
"schedulers": {
"enabled": true,
},
"dispatchers":{
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}

View File

@@ -0,0 +1,53 @@
{
// CGRateS Configuration file
//
"general": {
"node_id": "Engine1",
"log_level": 7
},
"listen": {
"rpc_json": ":6012",
"rpc_gob": ":6013",
"http": ":6080",
},
"data_db": {
"db_type": "*internal",
},
"stor_db": {
"db_type": "*internal"
},
"rpc_conns": {
"conn1": {
"strategy": "*first",
"conns": [{"address": "127.0.0.1:6012", "transport":"*json"}],
},
},
"attributes": {
"enabled": true
},
"rals": {
"enabled": true,
},
"schedulers": {
"enabled": true,
},
"apiers": {
"enabled": true,
"caches_conns":["conn1"],
"scheduler_conns": ["*internal"],
},
}