neondatabase / neon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.
https://neon.tech
Apache License 2.0
13.65k stars 385 forks source link

Epic: Safekeepers simulation follow-ups #6391

Open petuhovskiy opened 6 months ago

petuhovskiy commented 6 months ago

Motivation

https://github.com/neondatabase/neon/pull/5804 should get merged soon. It has the first revision of simulation testing. This epic will contain possible ideas and follow-ups for it.

Implementation ideas

### Tasks
- [ ] try to reuse existing safekeeper parts more
- [ ] try to make `walproposer_sim` simpler
- [ ] run perf to find bottlenecks and speed up testing
- [x] reproduce and fix voting bug (https://gist.github.com/petuhovskiy/2230a8ec749cbee26d15640f1233c3e4)

Other related tasks and Epics

arssher commented 5 months ago

Post #5804 review, I think we need to (roughly in the order of priority):

petuhovskiy commented 4 weeks ago

Would be nice to run simulation tests with a real disk on a real filesystem.