Trying to figure out how to identify what server you are on when working in a clustered (or cluster f’d) server environment? Here’s how I do it.
Start by putting a text file with the same name at the same place on the servers which would not ever be overwritten by pushing code into production. Within that file you cam put the server name, its private IP, or whatever you want to use to identify the server. Obviously to get that information, you just the file.
This sort of thing /really/ helps when trying to troubleshoot intermittent problems which are probably only happening on one machine in the cluster.
If the servers are sharing a SAN which your code is stored on, your best bet is to store it somewhere in the Registry.
This is similar to a post I responded with on CFTalk.
Leave a reply