Hi Paweł,

as a matter of fact, everything is correct, except for your configuration.

The transport_address attribute in the output of GET 
/api/system/cluster/nodes shows, that both nodes are using 
http://127.0.0.1:9000/api/ as their transport address.
This address can be configured with the rest_transport_uri setting 
<https://github.com/Graylog2/graylog2-server/blob/2.2.0/misc/graylog.conf#L83-L90>
 
and has to be the public URI of the Graylog REST API of each Graylog node. 
It's being used by every Graylog node to communicate with other Graylog 
nodes.

tl;dr: Set rest_transport_uri on each Graylog node to a URI which can be 
accessed by all the other Graylog nodes.

Cheers,
Jochen

On Monday, 13 February 2017 19:51:02 UTC+1, Paweł Karoluk wrote:
>
> Hi, I have two node Graylog Cluster and as you can see there is some wrong 
> with cluster config:
>
>
> *GET /api/system/cluster/nodes*
>
> {
>     nodes: [
>         {
>             cluster_id: "6701202c-a9fe-42d2-8d5a-015acf66fbfa",
>             node_id: "5f596ebf-a988-4c08-858e-67d38a3e483b",
>             type: "server",
>             transport_address: "http://127.0.0.1:9000/api/";,
>             last_seen: "2017-02-10T00:45:30.000Z",
>             short_node_id: "5f596ebf",
>             hostname: "analog1.local",
>             is_master: true
>         },
>         {
>             cluster_id: "6701202c-a9fe-42d2-8d5a-015acf66fbfa",
>             node_id: "8be9e293-f60b-40c6-a0e6-8af6d617eb1a",
>             type: "server",
>             transport_address: "http://127.0.0.1:9000/api/";,
>             last_seen: "2017-02-10T00:45:30.000Z",
>             short_node_id: "8be9e293",
>             hostname: "analog2.local",
>             is_master: false
>         }
>     ],
>     total: 2
> }
>
>
> *GET /api/cluster*
>
> {
>     5f596ebf-a988-4c08-858e-67d38a3e483b: {
>         facility: "graylog-server",
>         codename: "Smuttynose",
>         node_id: "5f596ebf-a988-4c08-858e-67d38a3e483b",
>         cluster_id: "6701202c-a9fe-42d2-8d5a-015acf66fbfa",
>         version: "2.1.3+040d371",
>         started_at: "2017-02-10T00:27:13.101Z",
>         hostname: "analog1.local",
>         lifecycle: "running",
>         lb_status: "alive",
>         timezone: "Europe/Warsaw",
>         operating_system: "Linux 2.6.32-642.13.1.el6.x86_64",
>         is_processing: true
>     },
>     8be9e293-f60b-40c6-a0e6-8af6d617eb1a: {
>         facility: "graylog-server",
>         codename: "Smuttynose",
>         node_id: "5f596ebf-a988-4c08-858e-67d38a3e483b",
>         cluster_id: "6701202c-a9fe-42d2-8d5a-015acf66fbfa",
>         version: "2.1.3+040d371",
>         started_at: "2017-02-10T00:27:13.101Z",
>         hostname: "analog1.local",
>         lifecycle: "running",
>         lb_status: "alive",
>         timezone: "Europe/Warsaw",
>         operating_system: "Linux 2.6.32-642.13.1.el6.x86_64",
>         is_processing: true
>     }
> }
>
>
> In /api/cluster I supposed to get two different node_id and hostname, but 
> hostnames are the same. As the result when I want to check the 
> /system/nodes I got dubbed stats only of one host. The real HeapSize of 
> analog2 is only 2GB (img: analog2-system-nodes 
> <https://i.stack.imgur.com/Hg42b.png>) not 4GB as analog1 - master node 
> (img: analog1-system-nodes <https://i.stack.imgur.com/MW4yj.png>).
>
>
> MongoDB and ES Cluster are external and shared for both hosts.
>
>
> Thanks Guys
>
>
> Pawel
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/6a85729a-f686-4b3c-b239-d43500d897d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to