Merge pull request #3097 from mempool/ops/smooth-out-warm-cache-requests
ops: Add 250ms delay between warm cache requests
This commit is contained in:
commit
5bcd54b808
@ -120,14 +120,16 @@ do for url in / \
|
|||||||
|
|
||||||
do
|
do
|
||||||
warm "https://${hostname}${url}"
|
warm "https://${hostname}${url}"
|
||||||
|
sleep 0.25 # wait 250ms between queries to not DoS mariadb
|
||||||
done
|
done
|
||||||
|
|
||||||
for slug in $slugs
|
for slug in $slugs
|
||||||
do
|
do
|
||||||
warm "https://${hostname}/api/v1/mining/pool/${slug}"
|
warm "https://${hostname}/api/v1/mining/pool/${slug}"
|
||||||
|
sleep 0.25 # wait 250ms between queries to not DoS mariadb
|
||||||
warm "https://${hostname}/api/v1/mining/pool/${slug}/hashrate"
|
warm "https://${hostname}/api/v1/mining/pool/${slug}/hashrate"
|
||||||
|
sleep 0.25 # wait 250ms between queries to not DoS mariadb
|
||||||
warm "https://${hostname}/api/v1/mining/pool/${slug}/blocks"
|
warm "https://${hostname}/api/v1/mining/pool/${slug}/blocks"
|
||||||
|
sleep 0.25 # wait 250ms between queries to not DoS mariadb
|
||||||
done
|
done
|
||||||
|
|
||||||
sleep 10
|
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user