Commit ae0f152
feat: relay server missing features (#354)
* feat(relay-server): finish relay server implementation
- Start Prometheus monitoring server on configured monitoring_addr
- Handle relay swarm events: ReservationReqAccepted/Denied, ReservationTimedOut,
CircuitReqAccepted/Denied, CircuitClosed — with structured logging
- Track connection metrics (connection_total, active_connections) via RELAY_METRICS
on SwarmEvent::ConnectionEstablished and ConnectionClosed
- Log version, git hash, and build time on startup using pluto_core::version
- Make RelayMetrics fields public; add PeerWithPeerClusterLabels::new() constructor
- Remove #[allow(missing_docs)] from p2p.rs; add module doc comment
- Add vise-exporter to regular (non-dev) dependencies
- Update serve_addr_metrics test: remove #[ignore], test monitoring endpoint,
check for prometheus output
Closes #129
Co-authored-by: Bohdan Ohorodnii <varex83@users.noreply.github.com>
* fix(relay-server): fix compilation and formatting errors in p2p.rs
- Dereference LazyLock for VERSION in tracing macro: %*VERSION
- Use inc_by(1)/dec_by(1) instead of inc()/dec() on vise::Gauge
- Add .. to ReservationReqDenied and CircuitReqDenied patterns for missing status field
- Merge pluto_p2p imports and reorder metrics imports alphabetically
- Reformat ListenerClosed, ReservationReqAccepted, ReservationReqDenied match arms per rustfmt
Co-authored-by: Bohdan Ohorodnii <varex83@users.noreply.github.com>
* chore: merge main (feat: add bootnode.rs #262)
Manually merges changes from main branch commit e41e6d9:
- Add crates/p2p/src/bootnode.rs and crates/p2p/src/relay.rs
- Add crates/p2p/examples/bootnode.rs
- Update p2p peer.rs: add Default for MutablePeer, addr_infos_from_p2p_addrs
- Update p2p gater.rs: remove Arc wrapper from relay peers
- Update p2p utils.rs: add multi_addrs_via_relay helper
- Update p2p lib.rs: export bootnode and relay modules
- Update p2p Cargo.toml: add backon, reqwest, url deps
- Fix crypto share indexing: use 1-indexed keys throughout
- Remove MathError enum, replace with direct DivisionByZero variant
- Fix cluster test_cluster.rs: use 1-indexed share lookup
- Fix app obolapi: add FailedToConvertShareIndexToU8/MathOverflow errors
- Add app/src/utils.rs with archive helpers
- Add core/src/parasigdb/memory.rs
- Update Cargo.toml and Cargo.lock with flate2, tar deps
- Update relay_server example: simplify TCP addr, add docblock
Co-authored-by: Bohdan Ohorodnii <varex83@users.noreply.github.com>
* chore: merge main (feat(core): implement signeddata #273)
Manual merge of 4e68ef9 into this branch (shallow clone prevents git merge).
- Add crates/core/src/signeddata.rs and signeddata testdata
- Add pub mod signeddata to crates/core/src/lib.rs
- Update crates/core/Cargo.toml with signeddata deps
- Update crates/crypto/Cargo.toml: remove pluto-core dep (avoids cycle)
- Update crates/crypto/src/tblsconv.rs: remove core conversions (avoids cycle)
- Add/update crates/eth2api/ spec types for signeddata
- Add/update crates/eth2util/src/types.rs
- Update Cargo.lock
Co-authored-by: Lautaro Emanuel <emlautarom1@users.noreply.github.com>
* fixed compilation and clippy
* review
* retry_get helper for unit tests
* better assertions in the serve_addr_metrics test
* removed unsed ssz_types.rs
* move back multi_addrs_via_relay
* Bandwidth metric for the p2p relay server
* Unit tests for bandwidth metric
* Comments added
* fixed clippy
* moved metrics into RelayMetrics
* review comments
---------
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Bohdan Ohorodnii <varex83@users.noreply.github.com>
Co-authored-by: Lautaro Emanuel <emlautarom1@users.noreply.github.com>1 parent de45a05 commit ae0f152
15 files changed
Lines changed: 763 additions & 95 deletions
File tree
- crates
- cli/src/commands
- dkg/src
- bcast
- p2p
- src
- relay-server
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
420 | 427 | | |
421 | | - | |
422 | | - | |
423 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
424 | 433 | | |
425 | 434 | | |
426 | | - | |
427 | | - | |
428 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
429 | 441 | | |
430 | 442 | | |
431 | 443 | | |
| |||
523 | 535 | | |
524 | 536 | | |
525 | 537 | | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
| 538 | + | |
| 539 | + | |
531 | 540 | | |
| 541 | + | |
| 542 | + | |
532 | 543 | | |
533 | 544 | | |
534 | 545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| 704 | + | |
704 | 705 | | |
705 | 706 | | |
706 | 707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
437 | 438 | | |
438 | 439 | | |
439 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
573 | 574 | | |
574 | 575 | | |
575 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments