Project

General

Profile

Get user presence in cluster

Tue Topholm
Added almost 2 years ago

Hi All.

I have a set up where we have 3 machines, and we are using the provided scripts to get total online users etc out, but is it correct that they don't show for all servers in the cluster, but do you need to ask each node for online users?

Basically what I need is to ask GetPresence for a user and get their presence back and in my head I would only need to ask one node.

Hope you can understand my question.

/Tue


Replies (3)

Added by Wojciech Kapcia TigaseTeam almost 2 years ago

Tue Topholm wrote:

but is it correct that they don't show for all servers in the cluster, but do you need to ask each node for online users?

This is correct. For now scripts on the particular node are executed in the context of such node (except for a couple of scripts, which have capability be executed on all nodes).

Added by Tue Topholm almost 2 years ago

Hi Wojciech,

thx

Can you point me to one of the scripts, so I can copy it and modify it

Added by Wojciech Kapcia TigaseTeam almost 2 years ago

Tue Topholm wrote:

Can you point me to one of the scripts, so I can copy it and modify it

For example following scripts will get executed on all nodes:

It's also possible to get basic user info from whole cluster but it requires ACS to provide cluster data: GetUserInfo.groovy

    (1-3/3)