forked from thetinkeringtypist/verium-cli-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-diagram.txt
60 lines (49 loc) · 2.89 KB
/
example-diagram.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Example Setup Diagram
=====================
┌───────────────┐┌───────────────┐┌───────────────┐┌───────────────┐
│ Host #1 ││ Host #2 ││ Host #3 ││ Host #4 │
├───────────────┤├───────────────┤├───────────────┤├───────────────┤
│cpuminer (4048)││cpuminer (4048)││cpuminer (4048)││cpuminer (4049)│
├───────────────┤├───────────────┤├───────────────┤├───────────────┤
│cpuminer (4049)││cpuminer (4049)││ miner-apid.py ││ miner-apid.py │
├───────────────┤├───────────────┤└───────┬───────┘└───────┬───────┘
│ miner-apid.py ││ miner-apid.py │ │ │
└───────┬───────┘└───────┬───────┘ │ │
│ │ │ │
└────────────────┴─────────┬──────┴────────────────┘
│
┌────────┴───────┐
│ Network Switch │
└────────┬───────┘
│
│
│
┌────────┴───────┐
│ LAN Controller │
├────────────────┤
│ monitor.py │
├────────────────┤
│ .chosts │
└────────────────┘
Important Files and Changes by Host
===================================
Host #1:
miner-apid.py: no source changes
Host #2:
miner-apid.py: no source changes
Host #3:
miner-apid.py: ports = [4048]
Host #4:
miner-apid.py: ports = [4049]
LAN Controller:
#! .chosts is used by monitor.py. It has the list of hosts you wish to monitor
/home/<username>/.chosts:
host1
host2
host3
host4
#! /etc/hosts: This is only for a matter of convenience. Using IP addresses get old, fast.
192.168.1.1 host1
192.168.1.2 host2
192.168.1.3 host3
192.168.1.4 host4