hyperweb-io / hyperweb-io/starship
feature: collector service to store various files
- Dominant language
- TypeScript
- Stars
- 77
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
## Overview
Currently there is no way for the container to stop and an export or a snapshot taken. Ideally before the pods die or on call, the there should be hooks on the containers that will backup various information about the validator into a central file service called `collector`.]
Local debugging and testing can then query `collector` to fetch a validators
* Exported state at a height
* Snapshot of the `data/` directory before the system stops (ideally we could be taking a backup of the whole `~/.` directory)
## Usecase
* When a pod is dying, `prestop` lifecycle hook of the pod should take a snapshot and store it
* When a user triggers a `export` command (somehow), then the chain is stopped, a snapshot taken and the chain restarted (this will be tricky)
### Alternatives
Ideally this information would be stored in blob storage instead of a file service. But since shuttle is not tied to a cloud provider, it might make sense to have a inbuilt service. For testing purpose this should not matter too much, although for production usecase `collector` needs to interact with a blob storage.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.