Hi All,
I just try with ES.
When I work with my local computer. it's work fine.
When I start to make 3 computers with same cluster name, it give error.
I config like that:
- Run instance A at 192.168.1.1 (port: 9200 && 9300)
- Run instance B at 192.168.1.2 (port: 9200 && 9300)
- Run local instance (same port) ( with the config to not contain data)
And then when I check "http://localhost:9200/_cluster/nodes?pretty=true"
It show me:
{
"ok" : true,
"cluster_name" : "my_cluster",
"nodes" : {
}
}
I check the other to:
http://192.168.1.1:9200/_cluster/nodes?pretty=true
{
"ok" : true,
"cluster_name" : "my_cluster",
"nodes" : {
"r25GkH15Rz6N-f8LaWw3TA" : {
"name" : "Baphomet",
"transport_address" : "inet[192.168.1.1/192.168.1.1:9300]",
"hostname" : "WT_ZME_APPS-12.94",
"http_address" : "inet[/192.168.1.1:9200]"
}
}
}
And
http://192.168.1.2:9200/_cluster/nodes?pretty=true
{
"ok" : true,
"cluster_name" : "my_cluster",
"nodes" : {
"35P43iugS_SKs347cGqedA" : {
"name" : "Bushmaster",
"transport_address" : "inet[/192.168.1.2:9300]",
"http_address" : "inet[/192.168.1.2:9200]"
}
}
}
I think the problem is because 3 of ElasticSearch don't recognize each other.
Could someone give me advise ?
Thanks in advance.