mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 21:59:53 +05:00
Add ReplicatorSv1 for remote/replication functionality
This commit is contained in:
committed by
Dan Christian Bogos
parent
a3a59bbb64
commit
5cc9f94cc0
@@ -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"}
|
||||
]
|
||||
}
|
||||
@@ -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"}
|
||||
]
|
||||
},
|
||||
|
||||
49
data/conf/samples/replication_mongo/cgrates.json
Normal file
49
data/conf/samples/replication_mongo/cgrates.json
Normal 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"},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user