I am using nodeJS & perl clients to connect to ES. While reading the definitive guide of ES I found that my ES shows
Node -1
"transport": { "server_open": 13, "rx_count": 235417, "rx_size_in_bytes": 550972690, "tx_count": 235342, "tx_size_in_bytes": 67642574 }, "http": { "current_open": 2, "total_opened": 150136 },
Node - 2
"transport": { "server_open": 13, "rx_count": 235418, "rx_size_in_bytes": 67642574, "tx_count": 235337, "tx_size_in_bytes": 550972690 }, "http": { "current_open": 1, "total_opened": 5 },
I revised my code once again. I am opening a connection to connect but not closing it anywhere. How to close these connections after completion.
Node API
var elasticClient = new elasticsearch.Client({ host: config.EsConfig.hosts, log: 'info' });