Skip to content

Comments

feat(p2p): add distributor package configuration and metrics#474

Open
slin1237 wants to merge 2 commits intomainfrom
feature/p2p-model-distribution-n/2
Open

feat(p2p): add distributor package configuration and metrics#474
slin1237 wants to merge 2 commits intomainfrom
feature/p2p-model-distribution-n/2

Conversation

@slin1237
Copy link
Collaborator

Introduce the P2P distributor package with:

  • Config struct with validation and defaults
  • ConfigFromEnv for environment-based configuration
  • Comprehensive Prometheus metrics for P2P operations
      - Download metrics (total, duration, failures)
      - Peer discovery and connection metrics
      - Lease and seeding metrics
      - Metainfo server metrics

Add BitTorrent library dependency (anacrolix/torrent) and define
constants for P2P model distribution:
- Lease coordination constants (prefix, labels, durations)
- Default configuration values (ports, rates, timeouts)
- Environment variable keys for P2P configuration
Introduce the P2P distributor package with:
- Config struct with validation and defaults
- ConfigFromEnv for environment-based configuration
- Comprehensive Prometheus metrics for P2P operations
  - Download metrics (total, duration, failures)
  - Peer discovery and connection metrics
  - Lease and seeding metrics
  - Metainfo server metrics
@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions bot added the dependencies Dependency updates label Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant