if you have necessary resource spaces on your vps and is technically possible, can you run two pool instances on the server? e.g. port 3334 for new testing code and port 3333 for old stable code.
So, we can set old code as failover pool.
Good idea in principle. Unfortunately I don’t have the necessary resources. I try my best to be around while the new code is running so there isn't any downtime, and at the least when the code crashes it automatically starts the backup pool code. However I had gone to sleep this time around (damn human physiology limitations) and the pool didn't crash, it hung up, sorry.So, we can set old code as failover pool.
Sleeping is one of the most important function for human to keep high biological performance
I hope you have keepalive/heartbeat kind of service monitor function on the system to secure your sleeping time.