[Toolserver-l] How to determine if script runs in the toolserver cluster?
Tim Landscheidt
tim at tim-landscheidt.de
Wed Sep 2 15:55:17 UTC 2009
Platonides <platonides at gmail.com> wrote:
>> is there any reliable way to determine if a script is run in
>> the toolserver cluster, i. e. can make use of the database
>> servers & Co., without checking for hostname being wolfs-
>> bane, nightshade or names-to-come?
> Check if it can connect to the database server?
No, as:
a) the database servers may be down, and
b) running the script on another box somewhere on the net
would require waiting for the timeout/rejection of the
connection *on* *every* *run* :-).
Tim
More information about the Toolserver-l
mailing list