Added cores package and tests for caps

This commit is contained in:
Trial97
2020-11-04 17:05:32 +02:00
committed by Dan Christian Bogos
parent eb57017632
commit 568df81745
101 changed files with 1527 additions and 926 deletions

View File

@@ -32,8 +32,13 @@
// "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": "*busy", // strategy in case in case of concurrent requests reached
// },
// "cores": {
// "caps": 0, // maximum concurrent request allowed ( 0 to disabled )
// "caps_strategy": "*busy", // strategy in case in case of concurrent requests reached
// "caps_stats_interval": "0" // the interval we sample for caps stats ( 0 to disabled )
// },
@@ -246,6 +251,7 @@
// "*uch": {"limit": -1, "ttl": "3h", "static_ttl": false, "replicate": false}, // User cache
// "*stir": {"limit": -1, "ttl": "3h", "static_ttl": false, "replicate": false}, // stirShaken cache keys
// "*apiban":{"limit": -1, "ttl": "2m", "static_ttl": false, "replicate": false},
// "*caps_events": {"limit": -1, "ttl": "", "static_ttl": false, "replicate": false}, // caps cached samples
// // only for *internal database
// "*versions": {"limit": -1, "ttl": "", "static_ttl": false, "replicate": false}, // for version storing

View File

@@ -4,8 +4,12 @@
"log_level": 7,
"node_id": "ConcurrentBusyEngine",
"reply_timeout": "50s",
"concurrent_requests": 2,
"concurrent_strategy": "*busy"
},
"cores": {
"caps": 2,
"caps_strategy": "*busy",
},

View File

@@ -4,8 +4,12 @@
"log_level": 7,
"node_id": "ConcurrentQueueEngine",
"reply_timeout": "50s",
"concurrent_requests": 2,
"concurrent_strategy": "*queue",
},
"cores": {
"caps": 2,
"caps_strategy": "*queue",
},

View File

@@ -4,8 +4,12 @@
"log_level": 7,
"node_id": "ConcurrentQueueEngine",
"reply_timeout": "50s",
"concurrent_requests": 1000000,
"concurrent_strategy": "*queue"
},
"cores": {
"caps": 1000000,
"caps_strategy": "*queue",
},