Add concurrent_request and concurrent_strategy in config_defaults

This commit is contained in:
TeoV
2020-08-25 11:42:48 +03:00
committed by Dan Christian Bogos
parent 841264a97a
commit 758d944418
3 changed files with 6 additions and 0 deletions

View File

@@ -52,6 +52,8 @@ const CGRATES_CFG_JSON = `
"digest_equal": ":", // equal symbol used in case of digests
"rsr_separator": ";", // separator used within RSR fields
"max_parallel_conns": 100, // the maximum number of connection used by the *parallel strategy
"concurrent_requests": 0, // maximum concurrent request allowed ( 0 to disabled )
"concurrent_strategy": "*queue", // strategy in case in case of concurrent requests reached
},

View File

@@ -62,6 +62,8 @@ func TestDfGeneralJsonCfg(t *testing.T) {
Digest_equal: utils.StringPointer(":"),
Rsr_separator: utils.StringPointer(";"),
Max_parallel_conns: utils.IntPointer(100),
Concurrent_requests: utils.IntPointer(0),
Concurrent_strategy: utils.StringPointer(utils.MetaQueue),
}
if gCfg, err := dfCgrJSONCfg.GeneralJsonCfg(); err != nil {
t.Error(err)

View File

@@ -31,6 +31,8 @@
// "digest_equal": ":", // equal symbol used in case of digests
// "rsr_separator": ";", // separator used within RSR fields
// "max_parallel_conns": 100, // the maximum number of connection used by the *parallel strategy
// "concurrent_requests": 0, // maximum concurrent request allowed ( 0 to disabled )
// "concurrent_strategy": "*queue", // strategy in case in case of concurrent requests reached
// },