Giter Club home page Giter Club logo

snapshotter-lite's People

Contributors

anomit avatar getjiggy avatar muku314115 avatar swarooph avatar xadahiya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

snapshotter-lite's Issues

Node health monitoring and reporting

Is your feature request related to a problem?
The snapshotter-lite nodes currently require manual monitoring to discover any issues with the node.

Describe the solution you'd like
snapshotter-lite should keep an internal health state and report any issues to operators (using Telegram).

Describe alternatives you've considered
An alternative service could be used for reporting, such as Discord.

Additional context
None

Add docker restart to snappshotter lite

Is your feature request related to a problem?
Some of us use docker to run the node.
When power recycles (some of us live in countries where the outages/cuts are more regular than the sunshine) node doesn't function.
Until you go and see the dashboard/logs.

Describe the solution you'd like
When power recycles node restarts.

Additional context
Possible fix, (it works)
docker-compose.yaml
`version: '3.9'

services:
snapshotter-lite:
image: ghcr.io/powerloom/snapshotter-lite:${IMAGE_TAG}
volumes:
- ./logs:/logs
environment:
- SIGNER_ACCOUNT_ADDRESS=$SIGNER_ACCOUNT_ADDRESS
- SIGNER_ACCOUNT_PRIVATE_KEY=$SIGNER_ACCOUNT_PRIVATE_KEY
- SLOT_ID=$SLOT_ID
- RELAYER_HOST=$RELAYER_HOST
- SOURCE_RPC_URL=$SOURCE_RPC_URL
- PROST_RPC_URL=$PROST_RPC_URL
- IPFS_URL=$IPFS_URL
- IPFS_API_KEY=$IPFS_API_KEY
- IPFS_API_SECRET=$IPFS_API_SECRET
- PROTOCOL_STATE_CONTRACT=$PROTOCOL_STATE_CONTRACT
- SLACK_REPORTING_URL=$SLACK_REPORTING_URL
- POWERLOOM_REPORTING_URL=$POWERLOOM_REPORTING_URL
- WEB3_STORAGE_TOKEN=$WEB3_STORAGE_TOKEN
- NAMESPACE=$NAMESPACE
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8002/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
command:
bash -c "sh snapshotter_autofill.sh && sh init_docker.sh"
restart: unless-stopped
ipfs:
image: ipfs/kubo:release
profiles: ["ipfs"]
environment:
- IPFS_PROFILE=server
entrypoint: >
/bin/sh -c "
echo 'adding cronjob';
mkdir -p /var/spool/cron/crontabs;
croncmd="cd /data/ipfs && find . -type f -mtime +7 -name \"*.data\" | xargs rm -f 2>&1";
cronjob="0 * * * * $$croncmd";
( crontab -l | grep -v -F "$$croncmd" ; echo "$$cronjob" ) | crontab -;
echo 'starting ipfs';
/sbin/tini -- /usr/local/bin/start_ipfs daemon --migrate=true --agent-version-suffix=docker;
"
#command:
# ["daemon", "--migrate=true", "--agent-version-suffix=docker"]
restart: on-failure
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.