Giter Club home page Giter Club logo

node-management's Introduction

Install

git clone https://github.com/bcdevtools/node-management
cd node-management
make install

Node setup check

  • Validator node
  • RPC node
  • Snapshot node
  • Archival node
nmngd node setup-check ~/.node_home --type validator/rpc/snapshot/archival

Node management

nmngd node extract-addrbook ~/.node_home_source/config/addrbook.json ~/.node_home_dst/config/addrbook.json [--last-success-threshold 48h]
nmngd node prune-addrbook ~/.node_home/config/addrbook.json
nmngd node prune-data ~/.node_home --binary xxxd [--backup-pvs ~/priv_validator_state.json.backup]
nmngd node state-sync ~/.node_home --binary xxxd --rpc http://localhost:26657 [--address-book /home/x/.node/config/addrbook.json] [--peers [email protected]:26656] [--seeds [email protected]:26656] [--max-duration 12h]
nmngd node dump-snapshot ~/.node_home --binary xxxd [--max-duration 1h] [--no-service] [--service-name xxx] [--external-rpc https://rpc1.example.com:443 --external-rpc https://rpc2.example.com:443] [--fix-genesis]
nmngd node zip-snapshot ~/.node_home

For validator node

nmngd node auto-backup-priv-validator-state-json ~/.node_home --binary xxxd
# generate setup for auto-backup-pvs
nmngd node auto-backup-priv-validator-state-json ~/.node_home --binary xxxd --gen-setup

Run web server

nmngd start-web ~/.rpc-gaia \
  --port 8080 \
  --authorization-token "X" \
  --chain-name "Cosmos Hub" \
  --chain-description "Multi-lines describes the chain\nand its features" \
  --chain-id cosmoshub-4 \
  --g-binary-name gaid \
  --g-node-home-name .gaia \
  --snapshot-file /snapshot/cosmos-mainnet/snapshot.tar.lz \
  --snapshot-download-url https://cosmos.m.valoper.io/snapshot/snapshot.tar.lz \
  --exr-rpc-url https://rpc1.cosmos.m.valoper.io \
  --exr-rest-url https://rest1.cosmos.m.valoper.io \
  --exr-favicon-url https://cosmos.m.valoper.io/favicon.ico \
  --exr-logo-url https://cosmos.m.valoper.io/logo.png \
  --monitor-disks /mount/data1 --monitor-disks /mount/data2

Generate start command:

nmngd gen-start-web

Nginx config generator

nmngd gen-nginx \
  --rpc rpc.mychain.testnet.example.com \
  --rest rest.mychain.testnet.example.com \
  --jsonrpc jsonrpc.mychain.testnet.example.com \
  --web mychain.testnet.example.com \
  [--rpc-port 26657] \
  [--rest-port 1317] \
  [--jsonrpc-port 8545] \
  [--web-port 8080]

Generate SSH keys

nmngd keys add-snapshot-upload-ssh-key
# nmngd keys ss

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.