create account

How to configure performance monitor for Testnet node by eluzgin

View this thread on: hive.blogpeakd.comecency.com
· @eluzgin ·
$0.10
How to configure performance monitor for Testnet node
Below instructions for installing Perl monitor script as a cronjob on Ubuntu server for EOS Testnet node:
We assume installation under /opt/monitor folder (if you use different folder - adjust accordingly).
Assuming Perl is installed in system (usually default for Ubuntu). Otherwise install Perl.
0. Start by cd /opt/monitor 
1.  wget https://raw.githubusercontent.com/EOSTribe/arrowhead/master/monitor.pl
2. chmod +x monitor.pl
3. Install Perl modules used by script (not installed by default):
cpan install LWP::UserAgent
cpan install Sys::Info
4. Try running it passing EOS node data-dir folder to test it works:
perl /opt/monitor/monitor.pl  /opt/arrowhead*
*) Substitute arrowhead for your path.
If everything is OK - you get no errors and script runs and exits with no output.
5) Install cronjob to run every 10 mins: 
crontab -e 
Add following line:
0,10,20,30,40,50 * * * *       perl /opt/monitor/monitor.pl  /opt/arrowhead

And you are done!
Besides reporting server stats to out report server, the script also checks if nodeos process is running and starts it if it stoped due to failure, etc.

I will make performance reports for all nodes available shortly.
👍  , , , , , , ,
properties (23)
authoreluzgin
permlinkhow-to-configure-performance-monitor-for-testnet-node
categoryeos
json_metadata{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["eos","testnet","monitor","performance"],"links":["https://raw.githubusercontent.com/EOSTribe/arrowhead/master/monitor.pl"]}
created2018-04-21 01:06:27
last_update2018-04-21 01:06:27
depth0
children4
last_payout2018-04-28 01:06:27
cashout_time1969-12-31 23:59:59
total_payout_value0.096 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,171
author_reputation48,344,025,750
root_title"How to configure performance monitor for Testnet node"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id51,218,122
net_rshares16,807,337,757
author_curate_reward""
vote details (8)
@bodget ·
Hi Eluzgin, ran it and it exited with no errors, but before I add it to cronjob how do I see the published output it is sending?
properties (22)
authorbodget
permlinkre-eluzgin-how-to-configure-performance-monitor-for-testnet-node-20180422t111938940z
categoryeos
json_metadata{"tags":["eos"],"community":"busy","app":"busy/2.4.0"}
created2018-04-22 11:19:15
last_update2018-04-22 11:19:15
depth1
children1
last_payout2018-04-29 11:19:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length128
author_reputation84,435,500,752
root_title"How to configure performance monitor for Testnet node"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id51,467,900
net_rshares0
@eluzgin · (edited)
GET http://eosslc.com:3000/bpstats/[your producer name]
properties (22)
authoreluzgin
permlinkre-bodget-re-eluzgin-how-to-configure-performance-monitor-for-testnet-node-20180423t051740972z
categoryeos
json_metadata{"tags":["eos"],"community":"busy","app":"busy/2.4.0"}
created2018-04-23 05:17:42
last_update2018-04-23 05:20:30
depth2
children0
last_payout2018-04-30 05:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation48,344,025,750
root_title"How to configure performance monitor for Testnet node"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id51,610,738
net_rshares0
@eluzgin ·
Let me add that you can verify that your data is being sent by calling REST endpoint:
GET http://eosslc.com:3000/bpstats/[your-producer-name]

For example: GET http://eosslc.com:3000/bpstats/constantine
[
    {
        "_id": "5adc68dab78e4a3e62607b1b",
        "producer": "constantine",
        "node_status": "running",
        "os_name": "Ubuntu Linux",
        "hostname": "rev-115",
        "external_ip": "209.41.67.115",
        "internal_ip": "209.41.67.115 ",
        "server_uptime": "26.72 days",
        "cpu_info": "16 x Intel(R) Xeon(R) CPU X5570  @ 2.93GHz",
        "cpu_speed": "2925.924 MHz",
        "cpu_count": "16",
        "cpu_load": "0.11",
        "ram_total": "64414",
        "ram_used": "3902",
        "ram_free": "38554",
        "ram_cache": "21958",
        "ram_available": "59248",
        "timestamp": "Sun Apr 22 04:50:02 2018",
        "__v": 0
    },
...
]
properties (22)
authoreluzgin
permlinkre-eluzgin-how-to-configure-performance-monitor-for-testnet-node-20180423t052011663z
categoryeos
json_metadata{"tags":["eos"],"community":"busy","app":"busy/2.4.0"}
created2018-04-23 05:20:15
last_update2018-04-23 05:20:15
depth1
children0
last_payout2018-04-30 05:20:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length897
author_reputation48,344,025,750
root_title"How to configure performance monitor for Testnet node"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id51,611,062
net_rshares0
@sf2 ·
$0.07
Nice work!
👍  ,
properties (23)
authorsf2
permlinkre-eluzgin-how-to-configure-performance-monitor-for-testnet-node-20180421t055241351z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2018-04-21 05:52:42
last_update2018-04-21 05:52:42
depth1
children0
last_payout2018-04-28 05:52:42
cashout_time1969-12-31 23:59:59
total_payout_value0.063 HBD
curator_payout_value0.007 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation514,366,813,598
root_title"How to configure performance monitor for Testnet node"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id51,250,477
net_rshares11,680,796,938
author_curate_reward""
vote details (2)