Add ReplicatorSv1 for remote/replication functionality

This commit is contained in:
TeoV
2019-11-13 18:20:35 +02:00
committed by Dan Christian Bogos
parent a3a59bbb64
commit 5cc9f94cc0
20 changed files with 217 additions and 434 deletions

View File

@@ -1,8 +1,4 @@
{
// CGRateS Configuration file
//
"general": {
"log_level": 7,
"node_id": "RemoteMongo",
@@ -27,11 +23,7 @@
}
],
"replication_conns": [
{
"db_type": "mongo",
"db_name": "10",
"db_port": 27017
}
{"address": "127.0.0.1:2022", "transport":"*json"}
]
},
@@ -138,7 +130,7 @@
"apier": {
"scheduler_conns": [ // connections to SchedulerS for reloads
"scheduler_conns": [
{"address": "*internal"}
]
}

View File

@@ -24,14 +24,10 @@
"db_type": "*redis",
"db_port": 6379,
"db_name": "10",
}
},
],
"replication_conns": [
{
"db_type": "*redis",
"db_port": 6379,
"db_name": "10",
}
{"address": "127.0.0.1:2022", "transport":"*json"}
]
},

View File

@@ -0,0 +1,49 @@
{
// CGRateS Configuration file
"general": {
"log_level": 7,
"reply_timeout": "30s",
},
"listen": {
"rpc_json": ":2022",
"rpc_gob": ":2023",
"http": ":2280"
},
"data_db": {
"db_type": "mongo",
"db_name": "10",
"db_port": 27017,
},
"stor_db": {
"db_type": "mongo",
"db_name": "cgrates",
"db_port": 27017,
},
"rals": {
"enabled": true,
},
"scheduler": {
"enabled": true,
},
"apier": {
"scheduler_conns": [ // connections to SchedulerS for reloads
{"address": "*internal"},
],
},
}