-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update seednode config to increase resource limits for v1.2 (#3545)
* Update seednode systemd service, move env vars to separate file * Update seednode README
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |