title: Elasticsearch: How to query for number of connections?
body: <p>How do I ask my Elasticsearch server how many connections are open to it right now?</p>
  
  <p>Is this the same as the number of sockets?  (I don't know how to get these numbers, either)</p>
  
  <p>And this is different from the number of clients, right, since each client may open multiple connections?</p>
  
  <p>Could not find any info on this, though I did find that you could specify a maxSockets per client on the Elasticsearch client side: <a href="https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/configuration.html" rel="noreferrer">https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/configuration.html</a></p>