Rate limit extract to hopefully prevent power issues during extreme disk RW

This commit is contained in:
Taylor Helsper 2019-08-07 20:46:58 -05:00
parent cc5e64a2c1
commit eb468dc823
4 changed files with 9 additions and 4 deletions

View File

@ -22,6 +22,7 @@ ufw allow 3004 comment 'allow LND Admin'
ufw allow 3010 comment 'allow RTL'
ufw allow 50001 comment 'allow Electrum Server'
ufw allow 50002 comment 'allow Electrum Server'
ufw allow 50194 comment 'VPN Access'
ufw allow 56881 comment 'allow myNode QuickSync'
ufw allow 51413 comment 'allow myNode QuickSync'
ufw allow 6771 comment 'allow myNode QuickSync (LPD)'

View File

@ -11,10 +11,11 @@ systemctl stop electrs
systemctl stop quicksync
# Install any new software
# apt-get -y install ...
apt -y install pv
# Install any pip software
# ...
pip install tzupdate
# Upgrade BTC
ARCH="arm-linux-gnueabihf"

View File

@ -17,7 +17,8 @@ sync
echo "quicksync_copy" > $MYNODE_DIR/.mynode_status
rm -rf $MYNODE_DIR/bitcoin/blocks/
rm -rf $MYNODE_DIR/bitcoin/chainstate/
tar -xvf $QUICKSYNC_DIR/blockchain*.tar.gz -C $MYNODE_DIR/bitcoin/ --dereference
#tar -xvf $QUICKSYNC_DIR/blockchain*.tar.gz -C $MYNODE_DIR/bitcoin/ --dereference
pv -L 15m $QUICKSYNC_DIR/blockchain*.tar.gz | tar xzvf - -C $MYNODE_DIR/bitcoin/ --dereference
# Mark quicksync complete and give BTC a few minutes to startup with its new data
touch $QUICKSYNC_DIR/.quicksync_complete

View File

@ -42,7 +42,8 @@ apt-get -y install transmission-cli fail2ban ufw tclsh bluez python-bluez redis-
apt-get -y install clang hitch zlib1g-dev libffi-dev file toilet ncdu
apt-get -y install toilet-fonts avahi-daemon figlet libsecp256k1-dev
apt-get -y install inotify-tools libssl-dev tor tmux screen
apt-get -y install python-grpcio python3-grpcio # Need Debian Buster on Rock64 first...
apt-get -y install python-grpcio python3-grpcio
apt-get -y install pv
# Install other things without recommendation
@ -61,6 +62,7 @@ pip install --upgrade wheel
pip install speedtest-cli transmissionrpc flask python-bitcoinrpc redis prometheus_client requests
pip install python-pam python-bitcoinlib psutil
pip install grpcio grpcio-tools googleapis-common-protos
pip install tzupdate
# Update python3 to 3.7.X