Hello, Am Montag 03 September 2007 23:01 schrieb Sean Whitton:
Hello,
To confirm, are you suggesting we edit our scripts to read this file and put in "sorry, server is down" if that is the case?
You should read the file and parse the first line, that not beginns with "#". Then your tool knows, what's the status of cluster is. Is it "OK", you have to do nothing more, if it's "INFO" and "WARN", it's your decison if you display something. Is it "ERRO" or "DOWN" you must ("must" like in rfc 2119 [1]) give out the text. But that is the better decision anyway, because your tools did not work because the cluster is down :). If you add additional informations in your tools, is your desicion of corse.
This only applies to tools using sql too, right?
Of corse :). If you need no mysql, information about mysql is useless, isn't it? Perhaps there can be a general-information-file in future (for warning about planing down-time of the hole cluster) - but not yet.
I am personally against an enforcable rule (but would definately follow it if imposed).
The enforcable is ONLY for ERRO and DOWN. And if you have good reasons to use it not, then use it not (but we send all users to you ;)).
BTW: Erwin asked in chat, if there is a way to read the files without using http. Yes, there is. The files can be found in /var/www/
Thanks,
Sean
Sincerly, DaB.