Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update seednode config to increase resource limits for v1.2 #3545

Merged
merged 2 commits into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion seednode/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Bisq Seed Node

The distribution ships with a systemd .desktop file. Validate/change the executable/config paths within the shipped `bisq-seednode.service` file and copy/move the file to your systemd directory (something along `/usr/lib/systemd/system/`). Now you can control your *Seed Node* via the usual systemd start/stop commands
* Install bisq-seednode.service in /etc/systemd/system
* Install bisq-seednode in /etc/default
* Modify the executable paths and configuration as necessary
* Then you can do:

```
systemctl start bisq-seednode.service
Expand Down
24 changes: 24 additions & 0 deletions seednode/bisq-seednode
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# env for bisq-seednode service
# install in /etc/default/bisq-seednode

# java home, set to openjdk 10
JAVA_HOME=/usr/lib/jvm/openjdk-10.0.2

# java memory and remote management options
JAVA_OPTS="-Xms8192M -Xmx8192M -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.host=127.0.0.1 -Dcom.sun.management.jmxremote.port=6969 -Dcom.sun.management.jmxremote.rmi.port=6969 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

# bitcoin rpc credentials
BITCOIN_RPC_USERNAME=foo
BITCOIN_RPC_PASSWORD=bar

# bitcoind rpc ports
BITCOIN_RPC_PORT=8332
BITCOIN_RPC_BLOCKNOTIFY_PORT=5120

# bisq seednode settings
BISQ_APP_NAME=bisq-seednode
BISQ_DATA_DIR=/home/bisq/
BISQ_NODE_PORT=8000
BISQ_MAX_CONNECTIONS=50
BISQ_MAX_MEMORY=8000
BISQ_BASE_CURRENCY=BTC_MAINNET
13 changes: 11 additions & 2 deletions seednode/bisq-seednode.service
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
# install in /etc/systemd/system/bisq-seednode.service

[Unit]
Description=Bisq Seed Node
After=network.target

[Service]
Environment="JAVA_OPTS=-Xms800M -Xmx800M"
ExecStart=/home/bisq/bisq/bisq-seednode --appName=seed_BTC_MAINNET --nodePort=8000 --userDataDir=/home/bisq/ --maxConnections=50 --baseCurrencyNetwork=BTC_MAINNET
EnvironmentFile=/etc/default/bisq-seednode
ExecStart=/home/bisq/bisq/bisq-seednode --appName=${BISQ_APP_NAME} --nodePort=${BISQ_NODE_PORT} --userDataDir=${BISQ_DATA_DIR} --maxConnections=${BISQ_MAX_CONNECTIONS} --maxMemory=${BISQ_MAX_MEMORY} --fullDaoNode=true --rpcUser=${BITCOIN_RPC_USERNAME} --rpcPassword=${BITCOIN_RPC_PASSWORD} --rpcPort=${BITCOIN_RPC_PORT} --rpcBlockNotificationPort=${BITCOIN_RPC_BLOCKNOTIFY_PORT} --baseCurrencyNetwork=${BISQ_BASE_CURRENCY}
ExecStop=/bin/kill -TERM ${MAINPID}
Restart=on-failure

User=bisq
Group=bisq

PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
MemoryDenyWriteExecute=false

[Install]
WantedBy=multi-user.target