add a random sleep time befor upgrade and restart, prevent all miner upgrade and restart at the same time