mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
ops: Only warm cache testnet URLs 10% of the time
This commit is contained in:
parent
5b633d8f4d
commit
c57d1cd959
1 changed files with 11 additions and 5 deletions
|
|
@ -172,16 +172,22 @@ do
|
|||
for url in $warmMiningURLs
|
||||
do
|
||||
warm "http://${hostnameBitcoin}${url}"
|
||||
warm "http://${hostnameBitcoin}/testnet${url}"
|
||||
warm "http://${hostnameBitcoin}/testnet4${url}"
|
||||
warm "http://${hostnameBitcoin}/signet${url}"
|
||||
# only warm cache for testnet URLs 10% of the time
|
||||
if (( RANDOM % 100 < 10 )); then
|
||||
warm "http://${hostnameBitcoin}/testnet${url}"
|
||||
warm "http://${hostnameBitcoin}/testnet4${url}"
|
||||
warm "http://${hostnameBitcoin}/signet${url}"
|
||||
fi
|
||||
done
|
||||
|
||||
for url in $warmLightningURLs
|
||||
do
|
||||
warm "http://${hostnameBitcoin}${url}"
|
||||
warm "http://${hostnameBitcoin}/testnet${url}"
|
||||
warm "http://${hostnameBitcoin}/signet${url}"
|
||||
# only warm cache for testnet URLs 10% of the time
|
||||
if (( RANDOM % 100 < 10 )); then
|
||||
warm "http://${hostnameBitcoin}/testnet${url}"
|
||||
warm "http://${hostnameBitcoin}/signet${url}"
|
||||
fi
|
||||
done
|
||||
|
||||
for url in $warmLiquidURLs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue