-
Notifications
You must be signed in to change notification settings - Fork 71
/
indexing-querying.json
137 lines (137 loc) · 4.49 KB
/
indexing-querying.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "indexing-querying",
"description": "Indexes half the data for NYC Taxis, then concurrently queries OpenSearch while indexing again.",
"default": false,
"schedule": [
{
"operation": {
"operation-type": "put-settings",
"body": {
"transient": {
"search.default_search_timeout": "{{default_search_timeout | default(-1)}}"
}
}
}
},
{
"operation": "delete-index"
},
{
"operation": {
"operation-type": "create-index",
"settings": {{index_settings | default({}) | tojson}}
}
},
{
"name": "check-cluster-health",
"operation": {
"operation-type": "cluster-health",
"index": "pmc",
"request-params": {
"wait_for_status": "{{cluster_health | default('green')}}",
"wait_for_no_relocating_shards": "true"
},
"retry-until-success": true
}
},
{
"name": "initial-index-append",
"operation": {
"operation-type": "bulk",
"bulk-size": {{bulk_size | default(500)}},
"ingest-percentage": 50
},
"warmup-time-period": 30,
"clients": {{bulk_indexing_clients | default(8)}},
"ignore-response-error-level": "{{error_level | default('non-fatal')}}"
},
{
"name": "refresh-after-index",
"operation": "refresh"
},
{
"operation": {
"operation-type": "force-merge",
{%- if force_merge_max_num_segments is defined %}
"max-num-segments": {{ force_merge_max_num_segments | tojson }},
{%- endif %}
"request-timeout": 7200
}
},
{
"name": "refresh-after-force-merge",
"operation": "refresh"
},
{
"name": "wait-until-merges-finish",
"operation": {
"operation-type": "index-stats",
"index": "_all",
"condition": {
"path": "_all.total.merges.current",
"expected-value": 0
},
"retry-until-success": true,
"include-in-reporting": false
}
},
{
"parallel": {
"tasks": [
{
"name": "concurrent-index-append",
"operation": {
"operation-type": "bulk",
"bulk-size": {{bulk_size | default(500)}},
"ingest-percentage": 50
},
"clients": {{bulk_indexing_clients | default(8)}},
"ignore-response-error-level": "{{error_level | default('non-fatal')}}"
},
{
"operation": "default",
"warmup-iterations": 500,
"iterations": 200,
"target-throughput": {{ default_target_throughput or target_throughput | default(20) | tojson }},
"clients": {{ default_search_clients or search_clients | default(1) }}
},
{
"operation": "term",
"warmup-iterations": 500,
"iterations": 200,
"target-throughput": {{ term_target_throughput or target_throughput | default(20) | tojson }},
"clients": {{ term_search_clients or search_clients | default(1) }}
},
{
"operation": "phrase",
"warmup-iterations": 500,
"iterations": 200,
"target-throughput": {{ phrase_target_throughput or target_throughput | default(20) | tojson }},
"clients": {{ phrase_search_clients or search_clients | default(1) }}
},
{
"operation": "articles_monthly_agg_uncached",
"warmup-iterations": 500,
"iterations": 200,
"target-throughput": {{ articles_monthly_agg_uncached_target_throughput or target_throughput | default(20) | tojson }},
"clients": {{ articles_monthly_agg_uncached_search_clients or search_clients | default(1) }}
},
{
"operation": "articles_monthly_agg_cached",
"warmup-iterations": 500,
"iterations": 200,
"target-throughput": {{ articles_monthly_agg_cached_target_throughput or target_throughput | default(20) | tojson }},
"clients": {{ articles_monthly_agg_cached_search_clients or search_clients | default(1) }}
},
{
"operation": "scroll",
"warmup-iterations": 50,
"iterations": 100,
"target-throughput": {{ scroll_target_throughput or target_throughput | default(0.5) | tojson }},
"clients": {{ scroll_search_clients or search_clients | default(1) }}
}
]
}
}
]
}