Skip to content

Commit 9538bb4

Browse files
committed
Merge branch 'main' into return-429-when-queue-full
2 parents ade8984 + 272adca commit 9538bb4

File tree

207 files changed

+6110
-2048
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+6110
-2048
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
steps: []
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
package org.elasticsearch.benchmark.vector;
11+
12+
import org.elasticsearch.common.logging.LogConfigurator;
13+
import org.elasticsearch.index.codec.vectors.cluster.NeighborHood;
14+
import org.openjdk.jmh.annotations.Benchmark;
15+
import org.openjdk.jmh.annotations.BenchmarkMode;
16+
import org.openjdk.jmh.annotations.Fork;
17+
import org.openjdk.jmh.annotations.Measurement;
18+
import org.openjdk.jmh.annotations.Mode;
19+
import org.openjdk.jmh.annotations.OutputTimeUnit;
20+
import org.openjdk.jmh.annotations.Param;
21+
import org.openjdk.jmh.annotations.Scope;
22+
import org.openjdk.jmh.annotations.Setup;
23+
import org.openjdk.jmh.annotations.State;
24+
import org.openjdk.jmh.annotations.Warmup;
25+
import org.openjdk.jmh.infra.Blackhole;
26+
27+
import java.io.IOException;
28+
import java.util.Random;
29+
import java.util.concurrent.TimeUnit;
30+
31+
@BenchmarkMode(Mode.AverageTime)
32+
@OutputTimeUnit(TimeUnit.SECONDS)
33+
@State(Scope.Benchmark)
34+
// first iteration is complete garbage, so make sure we really warmup
35+
@Warmup(iterations = 1, time = 1)
36+
// real iterations. not useful to spend tons of time here, better to fork more
37+
@Measurement(iterations = 3, time = 1)
38+
// engage some noise reduction
39+
@Fork(value = 1)
40+
public class ComputeNeighboursBenchmark {
41+
42+
static {
43+
LogConfigurator.configureESLogging(); // native access requires logging to be initialized
44+
}
45+
46+
@Param({ "1000", "2000", "3000", "5000", "10000", "20000", "50000" })
47+
int numVectors;
48+
49+
@Param({ "384", "782", "1024" })
50+
int dims;
51+
52+
float[][] vectors;
53+
int clusterPerNeighbour = 128;
54+
55+
@Setup
56+
public void setup() throws IOException {
57+
Random random = new Random(123);
58+
vectors = new float[numVectors][dims];
59+
for (float[] vector : vectors) {
60+
for (int i = 0; i < dims; i++) {
61+
vector[i] = random.nextFloat();
62+
}
63+
}
64+
}
65+
66+
@Benchmark
67+
@Fork(jvmArgsPrepend = { "--add-modules=jdk.incubator.vector" })
68+
public void bruteForce(Blackhole bh) {
69+
bh.consume(NeighborHood.computeNeighborhoodsBruteForce(vectors, clusterPerNeighbour));
70+
}
71+
72+
@Benchmark
73+
@Fork(jvmArgsPrepend = { "--add-modules=jdk.incubator.vector" })
74+
public void graph(Blackhole bh) throws IOException {
75+
bh.consume(NeighborHood.computeNeighborhoodsGraph(vectors, clusterPerNeighbour));
76+
}
77+
}

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ log4j = 2.19.0
1414
slf4j = 2.0.6
1515
ecsLogging = 1.2.0
1616
jna = 5.12.1
17-
netty = 4.1.118.Final
17+
netty = 4.1.126.Final
1818
commons_lang3 = 3.9
1919
google_oauth_client = 1.34.1
2020
awsv2sdk = 2.31.78

docs/changelog/132003.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 132003
2+
summary: Add `copy_from` option to the Append processor
3+
area: Ingest Node
4+
type: enhancement
5+
issues: []

docs/changelog/133546.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 133546
2+
summary: "Support geohash, geotile and geohex grid types in ST_INTERSECTS and ST_DISJOINT"
3+
area: "ES|QL"
4+
type: enhancement
5+
issues: []

docs/changelog/133954.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 133954
2+
summary: "ILM: Force merge on zero-replica cloned index before snapshotting for searchable snapshots"
3+
area: ILM+SLM
4+
type: enhancement
5+
issues:
6+
- 75478

docs/changelog/134033.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 134033
2+
summary: Fix FORK with union-types
3+
area: ES|QL
4+
type: bug
5+
issues:
6+
- 133973

docs/changelog/134182.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 134182
2+
summary: Upgrade Netty to 4.1.126.Final
3+
area: Network
4+
type: upgrade
5+
issues: []

docs/changelog/134198.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 134198
2+
summary: Improve `ShardLockObtainFailedException` message
3+
area: Store
4+
type: enhancement
5+
issues: []

docs/docset.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ subs:
3535
api-prereq-title: "Prerequisites"
3636
api-description-title: "Description"
3737
api-path-parms-title: "Path parameters"
38-
api-query-parms-title: "Query parameters"
3938
api-request-body-title: "Request body"
4039
api-examples-title: "Examples"
4140
ecloud: "Elastic Cloud"
@@ -49,7 +48,6 @@ subs:
4948
serverless-full: "Elastic Cloud Serverless"
5049
serverless-short: "Serverless"
5150
es-serverless: "Elasticsearch Serverless"
52-
ess-utm-params: "?page=docs&placement=docs-body"
5351
cloud-only: "This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported."
5452
security-app: "Elastic Security app"
5553
stack-monitor-app: "Stack Monitoring"
@@ -87,13 +85,10 @@ subs:
8785
search-snaps: "searchable snapshots"
8886
slm: "snapshot lifecycle management"
8987
slm-init: "SLM"
90-
dfeed: "datafeed"
9188
dfeeds: "datafeeds"
9289
dfeeds-cap: "Datafeeds"
9390
anomaly-detect: "anomaly detection"
9491
anomaly-jobs: "anomaly detection jobs"
95-
dataframe: "data frame"
96-
dataframe-cap: "Data frame"
9792
transform: "transform"
9893
transforms: "transforms"
9994
transforms-cap: "Transforms"
@@ -113,4 +108,3 @@ subs:
113108
nlp: "natural language processing"
114109
index-manage-app: "Index Management"
115110
connectors-app: "Connectors"
116-
ingest-pipelines-app: "Ingest Pipelines"

0 commit comments

Comments
 (0)