You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update performance.md - Remove old curl commands (#8761)
* Update performance.md
Updating old curl examples to current standard across the rest of the documentation.
Signed-off-by: Landon Lengyel <landon@almonde.org>
* Apply suggestions from code review
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
---------
Signed-off-by: Landon Lengyel <landon@almonde.org>
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Signed-off-by: Eric Pugh <epugh@opensourceconnections.com>
Replace the `os-endpoint` and `index-name` with your endpoint and index name.
37
+
{% include copy-curl.html %}
41
38
42
39
In the output, note the number of flushes and the total time. The following example output shows that there are 124 flushes, which took 17,690 milliseconds:
43
40
@@ -53,9 +50,15 @@ In the output, note the number of flushes and the total time. The following exam
53
50
To increase the flush threshold size, call the following API operation:
It's a best practice to increase the `index.translog.flush_threshold_size` only for the current index. After you confirm the outcome, apply the changes to the index template.
73
76
{: .note}
@@ -127,14 +130,14 @@ To reduce the size of the OpenSearch response, use the `filter_path` parameter t
127
130
In the following example, the `index-name`, `type-name`, and `took` fields are excluded from the response:
POST /_bulk?pretty&filter_path=-took,-items.index._index,-items.index._type
131
134
{ "index" : { "_index" : "test2", "_id" : "1" } }
132
135
{ "user" : "testuser" }
133
136
{ "update" : {"_id" : "1", "_index" : "test2"} }
134
137
{ "doc" : {"user" : "example"} }
135
138
```
136
-
{% include copy.html %}
139
+
{% include copy-curl.html %}
137
140
138
141
## Compression codecs
139
142
140
-
In OpenSearch 2.9 and later, there are two new codecs for compression: `zstd` and `zstd_no_dict`. You can optionally specify a compression level for these in the `index.codec.compression_level` setting with values in the [1, 6] range. [Benchmark]({{site.url}}{{site.baseurl}}/im-plugin/index-codecs/#benchmarking) data shows that `zstd` provides a 7% better write throughput and `zstd_no_dict` provides a 14% better throughput, along with a 30% improvement in storage compared with the `default` codec. For more information about compression, see [Index codecs]({{site.url}}{{site.baseurl}}/im-plugin/index-codecs/).
143
+
In OpenSearch 2.9 and later, there are two new codecs for compression: `zstd` and `zstd_no_dict`. You can optionally specify a compression level for these in the `index.codec.compression_level` setting with values in the [1, 6] range. [Benchmark]({{site.url}}{{site.baseurl}}/im-plugin/index-codecs/#benchmarking) data shows that `zstd` provides a 7% better write throughput and `zstd_no_dict` provides a 14% better throughput, along with a 30% improvement in storage compared with the `default` codec. For more information about compression, see [Index codecs]({{site.url}}{{site.baseurl}}/im-plugin/index-codecs/).
0 commit comments