Commit Graph

187 Commits

Author SHA1 Message Date
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
Marten Seemann
1910cf41b7 include the resource stat in the debug output 2022-06-19 10:17:47 +02:00
Marco Munizaga
a41033230f Persist endpoint 2022-06-15 15:25:40 -07:00
Marco Munizaga
dc09a97d9b Fix allowlist system instantiation 2022-06-15 15:22:01 -07:00
Marco Munizaga
539b1476fc Use the same standard limits for the allowlistedSystem and allowlistedTransient 2022-06-14 11:48:56 -07:00
Marco Munizaga
84ca9d337a PR comments 2022-06-14 11:46:26 -07:00
Marco Munizaga
297cd00321 Fix comment 2022-06-13 16:39:00 -07:00
Marco Munizaga
7ecf0fc714 Cleanup 2022-06-13 16:33:37 -07:00
Marco Munizaga
78498fbd88 Add comment 2022-06-13 16:29:28 -07:00
Marco Munizaga
23ec39d74e Simplify by removing ip addr, only networks. Adds a benchmark 2022-06-13 16:26:59 -07:00
Marco Munizaga
1fcd41c418 Add allowlist to rcmgr 2022-06-09 22:36:17 -07:00
Marco Munizaga
dd0cde1cfd Add allowlist impl
Accepts multiaddrs that define who is allowed.
2022-06-09 22:36:17 -07:00
Marco Munizaga
ee3cc3b811 Add design doc 2022-06-08 15:55:11 -07:00
Marten Seemann
6bdbf3adb5 include the current limits in memory allocation errors 2022-06-06 13:30:03 +02:00
Marten Seemann
069f2c2f6e include the current limits in conn allocation errors 2022-06-06 13:21:03 +02:00
Marten Seemann
2855d5b5e2 include the current limits in stream allocation errors 2022-06-06 13:20:18 +02:00
Marten Seemann
89b666f703
add a DefaultLimitConfig with infinite limits (#41)
This is useful when recording a trace to observe the baseline resource
consumption.
2022-06-06 02:56:08 -07:00
Marten Seemann
5224eb6ad6
export the TraceEvt (#40) 2022-06-04 06:43:35 -07:00
Marten Seemann
4316554cd3
trace exact timestamps (#39)
RFC3339 only exports up to second granularity, which is not enough for a
detailed analysis.
2022-06-04 06:43:23 -07:00
Marten Seemann
5874c5f23a
skip events that don't change anything in tracer (#38)
This happens when empty sub-scopes are moved around between scopes.
2022-06-04 04:20:07 -07:00
Marten Seemann
43054380a8 fix typos in MetricsReporter docs 2022-06-03 19:24:07 +02:00
Marten Seemann
100309ee2e
fix shadowing of service name (#37) 2022-06-03 13:42:58 +02:00
Marten Seemann
50387915ba
add a timestamp to trace events (#34) 2022-06-01 07:08:25 -07:00
Gus Eggert
2e798e3cc5
release v0.3.0 (#23) 2022-04-21 15:05:08 -04:00
vyzo
3690eb4923
Merge pull request #21 from libp2p/feat/export-limiter-config
feat: export basic limiter config
2022-04-21 19:43:50 +03:00
Gus Eggert
302a7ea468
feat: export basic limiter config
This is to avoid extra complexity in consumers that expose this config
to users through other means or want to build the config
programmatically, but are currently required to redefine these structs
and keep them in sync. The coupling is already there, we might as well
export these structs and reduce maintenance costs.
2022-04-21 12:14:27 -04:00
vyzo
573ebeb147
Merge pull request #20 from libp2p/fix/config-err-msgs
fix: typos in config err msgs
2022-04-21 10:52:25 +03:00
Gus Eggert
9c55f3b55f
fix: typos in config err msgs 2022-04-19 06:55:40 -04:00
Marten Seemann
4682d9196b
release v0.2.1 2022-04-19 02:27:31 -07:00
Gus Eggert
bd73ae3052
fix: decode peer IDs from limits.json (#19) 2022-04-18 16:19:21 -04:00
Marten Seemann
c57f8eff05
release v0.2.0 (#18) 2022-04-10 11:37:41 -07:00