Commit Graph

258 Commits

Author SHA1 Message Date
Marco Munizaga
5711a2b457 Update readme 2022-08-11 16:56:26 -07:00
Marco Munizaga
31ce836418 Add namespace to metrics 2022-08-11 16:50:44 -07:00
Marco Munizaga
87c7d350fd
Merge pull request #76 from libp2p/marco/fix-null-pointer-err
Fix usage of make to reserve capacity, not values
2022-08-11 12:36:07 -07:00
Marco Munizaga
65fb641b27 Fix usage of make to reserve capacity, not values 2022-08-11 10:58:35 -07:00
Marco Munizaga
2692b757e6
Merge pull request #75 from libp2p/marco/docs
Add package docs
2022-08-10 18:19:05 -07:00
Marco Munizaga
703898608a Add example 2022-08-10 17:21:08 -07:00
Marco Munizaga
056c0f6622 Add section about allowlist 2022-08-09 17:56:43 +02:00
Marco Munizaga
c50151cb05 Nits 2022-08-09 12:53:28 +02:00
Marco Munizaga
d81430f88a Merge new docs into readme 2022-08-09 12:18:33 +02:00
Marco Munizaga
712edfd4d4 Add docs in the godoc 2022-07-28 04:46:47 -07:00
Marco Munizaga
c3eae9fa61
Merge pull request #74 from libp2p/MarcoPolo-patch-2
chore: Release v0.5.2
2022-07-27 16:01:21 +02:00
Marco Munizaga
712ddd3d0c
Merge pull request #72 from libp2p/marco/record-block-resource-dir
Record which direction the resource was blocked
2022-07-27 16:01:06 +02:00
Marco Munizaga
3fbeefeb7d
chore: Release v0.5.2 2022-07-27 13:33:33 +02:00
Marco Munizaga
3ecce6cc34 Add size hint to slice to hopefully have the tag slice allocated on the stack 2022-07-27 04:28:44 -07:00
Marco Munizaga
79d6a704e9
Merge pull request #73 from libp2p/marco/grafana-aggregate-mem-stats-across-all-instances
Simplify mem graphs in stock grafana dashboard
2022-07-26 12:06:05 +02:00
Marco Munizaga
a9166e4c4f Simplify memory graphs in stock grafana dashboard 2022-07-08 14:07:06 -07:00
Marco Munizaga
7dda49c55d Record which direction the resource was blocked 2022-07-08 13:43:46 -07:00
Marco Munizaga
52c042b471
Merge pull request #70 from libp2p/marco/grafana-multiple-instances
feat: Handle multiple instances in stock grafana dashboard
2022-07-07 16:10:54 -07:00
Marco Munizaga
99d1dbc664 Handle multiple instances in metrics 2022-07-07 15:52:24 -07:00
Marco Munizaga
2f27682997
Merge pull request #69 from libp2p/marco/update-grafana-json
Use templated version of grafana dashboard json
2022-07-07 15:51:59 -07:00
Marco Munizaga
18951db670 Use templated version of grafana dashboard json 2022-07-07 15:24:59 -07:00
Marco Munizaga
51226e5b6c
Merge pull request #66 from libp2p/MarcoPolo-patch-2
Release v0.5.1
2022-07-07 07:47:57 -07:00
Marco Munizaga
91ca49a13d
Merge pull request #67 from libp2p/marco-marshal-limit-config-properly
Implement `json.Marshaler` interface for LimitConfig
2022-07-07 07:25:18 -07:00
Marco Munizaga
575805d475 Implement json.Marshaler interface for LimitConfig 2022-07-06 11:48:12 -07:00
Marco Munizaga
0edd128310
Release v0.5.1 2022-07-06 10:58:25 -07:00
Marco Munizaga
9b2aa9d908
Merge pull request #65 from libp2p/marco-fix-trace-close
Don't wait for a chan that will never close
2022-07-06 10:57:55 -07:00
Marco Munizaga
09011ebc78 Don't wait for a chan that will never close 2022-07-06 10:01:46 -07:00
Marco Munizaga
fe31993a76
Merge pull request #60 from libp2p/release-v050
release v0.5.0
2022-07-03 09:30:46 -07:00
Marco Munizaga
fd40cdbc2d
Merge pull request #63 from libp2p/marco/docs-and-expose-allowlist
Add docs around WithAllowlistedMultiaddrs. Expose allowlist
2022-07-03 09:30:15 -07:00
Marco Munizaga
68b2dcdbf8
Update allowlist_test.go
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2022-07-03 09:27:18 -07:00
Marco Munizaga
65deaac7da Add docs around WithAllowlistedMultiaddrs. Expose allowlist 2022-07-03 07:52:09 -07:00
Marco Munizaga
b2c739f8ec
Merge pull request #62 from libp2p/fix-allowlist-marshalling
fix marshalling of allowlisted scopes
2022-07-03 07:24:05 -07:00
Marten Seemann
991d712456 fix marshalling of allowlisted scopes 2022-07-03 12:10:04 +02:00
Marten Seemann
620dd3a44a
release v0.5.0 2022-07-03 02:52:38 -07:00
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