-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathdefault.json
155 lines (155 loc) · 8.11 KB
/
default.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "append-no-conflicts",
"description": "Indexes the whole document corpus using a setup that will lead to a larger indexing throughput than the default settings and produce a smaller index (higher compression rate). Document ids are unique so all index operations are append only. After that a couple of queries are run.",
"default": true,
"schedule": [
{{ benchmark.collect(parts="../../common_operations/delete_index.json") }},
{% with default_index_settings={
"index.codec": "best_compression",
"index.refresh_interval": "30s",
"index.translog.flush_threshold_size": "4g"
} %}
{{ benchmark.collect(parts="../../common_operations/create_index.json") }},
{% endwith %}
{{ benchmark.collect(parts="../../common_operations/check_cluster_health.json") }},
{
"operation": "index",
"warmup-time-period": 240,
"clients": {{bulk_indexing_clients | default(8)}},
"ignore-response-error-level": "{{error_level | default('non-fatal')}}"
},
{
"name": "refresh-after-index",
"operation": "refresh"
},
{{ benchmark.collect(parts="../../common_operations/force_merge.json") }},
{
"operation": "default",
"warmup-iterations": {{ default_warmup_iterations or warmup_iterations | default(50) | tojson }},
"iterations": {{ default_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ default_target_throughput or target_throughput | default(3) | tojson }},
"clients": {{ default_search_clients or search_clients | default(1) }}
},
{
"operation": "range",
"warmup-iterations": {{ range_warmup_iterations or warmup_iterations | default(50) | tojson }},
"iterations": {{ range_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ range_target_throughput or target_throughput | default(0.7) | tojson }},
"clients": {{ range_search_clients or search_clients | default(1) }}
},
{
"operation": "distance_amount_agg",
"warmup-iterations": {{ distance_amount_agg_warmup_iterations or warmup_iterations | default(50) | tojson }},
"iterations": {{ distance_amount_agg_iterations or iterations | default(50) | tojson }},
"target-throughput": {{ distance_amount_agg_target_throughput or target_throughput | default(2) | tojson }},
"clients": {{ distance_amount_agg_search_clients or search_clients | default(1) }}
},
{
"operation": "autohisto_agg",
"warmup-iterations": {{ autohisto_agg_warmup_iterations or warmup_iterations | default(50) | tojson }},
"iterations": {{ autohisto_agg_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ autohisto_agg_target_throughput or target_throughput | default(1.5) | tojson }},
"clients": {{ autohisto_agg_search_clients or search_clients | default(1) }}
},
{
"operation": "date_histogram_agg",
"warmup-iterations": {{ date_histogram_agg_warmup_iterations or warmup_iterations | default(50) | tojson }},
"iterations": {{ date_histogram_agg_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ date_histogram_agg_target_throughput or target_throughput | default(1.5) | tojson }},
"clients": {{ date_histogram_agg_search_clients or search_clients | default(1) }}
},
{
"operation": "desc_sort_tip_amount",
"warmup-iterations": {{ desc_sort_tip_amount_warmup_iterations or warmup_iterations | default(50) | tojson }},
"iterations": {{ desc_sort_tip_amount_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ desc_sort_tip_amount_target_throughput or target_throughput | default(0.5) | tojson }},
"clients": {{ desc_sort_tip_amount_search_clients or search_clients | default(1) }}
},
{
"operation": "asc_sort_tip_amount",
"warmup-iterations": {{ asc_sort_tip_amount_warmup_iterations or warmup_iterations | default(50) | tojson }},
"iterations": {{ asc_sort_tip_amount_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ asc_sort_tip_amount_target_throughput or target_throughput | default(0.5) | tojson }},
"clients": {{ asc_sort_tip_amount_search_clients or search_clients | default(1) }}
}
]
},
{
"name": "append-no-conflicts-index-only",
"description": "Indexes the whole document corpus using a setup that will lead to a larger indexing throughput than the default settings and produce a smaller index (higher compression rate). Document ids are unique so all index operations are append only.",
"schedule": [
{{ benchmark.collect(parts="../../common_operations/delete_index.json") }},
{% with default_index_settings={
"index.codec": "best_compression",
"index.refresh_interval": "30s",
"index.translog.flush_threshold_size": "4g"
} %}
{{ benchmark.collect(parts="../../common_operations/create_index.json") }},
{% endwith %}
{{ benchmark.collect(parts="../../common_operations/check_cluster_health.json") }},
{
"operation": "index",
"warmup-time-period": 240,
"clients": {{bulk_indexing_clients | default(8)}},
"ignore-response-error-level": "{{error_level | default('non-fatal')}}"
},
{
"name": "refresh-after-index",
"operation": "refresh"
},
{{ benchmark.collect(parts="../../common_operations/force_merge.json") }}
]
},
{
"name": "append-sorted-no-conflicts-index-only",
"description": "Indexes the whole document corpus in an index sorted by pickup_datetime field in descending order (most recent first) and using a setup that will lead to a larger indexing throughput than the default settings and produce a smaller index (higher compression rate). Document ids are unique so all index operations are append only.",
"schedule": [
{{ benchmark.collect(parts="../../common_operations/delete_index.json") }},
{% with default_index_settings={
"index.codec": "best_compression",
"index.refresh_interval": "30s",
"index.translog.flush_threshold_size": "4g",
"index.sort.field": "pickup_datetime",
"index.sort.order": "desc"
} %}
{{ benchmark.collect(parts="../../common_operations/create_index.json") }},
{% endwith %}
{{ benchmark.collect(parts="../../common_operations/check_cluster_health.json") }},
{
"operation": "index",
"warmup-time-period": 240,
"clients": {{bulk_indexing_clients | default(8)}},
"ignore-response-error-level": "{{error_level | default('non-fatal')}}"
},
{
"name": "refresh-after-index",
"operation": "refresh"
},
{{ benchmark.collect(parts="../../common_operations/force_merge.json") }}
]
},
{
"name": "update",
"schedule": [
{{ benchmark.collect(parts="../../common_operations/delete_index.json") }},
{% with default_index_settings={
"index.number_of_shards": number_of_shards | default(1),
"index.number_of_replicas": number_of_replicas | default(0),
"index.store.type": store_type | default('fs')
} %}
{{ benchmark.collect(parts="../../common_operations/create_index.json") }},
{% endwith %}
{{ benchmark.collect(parts="../../common_operations/check_cluster_health.json") }},
{
"operation": "update",
"warmup-time-period": 1200,
"clients": {{bulk_indexing_clients | default(8)}},
"ignore-response-error-level": "{{error_level | default('non-fatal')}}"
},
{
"name": "refresh-after-index",
"operation": "refresh"
},
{{ benchmark.collect(parts="../../common_operations/force_merge.json") }}
]
}