Add integration test for cache replication from AttributeSv1/RateSv1.ProcessEvent

This commit is contained in:
TeoV
2020-12-14 12:49:35 +02:00
committed by Dan Christian Bogos
parent 05143d62d1
commit 9152bb452c
8 changed files with 378 additions and 4 deletions

View File

@@ -0,0 +1,75 @@
{
"general": {
"log_level": 7,
"node_id": "Engine1"
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2180"
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "10"
},
"stor_db": {
"db_password": "CGRateS.org"
},
"rpc_conns": {
"connCache": {
"strategy": "*broadcast_sync",
"conns": [
{"address": "127.0.0.1:2013", "transport":"*gob"},
{"address": "127.0.0.1:2023", "transport":"*gob"}
]
}
},
"caches":{
"partitions": {
"*attribute_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false, "replicate": true},
"*attribute_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false, "replicate": true},
"*rate_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false, "replicate": true},
"*rate_profile_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false, "replicate": true},
"*rate_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false, "replicate": true}
},
"replication_conns": ["connCache"]
},
"rals": {
"enabled": true
},
"attributes": {
"enabled": true
},
"rates": {
"enabled": true
},
"schedulers": {
"enabled": true
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"]
},
},

View File

@@ -0,0 +1,52 @@
{
"general": {
"log_level": 7,
"node_id": "Engine2"
},
"listen": {
"rpc_json": ":2022",
"rpc_gob": ":2023",
"http": ":2280",
},
"data_db": {
"db_type": "redis",
"db_port": 6379,
"db_name": "10",
},
"stor_db": {
"db_password": "CGRateS.org",
},
"rals": {
"enabled": true,
},
"attributes": {
"enabled": true,
},
"rates": {
"enabled": true,
},
"schedulers": {
"enabled": true,
},
"apiers": {
"enabled": true,
"scheduler_conns": ["*internal"],
},
}