Commit Graph

217 Commits

Author SHA1 Message Date
Marten Seemann
7ceb0b850c expose BaseLimitIncrease.Apply 2022-07-02 11:39:28 +02:00
Marten Seemann
df93b499a4 log the values that the limiter is initialized with 2022-07-02 11:39:27 +02:00
Marten Seemann
1e2500707d reimplement parsing of JSON limit configs 2022-07-02 11:39:22 +02:00
Marten Seemann
83465e5846 add a function to automatically scale limits to system memory / FDs 2022-07-02 11:38:38 +02:00
Marten Seemann
33bc8a8560 implement scaling of limits 2022-07-02 11:38:35 +02:00
Marten Seemann
7fbc5d29a3 remove support for dynamic limits 2022-07-02 11:27:16 +02:00
Marten Seemann
4d634e5e53 remove support for parsing limit configs from JSON 2022-07-02 11:27:15 +02:00
Marco Munizaga
caabeaca0d
Merge pull request #56 from libp2p/MarcoPolo-patch-2
Release v0.4.0
2022-07-01 13:28:33 -07:00
Marco Munizaga
3bc0aa47e9
Release v0.4.0 2022-07-01 12:47:44 -07:00
Marco Munizaga
b8369c616d
Merge pull request #54 from libp2p/marco/50-obs
feat: Out of the box metrics for resource manager
2022-07-01 12:33:44 -07:00
Marco Munizaga
836d53a98d Fix go vet issue 2022-07-01 12:02:11 -07:00
Marco Munizaga
0f3804229e Remove unused var 2022-07-01 12:02:11 -07:00
Marco Munizaga
ccb0c4dd90 Update help text 2022-07-01 12:02:11 -07:00
Marco Munizaga
662c094201 Don't add reporter twice 2022-07-01 12:02:11 -07:00
Marco Munizaga
ac716c1bf3 Rewrite constants to be more obvious 2022-07-01 12:02:11 -07:00
Marco Munizaga
5abae10710 Filter out spans 2022-07-01 12:02:11 -07:00
Marco Munizaga
e70da09acb Unexport tag names, remove unused var 2022-07-01 12:02:11 -07:00
Marco Munizaga
6d5898aa99 Use bytes rather than decbytes (power of 2) 2022-07-01 12:02:11 -07:00
Marco Munizaga
d34b9cba64 Update bucket distribution and blocked resources 2022-07-01 12:02:11 -07:00
Marco Munizaga
04e10885af Update dashboard blocked resources 2022-07-01 12:02:11 -07:00
Marco Munizaga
bc012d37ff Update dashboard json 2022-07-01 12:02:11 -07:00
Marco Munizaga
04b17931b0 Fix merge conflicts 2022-07-01 12:02:11 -07:00
Marco Munizaga
c9413d7320 Add Grafana dashboard 2022-07-01 12:02:11 -07:00
Marco Munizaga
2385a33f55 Remove connid from scopename in blocked conns 2022-07-01 12:02:11 -07:00
Marco Munizaga
1c172ace77 Revert "Add multimetrics reporter"
This reverts commit 81fb49d3d68153b610b245d6f730f4d6b34b3706.
2022-07-01 12:02:11 -07:00
Marco Munizaga
3a06e88227 Add dep to go.mod/sum 2022-07-01 12:02:10 -07:00
Marco Munizaga
19b6d584b2 Add obs to resource manager 2022-07-01 12:01:45 -07:00
Marco Munizaga
7efd81c617 Add scope name helpers 2022-07-01 12:01:43 -07:00
Marco Munizaga
9ce3760d70 Flip sign of delta 2022-07-01 12:00:28 -07:00
Marco Munizaga
35abda3b13 Add trace reporter to expose traces to users 2022-07-01 12:00:28 -07:00
Marco Munizaga
1c12460e65 Add multimetrics reporter 2022-07-01 12:00:28 -07:00
Marco Munizaga
6607ffe4dc
Merge pull request #47 from libp2p/marco/allowlist
feat: Allowlist
2022-07-01 11:59:18 -07:00
Marco Munizaga
0487d3e13b Mod tidy 2022-06-30 16:53:48 -07:00
Marco Munizaga
8eac037a9d Update deps 2022-06-30 15:34:57 -07:00
Marco Munizaga
6edfbe4b5c Remove branch 2022-06-30 09:55:46 -07:00
Marco Munizaga
7aecdc148d PR nits 2022-06-29 21:18:16 -07:00
Marco Munizaga
600191a10c Update allowlist design doc with no extra cost for happy path 2022-06-27 15:54:42 -07:00
Marco Munizaga
374b297cee Add WithAllowlistedMultiaddr option 2022-06-27 15:47:51 -07:00
Marco Munizaga
8c5643aa2f Add GetAllowlist() 2022-06-27 15:42:00 -07:00
Marco Munizaga
2bb066a2ce Export Allowlist type 2022-06-27 15:39:26 -07:00
Marco Munizaga
a5e8e04ea9 Allowlist test with rcmgr 2022-06-27 15:30:21 -07:00
Marco Munizaga
5f5fdb3b6c Update comment 2022-06-27 15:30:03 -07:00
Marco Munizaga
61008b316c Only use allowlist if the normal resource scopes would have failed 2022-06-27 15:04:27 -07:00
Marco Munizaga
fd82a9fe01 Protect inner data with RWMutex 2022-06-27 14:40:07 -07:00
Marco Munizaga
1bf5e930ee Fuse with if above 2022-06-27 13:59:26 -07:00
Marten Seemann
a18fe790bf
trace the scope as a JSON object (#52) 2022-06-20 00:41:33 -07:00
Marten Seemann
3f28daf573
Merge pull request #42 from libp2p/rework-errors
include current limits in debug messages
2022-06-19 15:54:49 +02:00
Marten Seemann
628c5461e7 move errors to a separate file 2022-06-19 15:39:57 +02:00
Marten Seemann
e5cf68da47 move assembling of log values into separate functions 2022-06-19 11:37:30 +02:00
Marten Seemann
59def6b3bb
add an ID to spans (#44) 2022-06-19 01:18:02 -07:00