Mochimo mining farm manager
Mochimo Farm Manager aggregates statistics from your miner in a simple web interface
Mochimo is a quantum proof, scalable, ASIC-resistant POW cryptocurrency.
You can download the Mochimo miner from the official repository.
The nature of Mochimo blockchain (1 CPU = 1 Vote) requires to setup several miner through virtualization/dockerization in order to fully use the processing power of a multi-core CPU. An alternative solution is to setup multiple low resource host (usually rented through a cloud provider).
Whatever solution you choose, the end result will be multiple independent miners which makes monitoring very tedious.
Mochimo Farm Manager brings all your miner together in a simple web interface (both standard HTML and API). A large panel of monitoring features is available:
Tip: You don’t need to run the full Mochimo Farm Manager to compute Network Estimates and/or the Expected Time to Reward. Use the estimate
command.
java -jar mochimo-farm-manager-version.jar estimate --height 2423 --diff 38 --hps 200000
Height: 2423.0
Block Reward: 5.483720450999266 MCM
Difficulty: 38.0
Estimated Network HPS: 815,661,444.94
Mining HPS: 200,000.00
Contribution: 0.024519977159798145 %
Estimated Time to Reward: 15 days, 22 Hrs, 20 Minutes, 28 Seconds
Mochimo Farm Manager is performing an SSH connection to each miner in the farm on regular intervals. Once the connection is established, it will remotely execute several command to get the status of the miner (CPU load, running processes, etc) and will close the connection. There is no need to run it on the miner’s host, your day to day PC will do just fine.
This software is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by the Mochimo Foundation. All product and company names are the registered trademarks of their original owners. The use of any trade name or trademark is for identification and reference purposes only and does not imply any association with the trademark holder of their product brand.
root
./home/mysuer/mochi/bin
)chmod +x start.sh
./start.sh
on the miner’s host. This command will create a file name miner.log
that contains the output of the running miner. You will not be able to interact with the miner at this point but you can still monitor it by reading the content of miner.log
. Use the command tail -f -n100 miner.log
to read the log (it will update automatically when a new line is written)jar
mochimo-farm-manager-version.jar
is only available in the release package. If you clone the repository, you will need to build the jar
yourself with Mavenexample_mining_farm.json
:networkConsensus
: specify the method to compute the network consensusbx.mochimo.org
: uses https://bx.mochimo.org/ (this is the default method)farm
: average statistics from each minerminer MINER_ID
: use statistics from miner MINER_IDid
: unique ID of the minerhost
: ip and port for ssh connection. example: 192.168.1.2:22
user
: username for SSH connectionpassword
or privateKeyPath
: SSH authentication can be made with password or a path to private keystartCommand
: start command of the miner. Set the path to start.sh that you uploaded to the host in Part 1 stopCommand
: stop command of the miner. If not specified, a kill
command is sendlogCommand
: command to retrieve miner’s log. Edit the existing command by replacing /home/myuser/mochi/bin/miner.log
by the path to miner.log (there is two instance to replace)policy
: policy can be set for automatically restart the miner on specific events. A policy
is composed of triggers:maxLag LAG
: reboot the miner if the difference between its height and the network consensus height is greater or equal to LAGmaxDowntime AMOUNT
: start the miner if it has been down more than AMOUNT of time. AMOUNT can be seconds, minutes or hours (ex: 30s
, 5M
, 3H
)maxUptime AMOUNT
: reboot the miner after AMOUNT of time
Triggers can be combined to create a policy. For example -> `"policy":"maxLag 3, maxDowntime 1H, maxUptime 12H"`:
- Reboot if the height difference reaches 3
- Start if downtime reaches 1 hour
- Reboot if the uptime reaches 12 hours
Check the formatting of your config file in a [JSON validator](https://jsonlint.com/) (Remove sensitive information before doing so). A badly formatted config file will generate an error when starting the farm manager (`com.google.gson.JsonSyntaxException`)
java -jar mochimo-farm-manager-version.jar encrypt plain_text_config.json encrypted_config.json
java -jar [path to the mochimo farm manager jar] start [path to your config file] [path to the html folder]
java -jar "C:/Users/ortis/Downloads/mochimo-farm-manager-0.5/mochimo-farm-manager-0.5.jar" start "C:/Users/ortis/Downloads/mochimo-farm-manager-0.5/my_farm.json" "C:/Users/ortis/Downloads/mochimo-farm-manager-0.5/html"
There are several start option available. Make sure to check them out java -jar mochimo-farm-manager-version.jar start -h
Mochimo Farm Manager also provides a REST API:
cmd=start
, cmd=stop
, cmd=restart
Like the project ? Consider making a donation :)
MCM: mcmdonationaddr.dat in this repository
ETH & ERC-20: 0xaE247d13763395aD0B2BE574802B2E8B97074946
BTC: 18tJbEM2puwPBhTmbBkqKFzRdpwoq4Ja2a
BCH: 16b8T1LB3ViBUfePCMuRfZhUiZaV7tUxGn
LTC: Lgi89D1AmniNS8cxyQmXJhKm9SCXt8fQWC