mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 09:28:27 +00:00
Discourage from opting in for the niofs
store. (#52638)
Indices open with the `niofs` store type load much more data on-heap than indices open with the `mmapfs` store type. This limitation is now documented and examples have been updated to show how to update settings to use the `mmapfs` store type rather than `niofs`.
This commit is contained in:
parent
9b0ddc1c03
commit
5f81906fcf
@ -3,6 +3,10 @@
|
||||
|
||||
The store module allows you to control how index data is stored and accessed on disk.
|
||||
|
||||
NOTE: This is a low-level setting. Some store implementations have poor
|
||||
concurrency or disable optimizations for heap memory usage. We recommend
|
||||
sticking to the defaults.
|
||||
|
||||
[float]
|
||||
[[file-system]]
|
||||
=== File system storage types
|
||||
@ -11,12 +15,12 @@ There are different file system implementations or _storage types_. By default,
|
||||
Elasticsearch will pick the best implementation based on the operating
|
||||
environment.
|
||||
|
||||
This can be overridden for all indices by adding this to the
|
||||
`config/elasticsearch.yml` file:
|
||||
The storage type can also be explicitly set for all indices by configuring the
|
||||
store type in the `config/elasticsearch.yml` file:
|
||||
|
||||
[source,yaml]
|
||||
---------------------------------
|
||||
index.store.type: niofs
|
||||
index.store.type: hybridfs
|
||||
---------------------------------
|
||||
|
||||
It is a _static_ setting that can be set on a per-index basis at index
|
||||
@ -27,7 +31,7 @@ creation time:
|
||||
PUT /my_index
|
||||
{
|
||||
"settings": {
|
||||
"index.store.type": "niofs"
|
||||
"index.store.type": "hybridfs"
|
||||
}
|
||||
}
|
||||
---------------------------------
|
||||
@ -47,15 +51,15 @@ supported systems but is subject to change.
|
||||
The Simple FS type is a straightforward implementation of file system
|
||||
storage (maps to Lucene `SimpleFsDirectory`) using a random access file.
|
||||
This implementation has poor concurrent performance (multiple threads
|
||||
will bottleneck). It is usually better to use the `niofs` when you need
|
||||
index persistence.
|
||||
will bottleneck) and disables some optimizations for heap memory usage.
|
||||
|
||||
[[niofs]]`niofs`::
|
||||
|
||||
The NIO FS type stores the shard index on the file system (maps to
|
||||
Lucene `NIOFSDirectory`) using NIO. It allows multiple threads to read
|
||||
from the same file concurrently. It is not recommended on Windows
|
||||
because of a bug in the SUN Java implementation.
|
||||
because of a bug in the SUN Java implementation and disables some
|
||||
optimizations for heap memory usage.
|
||||
|
||||
[[mmapfs]]`mmapfs`::
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user