I understand and agree with your methodology and can use it when I am remoted into the server, but I'm on a secure server and I can't pass in port numbers. (At least not that I know of)
By @cbeckwith
Please don't read much into the ports. That was just an example that pertains to my particular environment:
ColdFusion Developer Edition, 4 instances accessed by http via respective ports 8501, 8502, 8503, 8504.
If I could create four cfhttps that worked on https, that would help even more.
Of course. The 4 urls in the above example could be https instead. The principle remains exactly the same.
One advantage of this approach is that it enables you to gain insight into all the instances. For example,
- You could, in totalSessionCount.cfm, find the total number of sessions on all the instances:
<cfset totalNumberOfSessions = result1.M4S_Active_Sessions + result2.M4S_Active_Sessions + result3.M4S_Active_Sessions + result4.M4S_Active_Sessions>
- You could set up a scheduled task to run totalSessionCount.cfm and log the number of sessions at specific times of the day.