Ethereum Development Document 04-Network status Monitoring

Source: Internet
Author: User
Tags json git clone
Network Status Monitoring

Ethereum (centralised) network status monitor (sometimes referred to as "Eth-netstats") is a network-based application that monitors the health of testnet/mainnet through a set of nodes. Checklist

To list your nodes, you must install the client information relay, a node module. The instructions given here work on Ubuntu (Mac OS x follows the same instructions, but sudo may not be necessary). Other platforms are also different (make sure that nodejs-legacy is also installed, otherwise some modules may fail).

Clone the Git repository and install PM2:

git clone https://github.com/cubedro/eth-net-intelligence-api
CD eth-net-intelligence-api
npm install
sudo npm install-g pm2

Then edit the App.json file to configure it for your node: Change the permissions on the Listening_port ethereum listening port (default: 30303) change instance_name you want to name your node right, contact_ Details if you would like to share your contact information, please change the value to the right of the RPC port of the Rpc_port your node (the default is 8545 for CPP and go); and change the Ws_secret password right (you will have to go from the official Skype channel).

Finally run the process:

PM2 Start App.json

Several commands are available: PM2 list shows the status of the process; PM2 logs display log; PM2 gracefulreload Node-app for soft re-loading; PM2 Stop Node-app stops the application; PM2 kill kill Daemon update

In order to update you must do the following: Git pull latest version sudo npm update dependency PM2 gracefulreload node-app Reload client automatically installed on new Ubuntu installation

Get and run the build shell. This will install everything you need: The latest Ethereum-development branch of the CLI (you can choose ETH or Geth), NODE.JS,NPM and PM2.

Bash < (Curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/master/bin/build.sh)
Configuration

Configure the application to modify Processes.json. Note that you must modify the backup Processes.json file that is located in./bin/processes.json (to allow you to set your environment variables when the update is not changed).

"env":
    {
        "node_env"        : "Production",//Tell the client we ' re in production environment
        "Rpc_host"        : "localhost",//ETH JSON-RPC host the default is 8545
        "Rpc_port"        : "8545",//ETH json-rpc PORT
        "Listening_por T "  :" 30303 ",//ETH listening port (only used for display)
        " instance_name "   :" ",//whatever you wish to Nam E your node
        "contact_details": "",//Add your contact DETAILS here if you wish (Email/skype)
        "Ws_server"       : "Wss://stats.ethdev.com",//path to Eth-netstats WebSockets API server
        "Ws_secret"       : "",//WebSockets API SE RVer Secret used for login
    }
Run

Run it with PM2:

CD ~/bin
pm2 start Processes.json

Ethereum (ETH or Geth) must be running with RPC enabled.

Geth--RPC

The default port under Geth (if not specified) is the 8545 update

To update your API client, use the following command:

~/bin/www/bin/update.sh

It will stop the current netstats client process, automatically detect your Ethereum implementation and version, update it to the latest development version, update the Netstats client, and reload the process.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.