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.
Answer:
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 %%
Example:
%% if !siteIsSlave %%
Master at %% siteIp %%
%% else %%
Slave at %% siteIp%%
%%endif %%