issues
search
jsdelivr
/
globalping
A global network of probes to run network tests like ping, traceroute and DNS resolve
https://globalping.io
270
stars
33
forks
source link
Flush redis only on deploys but not on regular restarts
#472
Closed
alexey-yarmosh
closed
9 months ago
alexey-yarmosh
commented
10 months ago
on build, write the current commit hash to a file in /dist;
on app start, every instance reads API_COMMIT
HASH
${HOSTNAME} from redis, and reads the latest commit hash from the file;
if the values exist and match, don't purge the DB; otherwise purge and write the new commit value to redis;