powerloom / snapshotter-lite Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://powerloom.dev
License: Apache License 2.0
Home Page: https://powerloom.dev
License: Apache License 2.0
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
We have reported it to them, but we need an alternative. I propose we set up a proxy service to route requests.
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
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.