ipfs SWARM shaping every 20 mn

This commit is contained in:
qo-op 2021-02-13 14:25:50 +01:00
parent f59a845327
commit 8a2c25c8e1
2 changed files with 9 additions and 6 deletions

View File

@ -62,9 +62,9 @@ DEFCON=$(cat $MY_PATH/DEFCON) # TODO SELECT $DEFCON scenario
#
# ACTIVATE 15 MN "git pull" update
if [[ $(($minute % 15)) == 0 ]]; then
#######################################
sleep $((1 + RANDOM % 12))
git pull
########## DESYNCH SWARM NODE REQUESTS #################
sleep $((1 + RANDOM % 30))
git pull
fi
# __ __ _____ ____
@ -76,8 +76,10 @@ fi
##################################################################
#
# REFRESH IPFS SWARM DATA EVERY 12 & 15 minutes
[[ $(($minute % 12)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/gchange_IPFS_swarm.sh &
[[ $(($minute % 15)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/ipfs_SWARM_refresh.sh &
[[ $(($minute % 20)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/gchange_IPFS_swarm.sh &
# Synchronize gchange+ data & send ipfstryme messages if needed
[[ $(($minute % 15)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/gchange_INIT.sh &
#
# _ _

View File

@ -99,4 +99,5 @@ My actual #SWARM0"
ipfs swarm peers
echo $(date)
# ipfs SWARM shaping
~/.zen/astrXbian/zen/ipfs_SWARM_refresh.sh