Unix Process Identification


(davrob) #1

Hi,

The unique names for each Node in a cluster is great when looking at
logs but when it comes to identifying each node in a cluster when
looking at its process using "ps -ef" in unix envs, then all the nodes
in the cluster look the same. Is there an admin command or some other
way that people have found for finding the process id of each node.

Best Regards,

David.


(Shay Banon) #2

You get the process id as part of the nodes info API. If you want to get the info just for the node you hit, then using _local. For example:

curl localhost:9200/_cluster/nodes/_local?pretty=1

On Monday, May 23, 2011 at 4:00 PM, davrob2 wrote:

Hi,

The unique names for each Node in a cluster is great when looking at
logs but when it comes to identifying each node in a cluster when
looking at its process using "ps -ef" in unix envs, then all the nodes
in the cluster look the same. Is there an admin command or some other
way that people have found for finding the process id of each node.

Best Regards,

David.


(system) #3