hyperweb-io / hyperweb-io/starship

feature: collector service to store various files

Open
#29 0 comments 1 reaction 0 assignees View on GitHub
nice to have
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.