Commit Graph

224 Commits

Author SHA1 Message Date
Marten Seemann
df257cee0c
docs: describe how the limiter is configured, and how limits are scaled (#59)
* docs: describe how the limiter is configured, and how limits are scaled

* Apply suggestions from code review

Co-authored-by: Marco Munizaga <marco@marcopolo.io>

Co-authored-by: Marco Munizaga <marco@marcopolo.io>
2022-07-03 02:52:01 -07:00
Marten Seemann
9320db8806
don't limit the number of FDs on Windows (#58) 2022-07-03 10:01:04 +02:00
Marco Munizaga
f704ffd0f1
Merge pull request #57 from libp2p/marco/allowlist-config
Add ability to configure allowlist limits
2022-07-02 15:59:44 -07:00
Marco Munizaga
114d22bd29
Update limit_defaults.go
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2022-07-02 15:50:38 -07:00
Marco Munizaga
3a9ac22a9f Fix less check on my machine 2022-07-02 15:18:53 +02:00
Marco Munizaga
eb72b52bd8 Add allowlist limit config option 2022-07-02 15:18:52 +02:00
Marten Seemann
d0a1694030
Merge pull request #48 from libp2p/rework-limits
rewrite limits to allow auto-scaling
2022-07-02 06:14:47 -07:00
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