Chia multi-machine cluster mining tutorial

Chia multi-machine cluster mining tutorial

Summary: Chia allows multiple miners to connect to a single full node wallet to mine, without having to run a complete heavy wallet on each machine. This model can make your overall farm faster and more efficient

Chia allows you to run only one harvester program on each mining machine to connect to a centralized full node wallet (heavy wallet full node) for mining, without having to run a complete heavy wallet on each machine. Using this mode can make your system simpler, use less bandwidth, space, CPU, and make your wallet key more secure. The full node wallet can connect to more other wallet nodes through UPNP or manual NAT pointing (port 8444) to the external network. When mining, it will make your overall farm faster and more efficient.

The architecture of the entire farm (mining farm) consists of a host running a full node wallet (heavy wallet full node) and other machines that only run harvesters. Among them, only your full node wallet host will be connected to the Chia network, and other mining machines running harvesters only need to connect to your full node wallet.

In order to ensure the security of communication between your harvester and the host, TLS encryption technology is used, and the full node wallet host will be a private certification authority (CA) that signs all certificates. Each harvester must have its own signed certificate in order to communicate normally with your full node wallet.

The installation tutorial of the full node wallet is not described in this article. If you need a tutorial in this area, you can refer to the article "Chia Mining Tutorial"

1. First, you need to copy the harvester-related programs from the full-node wallet installation directory. The path of the chia wallet usually installed under Windows is %LocalAppData%\chia-blockchain, where we need to copy the entire %LocalAppData%\chia-blockchain\app-1.0.1\resources\app.asar.unpacked\daemon folder to the USB drive (Note: app-1.0.1 is the version number of chia you are currently installing. You need to modify the path for different versions)

2. Copy the CA certificate in the full node wallet configuration directory (%USERPROFILE%\.chia\mainnet\config\ssl\ca folder) to the USB drive

Figure 1

3. Copy the daemon and ca folders in the U disk to the C drive of the harvester.

4. Execute the c:\daemon\chia.exe init command to initialize, and then execute the c:\daemon\chia.exe init -c c:\ca command to authorize the CA certificate. This will authorize unique communication certificates for different harvesters to ensure the security of communication between the harvester and the full-node wallet.

Figure 2

5. Execute the command c:\daemon\chia.exe configure --set-farmer-peer 192.168.88.181:8447 to configure the IP address of the full-node wallet host for the harvester. 192.168.88.181 needs to be changed to the actual IP address of your full-node wallet. Of course, you can also modify the harvester->farmer_peer->host parameter in the %USERPROFILE%\.chia\mainnet\config\config.yaml configuration file (the format of the configuration file may be slightly different in different versions, please look carefully) See the figure below for details

Figure 4

Figure 5

6. Execute the command c:\daemon\chia.exe plots add -d D:\plots\ to add the directory D:\plots\ where the farmland files are located. If there are multiple hard disk paths, you can modify D:\plots\ according to the actual situation of your mining machine and run this command multiple times.

Figure 6

7. Execute the start c:\daemon\chia.exe start harvester command to start the harvester program

Figure 3

8. For other harvesters, just repeat steps 2-7 above.

9. If you need to restart or shut down the harvester program, you can execute the c:\daemon\chia.exe stop harvester command, or execute the c:\daemon\chia.exe stop all -d command to shut down all chia-related programs running on this harvester.

Notice:

1. Open UPNP or manual NAT pointing (port 8444) on your router to ensure that the external network can be accessed normally, so that the full node wallet can connect to more other chia nodes

2. You need to ensure that port 8447 of the full-node wallet can be accessed normally by other machines (Windows Firewall needs to open this port)

3. Do not copy the entire config/ssl folder of the full node wallet to each harvester. This may cause unexpected errors and is very unsafe. Each harvester can only obtain different authorizations through the command in step 4.

4. In the current version, the operation status of the harvester cannot be viewed on the full-network node wallet interface, but you can close the full-node wallet first, then set your log level to info in config.yaml, and then restart the full-node wallet. In this way, you can check whether there is the following message in the %USERPROFILE%\.chia\mainnet\log\debug.log log:

 [time stamp] farmer farmer_server : INFO -> new_signage_point to peer [harvester IP address] [peer id - 64 char hexadecimal]
 [time stamp] farmer farmer_server : INFO <- new_proof_of_space from peer [peer id - 64 char hexadecimal] [harvester IP address]

The new_signage_point message indicates that the farm module of the node wallet has issued a mining task to your harvester. The new_proof_of_space message indicates that the harvester has found a valid proof. You will receive many new_signage_point messages, but new_proof_of_space messages may not be multiple.

<<:  What is the Chia coin mining halving plan?

>>:  Why to mine Chia coin?

Recommend

Son's success depends on his mother's face

Son's success depends on his mother's fac...

How to judge future career development through palmistry career line

A clear and deep career line on the palm represen...

Fortune Palace

The origin of physiognomy is inseparable from the...

Check out the palmistry characteristics that may lead to cheating

Cheating. Although many people now think that the...

China declares it has entered the post-Bitcoin era

While many media and financial experts have point...

Don't marry a woman with an ugly face

As the saying goes, men are afraid of choosing th...

Bitcoin is aiming for $19,000, but mining machines seem to be insufficient

Content Overview: 1. At the time of writing, acco...

What does a woman's crooked mouth mean for her bad old age?

The mouth is one of the most important facial fea...

What kind of eyebrow shape is most suitable for a prosperous husband?

What kind of eyebrow shape is most suitable for a...

What does a broken wisdom line mean in palmistry?

What does a broken wisdom line mean in palmistry?...

A woman who trusts her husband and won't be suspicious

When two people cannot establish a trusting relat...

Without any planning, these faces spend money like water

There will be many unexpected things in life, and...

The 2.8 billion CKB that will be unlocked in May, is this a selling pressure?

Introduction: Unlock Round 2 team Private placeme...