mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
ops: Add 250ms delay between warm cache requests
This commit is contained in:
parent
994b31527b
commit
952e540d65
1 changed files with 4 additions and 2 deletions
|
|
@ -120,14 +120,16 @@ do for url in / \
|
|||
|
||||
do
|
||||
warm "https://${hostname}${url}"
|
||||
sleep 0.25 # wait 250ms between queries to not DoS mariadb
|
||||
done
|
||||
|
||||
for slug in $slugs
|
||||
do
|
||||
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"
|
||||
sleep 0.25 # wait 250ms between queries to not DoS mariadb
|
||||
warm "https://${hostname}/api/v1/mining/pool/${slug}/blocks"
|
||||
sleep 0.25 # wait 250ms between queries to not DoS mariadb
|
||||
done
|
||||
|
||||
sleep 10
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue