Modify tests and samples for BiRPC SessionS<->ThresholdS

This commit is contained in:
arberkatellari
2026-01-20 12:55:20 +02:00
committed by Dan Christian Bogos
parent 78e537bc36
commit 8f6995d185
116 changed files with 1438 additions and 1591 deletions

View File

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

View File

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

View File

@@ -1,44 +1,45 @@
{
"general": {
"general": {
"node_id": "fltr_update_e1_mongo",
"log_level": 7
},
},
"listen": {
"listen": {
"rpc_json": ":22012",
"rpc_gob": ":22013",
"http": ":22080"
},
"http": ":22080",
"birpc_json": ":22014"
},
"data_db": {
"data_db": {
"db_type": "mongo",
"db_name": "10",
"db_port": 27017
},
},
"stor_db": {
"stor_db": {
"db_type": "mongo",
"db_name": "cgrates",
"db_port": 27017,
"db_password": ""
},
},
"rpc_conns": {
"rpc_conns": {
"cache_conn": {
"strategy": "*broadcast_sync",
"conns": [{"address": "127.0.0.1:22012", "transport": "*json"}, {"address": "127.0.0.1:2012", "transport": "*json"}]
"strategy": "*broadcast_sync",
"conns": [
{ "address": "127.0.0.1:22012", "transport": "*json" },
{ "address": "127.0.0.1:2012", "transport": "*json" }
]
}
},
},
"attributes": {
"attributes": {
"enabled": true
},
},
"apiers": {
"apiers": {
"enabled": true,
"caches_conns":["cache_conn"]
"caches_conns": ["cache_conn"]
}
}
}

View File

@@ -1,42 +1,42 @@
{
"general": {
"general": {
"node_id": "fltr_update_e1_mysql",
"log_level": 7
},
},
"listen": {
"listen": {
"rpc_json": ":22012",
"rpc_gob": ":22013",
"http": ":22080"
},
"http": ":22080",
"birpc_json": ":22014"
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "10"
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "10"
},
"stor_db": {
"stor_db": {
"db_password": "CGRateS.org"
},
},
"rpc_conns": {
"rpc_conns": {
"cache_conn": {
"strategy": "*broadcast_sync",
"conns": [{"address": "127.0.0.1:22012", "transport":"*json"},{"address": "127.0.0.1:2012", "transport": "*json"}]
"strategy": "*broadcast_sync",
"conns": [
{ "address": "127.0.0.1:22012", "transport": "*json" },
{ "address": "127.0.0.1:2012", "transport": "*json" }
]
}
},
},
"attributes": {
"attributes": {
"enabled": true
},
},
"apiers": {
"apiers": {
"enabled": true,
"caches_conns":["cache_conn"]
"caches_conns": ["cache_conn"]
}
}
}