Max File Descriptors


(Egri Mihaly) #1

Hi again,

I was configuring file descriptors limit and when i have executed the curl command below i just saw that there were 2 elasticsearch nodes in my system, wich seems to be false, i have only one, i'm not sure why there are 2?
Strangely one has the filedescriptors limit to 64k as expected the other one to 16k, i'm not sure why do i have 2 and if i have to get rid of one how to do it.

Thanks in advance.

root@elastichosttest:~# curl localhost:9200/_nodes/process?pretty
{
  "cluster_name" : "elasticsearch",
  "nodes" : {
    "bXBclyMkSr-Ze5rZjN7uWg" : {
      "name" : "logstash-elastichosttest-407-2040",
      "transport_address" : "inet[/10.108.17.24:9301]",
      "host" : "elastichosttest",
      "ip" : "127.0.1.1",
      "version" : "1.1.1",
      "build" : "f1585f0",
      "attributes" : {
        "data" : "false",
        "client" : "true"
      },
      "process" : {
        "refresh_interval_in_millis" : 1000,
        "id" : 407,
        "max_file_descriptors" : 16384,
        "mlockall" : false
      }
    },
    "_gQVh3alSNyjpxwlAa17Lg" : {
      "name" : "Mark Raxton",
      "transport_address" : "inet[localhost/127.0.0.1:9300]",
      "host" : "elastichosttest",
      "ip" : "127.0.1.1",
      "version" : "1.4.5",
      "build" : "2aaf797",
      "http_address" : "inet[localhost/127.0.0.1:9200]",
      "process" : {
        "refresh_interval_in_millis" : 1000,
        "id" : 1513,
        "max_file_descriptors" : 65535,
        "mlockall" : true
      }
    }
  }
}

(Mark Walkom) #2

As the name suggests, this is your LS instance.
The ES output in LS defaults to the node protocol, which means it joins the cluster.


(Egri Mihaly) #3

So if I understand right everytime the elasticsearch start a new name is allocated to the instance?
is it normal to have only 16k max_file_descriptors in the cluster as the instance has 64k? does it need to be configured aswell somewhere?
Thanks.


(Mark Walkom) #4

Unless you define node.name then yes, it will pick a new name at random.

I wouldn't worry about the descriptors for the LS node.


(Egri Mihaly) #5

Thanks for all the informations. Cheers


(system) #6