Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Install updated version of script such that running instances cannot use an inconsistent state

by LanX (Canon)
on Jan 28, 2013 at 21:03 UTC ( #1015759=note: print w/ replies, xml ) Need Help??


in reply to Install updated version of script such that running instances cannot use an inconsistent state

> I'd like to make sure that no running instance of the script can see an inconsistent state of the install if it's running at the same time as I'm doing the install.

Just an idea and not any proven best practice:

Could you work with two alternate install paths in @INC? Like having a topdir with a timestamp or version or so?

The old CGI would still be using the old path it was started with, and as soon all old instances are gone you can delete the old paths.

Should also be good strategy for fall back if anything goes wrong...

Cheers Rolf


Comment on Re: Install updated version of script such that running instances cannot use an inconsistent state

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-11-29 02:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls