Update README with notes on running 2 siad nodes

This commit is contained in:
Marcin Jachymiak 2020-03-03 10:24:51 -05:00
parent ac9dfc5d9c
commit 5b390cda9d
1 changed files with 18 additions and 0 deletions

View File

@ -55,10 +55,28 @@ done so.
To enable the service: `systemctl --user enable siad.service` To enable the service: `systemctl --user enable siad.service`
### Running 2 siad instances
In some cases, portal operators may want to run 2 `siad` nodes on the same
server. One node to prioritize downloads and one to prioritze uploads The
scripts here also do the initial setup for a 2nd `siad` instance running as a
systemd service `siad-upload.service` in the `~/siad-upload/` directory with
environment variables in `sia-upload.env`. You must fill out the correct values
for those environment variables.
The `bashrc` file in this repository also provides an alias `siac-upload` that
loads the correct environment variables and sets the correct ports to interact
with the 2nd `siad` node.
`siac` is used to operate node 1, and `siac-upload` is used to operate node 2.
To enable the 2nd service: `systemctl --user enable siad-upload.service`
### Useful Commands ### Useful Commands
To start the service: `systemctl --user start siad` To start the service: `systemctl --user start siad`
To stop it: `systemctl --user stop siad` To stop it: `systemctl --user stop siad`
To check the status of it: `systemctl --user status siad` To check the status of it: `systemctl --user status siad`
To check standard err/standard out: `journalctl --user-unit siad` To check standard err/standard out: `journalctl --user-unit siad`