Elasticsearch
- T E G
- Elasticsearch
Elasticsearch/Lucene Contributor
Elasticsearch T E G - - PowerPoint PPT Presentation
Elasticsearch T E G Elasticsearch Elasticsearch/Lucene Contributor ES
Elasticsearch/Lucene Contributor
Agenda
ES
Q
5
L1<P , ,
Ma
4JGC2
E 10
D
IH
11
P/-
12
13
5 ∗ * + 50
%
+P
0R 15
ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=]]; nested: ElasticsearchException[Elasticsearch exception [type=too_many_buckets_exception, reason=Trying to create too many buckets. Must be less than or equal to: [10000] but was [10001]. This limit can be set by changing the [search.max_buckets] cluster level setting.]];
+
1/+
+0+u4yu 4Vr t
λ =
1/+
Shard Buckets 1 Shard Buckets 2 Shard Buckets 3
. . . . . . … … … …
+0+ + + dBbru4J 4d2/+0+ 7 . https://github.com/elastic/elasticsearch/pull/46751
5
16
Ga im Ja r c MJ
s c
70
65762 3:94817348173413688%/ Vus 65762 3:94817348173413688% s 65762 3:94817348173413688%% S 65762 3:94817348173413688%/
.
5
z – T
lWM 18
Lw
SkcmCl lmCMa T1
T4 T2
sSmCl
T5 T1
T4 T2
dEry
goeydez cPimz
)0ue
uw
) rk T( 4%-)
lfnSie
RTSku
201
A 19
. – 65
doc field1 field2 1 D 23 2 E 23 3 C 46 4 A 46 5 C 65 6 B 23 7 F 75 field1 field2 A 46 B 23 C 46 field1 field2 C 65 D 23 E 23 field1 field2 F 75
Stream Response key1 Stream Response key2 Stream Response key3 Size: 3
field1field2
1 2 1 2
KIAT 20
– P
field1 field2 A 46 B 23 C 46 field1 field2 C 65 D 23 E 23 field1 field2 F 75
Stream Response key2 Stream Response key3
group key 6.5 GA
doc field1 field2 1 A 46 2 B 23 3 C 46 4 C 65 5 D 23 6 E 23 7 F 75
2.AfterKey 1.
3.
3+RS
Stream Response key1 https://github.com/elastic/elasticsearch/pull/48399 7.6.0 https://github.com/elastic/elasticsearch/pull/48130
E 7
40 21
h
u ip 6m f Rip
7
K.8 L IIFHIJECB:HI B:HIH:GFJBB()) 9G:DHBEr .8 IIFHIJECB:HI B:HIH:GFJBB IIFHIJECB:HI B:HIH:GFJBB) 5JD( IIFHIJEC:F: BJDHEBGFJBB(( 5JD( IIFHIJEC:F: BJDHEBGFJBB)
13
>
1 22
CPU
8
23
–
1000w(QPS) 86400() 180() 50byte(avg doc size) 2(replicas) ≈ 14 PB ≈ 1500
Rollup –
10 →
ü
5min
24 CPUIdle
Rollup15
Rollup
> 1
Rollup Rollup = Rollup CPU
%+R 3 1
+ –
Routing
2 3 1 2 3
<
30720 5,737 250 13
5000 10000 15000 20000 25000 30000 35000 1 5
≈
+
0 %
25
–
–
+0
F
+ehCR
SL +CC CC UafH C +CC Ua OCO CcT
+ 27
–
P 28
C0 – C
0GQB00
T F
9M M T iTFTCT LciS
2 h K RT 4586.03 TLci 6 4586-6S 2
% K
977 % %
%
977
29
C
()-M 35
30
31
t k l
Sk t
id
2 33
P6
1
C
2
5
3
5+)(++
1
+(+
3
R