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

chore (postgres): Establish a testing environment and tooling to measure Store performance #1894

Closed
2 tasks done
Tracked by #1888
Ivansete-status opened this issue Aug 8, 2023 · 1 comment · Fixed by waku-org/test-waku-query#4
Assignees
Labels
E:PostgreSQL See https://github.com/waku-org/pm/issues/84 for details

Comments

@Ivansete-status
Copy link
Collaborator

Ivansete-status commented Aug 8, 2023

Background

nwaku & postgres can work together when nwaku has the store protocol mounted.
In order to optimize the interaction with Postgres, we first need to have a testing tooling.

Details

Create a test project that can query a "store" node and analyze its performance.

Acceptance criteria

Have the initial test project with the essential stress test set. Of course, this project will grow over time.

  • Creation of the base test project
  • Test case: one single user publishes 1000 messages. All the messages should be stored properly.
    - [ ] Test case: 100 users publish 100 messages each, concurrently and each user sends 1 msg/sec. All the messages should be stored properly. Edited: that use case can't be implemented to validate Store performance because messages are dropped due to the Relay protocol (GossipSub nim-libp2p) not being able to support that high rate. For example, having 30 concurrent users publishing 300 messages concurrently will imply that a couple of messages can get lost. If we increase the number of users, then more messages can get lost.
@Ivansete-status
Copy link
Collaborator Author

@richard-ramos created the next project which is the starting point for the next stress tests to come:
https://github.com/waku-org/test-waku-query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E:PostgreSQL See https://github.com/waku-org/pm/issues/84 for details
Projects
Archived in project
3 participants