Keep getting socket hang out on ElasticSearch
Asked Answered
U

0

6

I am new to ElasticSearch.I am reindexing some indexes in my ElasticSearch Cluster. While I am trying to reindex an index that has a large amount of data I am getting Socket hang up error.

const elasticsearch = require('elasticsearch');
const tempclient = new elasticsearch.Client({
  host: clusterhost,
  log: [{
    type: 'stdio',
    levels: ['error'],
  }],
  maxRetries: 50,
  requestTimeout: 1000 * 60 * 120,
  keepAliveFreeSocketTimeout: 1000 * 60 * 120,
});
await tempclient.reindex({
   body: {
      source: {
         index: indexes[i].index,
       },
      dest: {
         index: `logs-${yearMonth[0]}`,
      },
      script: {
         source: "ctx._type = 'doc';",
      },
  },
  timeout: '120m',
});
Uptake answered 29/1, 2020 at 7:0 Comment(4)
Try to set requestTimeout to 0Spectrohelioscope
I am still getting the same error.Uptake
Did you finally find out where the error was coming from? Do you remember how to solve it?Wane
Have the same errorHobnob

© 2022 - 2024 — McMap. All rights reserved.