Some people may have multiple servers to run the farm. Let me teach you how to deploy them.
The first is the configuration issue:
If it is a node, then the configuration of 2h4g can be used.
environment:
The operating environment mainly requires a 1000M router. If it is too low, it may cause instability in the farm.
method:
First, when starting the node, add the following parameters:
--rpc-port 9944
--rpc-max-connections <COUNT>
--rpc-methods unsafe
--rpc-external
--rpc-cors all
--no-private-ipv4
Among them, rpc-port represents the default port. If you have a public IP, I recommend you change it. --rpc-max-connections represents the number of connections. If you have many farms, I recommend you increase it.
Here are my node startup parameters, just like this to enable external access:
windows:
.\subspace-node-windows-x86_64-skylake-gemini-3f-2023-sep-05.exe `
--chain gemini-3f `
--execution wasm `
--blocks-pruning 256 `
--state-pruning archive `
--validator `
--name "node" `
--in-peers 200 `
--out-peers 200 `
--rpc-max-connections 2000 `
--rpc-methods unsafe `
--rpc-external `
--rpc-cors all `
--no-private-ipv4 `
--rpc-port 9944
Linux:
./subspace-node-ubuntu-x86_64-skylake-gemini-3f-2023-sep-11 \
--chain gemini-3f \
--execution wasm \
--blocks-pruning 256 \
--state-pruning archive \
--validator \
--name "node" \
--in-peers 100 \
--out-peers 100 \
--rpc-methods unsafe \
--rpc-external \
--rpc-cors all \
--no-private-ipv4 \
--rpc-port 9944
After this, your node should be accessible from the outside, including your LAN
How to access the farm subsequently? You only need to add the following parameters
–node-rpc-url=ws://192.168.1.1:9944
You need to replace the IP address with your own,
demonstration:
.\subspace-farmer-windows-x86_64-skylake-gemini-3f-2023-sep-05.exe farm --reward-address st**************** --node-rpc-url =ws://192.168.1.1:9944 path=P:\1,size=1.75TB
Remember to replace st****************** with your own wallet address