Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2psim: Enhance p2psim for DHT benchmarks #643

Merged
merged 8 commits into from
Dec 26, 2024

Conversation

sonhv0212
Copy link
Contributor

@sonhv0212 sonhv0212 commented Dec 11, 2024

Enhances the p2p simulation server to facilitate benchmarking of the discovery process in DHT. Key updates include:

  • Exposing APIs for improved control and observability during simulation.
  • Adding configurable parameters for simulation nodes (inproc) to support benchmarking scenarios.
  • Implementing a new benchmark strategy to measure the impact of applying ENR filtering and increasing the DHT bucket size.

@sonhv0212 sonhv0212 force-pushed the feat/dht-bucket-size branch 8 times, most recently from ab39089 to dc2410b Compare December 16, 2024 06:26
@sonhv0212 sonhv0212 force-pushed the feat/dht-bucket-size branch 3 times, most recently from 7ad48b5 to 3976246 Compare December 22, 2024 15:02
@sonhv0212 sonhv0212 changed the title p2p: add flag to config bucket size of DHT p2p: Allow to config bucket size of DHT and enhance p2p simulation server Dec 22, 2024
@sonhv0212 sonhv0212 force-pushed the feat/dht-bucket-size branch from 3976246 to e10a78d Compare December 23, 2024 10:03
@sonhv0212 sonhv0212 changed the title p2p: Allow to config bucket size of DHT and enhance p2p simulation server p2psim: Enhance p2psim for DHT benchmarks Dec 23, 2024
This commit enhances the p2p simulation server to facilitate benchmarking of the discovery process in DHT. Key updates include:
- Exposing APIs for improved control and observability during simulation.
- Adding configurable parameters for simulation nodes (inproc) to support benchmarking scenarios.
- Implementing a new benchmark strategy to measure the impact of applying ENR filtering and increasing the DHT bucket size.
@sonhv0212 sonhv0212 force-pushed the feat/dht-bucket-size branch from e10a78d to f22279e Compare December 23, 2024 10:32
@huyngopt1994
Copy link
Collaborator

huyngopt1994 commented Dec 24, 2024

@sonhv0212 Could u update how to run inside examples folder as same with ping-pong service examples ? or I think u can move discovery folder inside examples too, and move ping-pong to subfolder call ping-pong ?

@sonhv0212
Copy link
Contributor Author

@sonhv0212 Could u update how to run inside examples folder as same with ping-pong service examples ? or I think u can move discovery folder inside examples too, and move ping-pong to subfolder call ping-pong ?

I moved ping-pong and discovery to the examples folder


"github.com/ethereum/go-ethereum/core/forkid"
"github.com/ethereum/go-ethereum/event"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update inproc_test for adapting the new changes.

cmd/p2psim/main.go Outdated Show resolved Hide resolved
cmd/p2psim/main.go Show resolved Hide resolved
cmd/p2psim/main.go Outdated Show resolved Hide resolved
cmd/p2psim/main.go Show resolved Hide resolved
cmd/p2psim/main.go Outdated Show resolved Hide resolved
cmd/p2psim/main.go Outdated Show resolved Hide resolved
@sonhv0212 sonhv0212 force-pushed the feat/dht-bucket-size branch from 86ba22f to 455e285 Compare December 25, 2024 03:46
@sonhv0212 sonhv0212 force-pushed the feat/dht-bucket-size branch from fb68f6f to 32a59ce Compare December 25, 2024 06:14
@huyngopt1994
Copy link
Collaborator

Seem good for me.

@huyngopt1994 huyngopt1994 merged commit e7d6875 into axieinfinity:master Dec 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants