Skip to content

Commit

Permalink
Increase tmpfs size for dumping Bisq blockchain data
Browse files Browse the repository at this point in the history
Currently, it requires about 5.2G of space.
Therefore, increase it to allow for future growth.
However, hopefully this becomes irrelevant soon
with the changes in bisq-network/mempool#13.
  • Loading branch information
runbtc committed Dec 8, 2024
1 parent 05fd5f6 commit bfbb419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seednode/bisq.service
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ExecStart=/bin/bash __BISQ_HOME__/__BISQ_REPO_NAME__/${BISQ_ENTRYPOINT} \
ExecStop=/bin/kill ${MAINPID} ; sleep 5
Restart=on-failure

ExecStartPre=+/bin/bash -c "if [ $BISQ_DUMP_BLOCKCHAIN = true ];then mkdir -p $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json && mount -t tmpfs none -o size=5000M,uid=bisq,gid=bisq $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json;else true;fi"
ExecStartPre=+/bin/bash -c "if [ $BISQ_DUMP_BLOCKCHAIN = true ];then mkdir -p $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json && mount -t tmpfs none -o size=8000M,uid=bisq,gid=bisq $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json;else true;fi"
ExecStopPost=+/bin/bash -c "if [ $BISQ_DUMP_BLOCKCHAIN = true ];then umount $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json;else true;fi"

User=bisq
Expand Down

0 comments on commit bfbb419

Please sign in to comment.