103 reputation
4
bio website github.com/kevinzen
location Boston, MA
age 94
visits member for 2 years, 3 months
seen May 8 '13 at 14:23

About me:


May
6
awarded  Scholar
May
6
accepted Script runs on 50 servers. How can I ensure only one executes a particular step?
May
6
comment Script runs on 50 servers. How can I ensure only one executes a particular step?
Thanks for your detailed and thoughtful response. This was very helpful.
May
6
comment Script runs on 50 servers. How can I ensure only one executes a particular step?
@Quinten Thanks. I understand what you're saying. There are some circumstances where writing a lockfile over NFS can work. I've read that 'mkdir' is atomic and will return different status based on where or not the directory already exists. I may have to figure out how to force just one server to check the file out -- like maybe embedded a particular hostname in the script, then the server won't do the checkout unless its hostname matches.
May
6
comment Script runs on 50 servers. How can I ensure only one executes a particular step?
'some sort of lock' -- this is the question. How can I do that when 50+ servers are trying to be the first one and have it be reliable?
May
6
awarded  Editor
May
6
revised Script runs on 50 servers. How can I ensure only one executes a particular step?
added 689 characters in body
May
6
comment Script runs on 50 servers. How can I ensure only one executes a particular step?
Re: 1) We have 50+ servers that need this update and it needs to run automatically during off-hours -- specifically over a weekend. Putting into place a weekend process that requires someone to log in and run one step would be error prone. Re 3) Having 50+ (or 100 eventually) servers all simultaneously doing full checkouts of the source code is a big load for our source control server, and 2) This is the essence of my question -- what's the best way to do that reliably?
May
6
comment Script runs on 50 servers. How can I ensure only one executes a particular step?
@DavidW I agree and that was my intention, I'm sorry I was not clear. The script that does the checkout would run before the other script.
May
6
asked Script runs on 50 servers. How can I ensure only one executes a particular step?
Aug
6
awarded  Autobiographer
Aug
6
awarded  Supporter