Frequently Asked Questions
Aug 3, 2020 - 04:51am
Frequently Asked Questions Installation, Configuration and Related System Configuration
How to tell which server is which in a cluster.
Rate This FAQ
(Not yet rated)
Created On: 24 Apr 2007 9:58 am
Last Edited: 10 Jun 2009 3:42 pm
Sometimes during troubleshooting, or during initial set up or site development, it is useful to be able to tell which node in a cluster you are currently connected to. This is of particular use when a front end load balancer could send you to any node at any particular time.
Use the following code snippet below. If you allow WCTL in your banner/footer then it is very convenient to place this in your Control Panel's "banner" section. To restrict the display to the sysop only, you can wrap the code in %% if userIsSysop %% [code here] %% endif %%
%% if !siteIsSlave %%
Master at %% siteIp %%
%% else %%
Slave at %% siteIp%%