mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
cfg: move failed_posts to ees, add static_ttl
This commit is contained in:
committed by
Dan Christian Bogos
parent
082c412159
commit
295ddec792
@@ -5,9 +5,8 @@
|
||||
// Starts rater, scheduler
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1
|
||||
},
|
||||
|
||||
"listen": {
|
||||
@@ -59,6 +58,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "sqs_fail",
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
},
|
||||
|
||||
"rpc_conns": {
|
||||
@@ -68,6 +67,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "sqs_fail",
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
},
|
||||
|
||||
"listen": {
|
||||
@@ -65,6 +64,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "sqs_fail",
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
"poster_attempts": 1
|
||||
},
|
||||
|
||||
"rpc_conns": {
|
||||
@@ -66,6 +65,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "sqs_fail",
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
"poster_attempts": 1
|
||||
},
|
||||
|
||||
"listen": {
|
||||
@@ -61,6 +60,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "sqs_fail",
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
},
|
||||
|
||||
"rpc_conns": {
|
||||
@@ -67,6 +66,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "sqs_fail",
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 2,
|
||||
"failed_posts_ttl": "1s"
|
||||
"poster_attempts": 2
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
@@ -47,6 +46,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1s"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "http_localhost",
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 2,
|
||||
"failed_posts_ttl": "1s"
|
||||
"poster_attempts": 2
|
||||
},
|
||||
|
||||
|
||||
@@ -53,6 +52,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1s"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "http_localhost",
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1s"
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
@@ -49,6 +48,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1s"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "http_localhost",
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
"poster_attempts": 1
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
@@ -48,6 +47,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "http_localhost",
|
||||
@@ -147,4 +149,4 @@
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
"poster_attempts": 1
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
@@ -45,6 +44,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "http_localhost",
|
||||
@@ -144,4 +146,4 @@
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
"poster_attempts": 1
|
||||
},
|
||||
|
||||
"data_db":{
|
||||
@@ -31,11 +30,16 @@
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
"failed_posts": {
|
||||
"dir": "/tmp/failed_posts",
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "amqp_test_file",
|
||||
"type": "*amqp_json_map",
|
||||
"export_path": "amqps://guest:guest@localhost:256733/",
|
||||
"failed_posts_dir": "/tmp/failed_posts",
|
||||
"attempts": 1,
|
||||
"synchronous": true,
|
||||
"fields":[
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
// Used in general_tests
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
@@ -35,11 +34,16 @@
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
"failed_posts": {
|
||||
"dir": "/tmp/failed_posts",
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "amqp_test_file",
|
||||
"type": "*amqp_json_map",
|
||||
"export_path": "amqps://guest:guest@localhost:256733/",
|
||||
"failed_posts_dir": "/tmp/failed_posts",
|
||||
"attempts": 1,
|
||||
"synchronous": true,
|
||||
"fields":[
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1,
|
||||
"failed_posts_ttl": "1",
|
||||
},
|
||||
|
||||
"data_db": { // database used to store runtime data (eg: accounts, cdr stats)
|
||||
@@ -31,6 +30,9 @@
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
"failed_posts": {
|
||||
"ttl": "1"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "amqp_test_file",
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"node_id": "TestFailCDRS",
|
||||
"poster_attempts": 1, // number of attempts before considering post request failed (eg: *http_post, CDR exports)
|
||||
"failed_posts_ttl": "1s", // time to wait before writing the failed posts in a single file
|
||||
"failed_posts_dir": "/tmp/failed_posts",
|
||||
"poster_attempts": 1 // number of attempts before considering post request failed (eg: *http_post, CDR exports)
|
||||
},
|
||||
|
||||
"stor_db": {
|
||||
@@ -65,6 +63,11 @@
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
"failed_posts": {
|
||||
"dir": "/tmp/failed_posts",
|
||||
"ttl": "1s",
|
||||
"static_ttl": false
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "s3_test_file",
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1, // number of attempts before considering post request failed (eg: *http_post, CDR exports)
|
||||
"failed_posts_ttl": "1s", // time to wait before writing the failed posts in a single file
|
||||
"failed_posts_dir": "/tmp/failed_posts" // directory path where we store failed requests
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
@@ -75,6 +73,11 @@
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
"failed_posts": {
|
||||
"dir": "/tmp/failed_posts",
|
||||
"ttl": "1s",
|
||||
"static_ttl": false
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "s3_test_file",
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 1, // number of attempts before considering post request failed (eg: *http_post, CDR exports)
|
||||
"failed_posts_ttl": "1s", // time to wait before writing the failed posts in a single file
|
||||
"failed_posts_dir": "/tmp/failed_posts" // directory path where we store failed requests
|
||||
},
|
||||
|
||||
|
||||
@@ -71,6 +69,11 @@
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"attributes_conns": ["*internal"],
|
||||
"failed_posts": {
|
||||
"dir": "/tmp/failed_posts",
|
||||
"ttl": "1s",
|
||||
"static_ttl": false
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "s3_test_file",
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
"general": {
|
||||
"log_level": 7,
|
||||
"poster_attempts": 2,
|
||||
"failed_posts_ttl": "1s"
|
||||
"poster_attempts": 2
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
@@ -17,6 +16,9 @@
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"failed_posts": {
|
||||
"ttl": "1s"
|
||||
},
|
||||
"exporters": [
|
||||
{
|
||||
"id": "sqs_test_file",
|
||||
@@ -91,4 +93,4 @@
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,4 +34,4 @@
|
||||
},
|
||||
],
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"dbdata_encoding": "*env:DB_ENCODING", // encoding used to store object data in strings: <*msgpack|*json>
|
||||
"tpexport_dir": "*env:TP_EXPORT_DIR", // path towards export folder for offline Tariff Plans
|
||||
"poster_attempts": 3, // number of attempts before considering post request failed (eg: *http_post, CDR replication)
|
||||
"failed_posts_dir": "*env:FAILED_POSTS_DIR", // directory path where we store failed requests
|
||||
"default_tenant": "*env:DF_TENANT", // default tenant to consider when missing from requests
|
||||
"default_timezone": "*env:TIMEZONE", // default timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB>
|
||||
"connect_attempts": 3, // initial server connect attempts
|
||||
@@ -23,4 +22,4 @@
|
||||
"digest_separator": ",",
|
||||
"digest_equal": ":",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user