How to query information about a mirrored configuration?

In a mirrored setup, where 1+ nodes are replicas of a primary node, how can I, via CLI or API on ONE of the nodes…

  • Find out which is the master node

  • Find out which hosts are mirror nodes

IOW, if I have github1, github2 and github3, and don’t know which is master or mirror, I want to run a command on any node to say…

  • Are you master?

  • If so what are your mirrors?

  • If not what is your master?

I hope that makes sense.

The API is documented at https://developer.github.com/v3/enterprise-admin/management_console/ – I see the example used doesn’t have clustering enabled, but maybe clustering information is included when it is enabled?

@seveas wrote:

The API is documented at https://developer.github.com/v3/enterprise-admin/management_console/ – I see the example used doesn’t have clustering enabled, but maybe clustering information is included when it is enabled?

Thanks!

I’m new to Github admin. I was told that a “cluster” denotates a different functionality, that is, a cluster means that different Github micro-services run on each node, so eacn node is not really a master/mirror of each other?

I do see tnis when I enter the command on any node. Does this mean I was told wrong regarding the meaning of “cluster?”
$ ghe-cluster-nodes
github1-domain-com-primary
github1-domain-com-replica

Hi @zillag,

While High Availability and Geo-Replication configurations of GitHub Enterprise are not traditional clusters in the sense that they do not split up nodes into dedicated services, they are built on the same framework and therefore can respond to some cluster commands.

Thanks!

Hello I am new to GitHub, but how does one get an absolute confirmation if a Project is a mirror project or not? Using cluster nodes? I could not follow the conversation in this thread. 

Thank you for the inputs.

Best Regards

Sourabh