Add request timeout = 30m in elastic client
This commit is contained in:
@ -89,6 +89,7 @@ const logAppliedMigrations = (
|
||||
export const INDEX_ALIAS = 'pages_alias'
|
||||
export const esClient = new Client({
|
||||
node: process.env.ELASTIC_URL || 'http://localhost:9200',
|
||||
requestTimeout: 60000 * 30, // 30 minutes
|
||||
auth: {
|
||||
username: process.env.ELASTIC_USERNAME || '',
|
||||
password: process.env.ELASTIC_PASSWORD || '',
|
||||
|
||||
Reference in New Issue
Block a user