Skip to content

Commit

Permalink
[Elasticsearch] Limit maxSockets to 800 by default (elastic#151911)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Dzmitry Lemechko <[email protected]>
  • Loading branch information
3 people authored Nov 29, 2023
1 parent 57118a3 commit ac16c65
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test('set correct defaults', () => {
"idleSocketTimeout": "PT1M",
"ignoreVersionMismatch": false,
"maxIdleSockets": 256,
"maxSockets": Infinity,
"maxSockets": 800,
"password": undefined,
"pingTimeout": "PT30S",
"requestHeadersWhitelist": Array [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const configSchema = schema.object({
hosts: schema.oneOf([hostURISchema, schema.arrayOf(hostURISchema, { minSize: 1 })], {
defaultValue: 'http://localhost:9200',
}),
maxSockets: schema.number({ defaultValue: Infinity, min: 1 }),
maxSockets: schema.number({ defaultValue: 800, min: 1 }),
maxIdleSockets: schema.number({ defaultValue: 256, min: 1 }),
idleSocketTimeout: schema.duration({ defaultValue: '60s' }),
compression: schema.boolean({ defaultValue: false }),
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/server/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('config schema', () => {
"logFetchCount": 10,
"logQueries": false,
"maxIdleSockets": 256,
"maxSockets": Infinity,
"maxSockets": 800,
"pingTimeout": "PT30S",
"requestHeadersWhitelist": Array [
"authorization",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
},
"testData": {
"esArchives": [],
"kbnArchives": [
"x-pack/test/scalability/fixtures/kbn_archiver/1600-dataviews.json"
]
"kbnArchives": ["x-pack/test/scalability/fixtures/kbn_archiver/1600-dataviews.json"]
},
"streams": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
},
"testData": {
"esArchives": [],
"kbnArchives": [
"x-pack/test/scalability/fixtures/kbn_archiver/1600-dataviews.json"
]
"kbnArchives": ["x-pack/test/scalability/fixtures/kbn_archiver/1600-dataviews.json"]
},
"streams": [
{
Expand Down

0 comments on commit ac16c65

Please sign in to comment.