mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Make CDRs storable in Redis DB
This commit is contained in:
committed by
Dan Christian Bogos
parent
5f2b6beaa6
commit
9783cdbf3e
@@ -8,7 +8,7 @@
|
||||
"db_conns": {
|
||||
"*default": {
|
||||
"db_type": "*internal",
|
||||
"string_indexed_fields": ["RunID"],
|
||||
"string_indexed_fields": ["*opts.*accounts"],
|
||||
"opts":{
|
||||
"internalDBRewriteInterval": "0s",
|
||||
"internalDBDumpInterval": "0s"
|
||||
|
||||
72
data/conf/samples/cdrsv2redis/cgrates.json
Normal file
72
data/conf/samples/cdrsv2redis/cgrates.json
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
|
||||
"logger": {
|
||||
"level": 7
|
||||
},
|
||||
|
||||
"db": {
|
||||
"db_conns": {
|
||||
"*default": {
|
||||
"db_type": "redis", // db type: <internal|redis|mysql|mongo|postgres>
|
||||
"db_host": "127.0.0.1",
|
||||
"db_port": 6379, // db port to reach the database
|
||||
"db_name": "10", // db database name to connect to
|
||||
"string_indexed_fields": ["*opts.*accounts"]
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
"rates": {
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
"cdrs": {
|
||||
"enabled": true,
|
||||
"attributes_conns":["*internal"],
|
||||
"chargers_conns":["*localhost"],
|
||||
"rates_conns": ["*localhost"],
|
||||
"stats_conns": ["*localhost"],
|
||||
"thresholds_conns": ["*localhost"],
|
||||
},
|
||||
|
||||
"attributes": {
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
"stats": {
|
||||
"enabled": true,
|
||||
"store_interval": "-1",
|
||||
"thresholds_conns": ["*internal"]
|
||||
},
|
||||
|
||||
"thresholds": {
|
||||
"enabled": true,
|
||||
"actions_conns": ["*localhost"],
|
||||
"store_interval": "-1"
|
||||
},
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*localhost"]
|
||||
},
|
||||
|
||||
"admins": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
"actions": {
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
"loaders": [
|
||||
{
|
||||
"id": "*default",
|
||||
"enabled": true,
|
||||
"tenant": "cgrates.org",
|
||||
"lockfile_path": ".cgr.lck",
|
||||
"tp_in_dir": "/usr/share/cgrates/tariffplans/testit",
|
||||
"tp_out_dir": ""
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
67
data/conf/samples/cdrsv2redis_gob/cgrates.json
Normal file
67
data/conf/samples/cdrsv2redis_gob/cgrates.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"logger": {
|
||||
"level": 7
|
||||
},
|
||||
|
||||
|
||||
"rpc_conns": {
|
||||
"conn1": {
|
||||
"strategy": "*first",
|
||||
"conns": [{"address": "127.0.0.1:2013", "transport":"*gob"}]
|
||||
}
|
||||
},
|
||||
|
||||
"rates": {
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
"cdrs": {
|
||||
"enabled": true,
|
||||
"attributes_conns":["*internal"],
|
||||
"chargers_conns":["conn1"],
|
||||
"rates_conns": ["conn1"],
|
||||
"stats_conns": ["conn1"],
|
||||
"thresholds_conns": ["conn1"],
|
||||
},
|
||||
|
||||
"attributes": {
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
"stats": {
|
||||
"enabled": true,
|
||||
"store_interval": "1s",
|
||||
"thresholds_conns": ["*internal"]
|
||||
},
|
||||
|
||||
"thresholds": {
|
||||
"enabled": true,
|
||||
"actions_conns": ["*localhost"],
|
||||
"store_interval": "1s"
|
||||
},
|
||||
|
||||
"chargers": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"]
|
||||
},
|
||||
|
||||
"admins": {
|
||||
"enabled": true,
|
||||
},
|
||||
|
||||
"actions": {
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
"loaders": [
|
||||
{
|
||||
"id": "*default",
|
||||
"enabled": true,
|
||||
"tenant": "cgrates.org",
|
||||
"lockfile_path": ".cgr.lck",
|
||||
"tp_in_dir": "/usr/share/cgrates/tariffplans/testit",
|
||||
"tp_out_dir": ""
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user