@@ -50,21 +50,40 @@ is `node`, meaning it will throttle based on the node level settings and
50
50
participate in the global throttling happening. Both settings can be set
51
51
using the index update settings API dynamically.
52
52
53
- The following sections lists all the different storage types supported.
54
-
55
53
[float]
56
54
[[file-system]]
57
- === File System
55
+ === File system storage types
58
56
59
57
File system based storage is the default storage used. There are
60
- different implementations or storage types . The best one for the
58
+ different implementations or _storage types_ . The best one for the
61
59
operating environment will be automatically chosen: `mmapfs` on
62
60
Solaris/Linux/Windows 64bit, `simplefs` on Windows 32bit, and
63
61
`niofs` for the rest.
64
62
65
- The following are the different file system based storage types:
63
+ This can be overridden for all indices by adding this to the
64
+ `config/elasticsearch.yml` file:
65
+
66
+ [source,yaml]
67
+ ---------------------------------
68
+ index.store.type: niofs
69
+ ---------------------------------
70
+
71
+ It can also be set on a per-index basis at index creation time:
72
+
73
+ [source,json]
74
+ ---------------------------------
75
+ curl -XPUT localhost:9200/my_index
76
+ {
77
+ "settings": {
78
+ "index.store.type": "niofs"
79
+ }
80
+ }
81
+ ---------------------------------
82
+
83
+ The following sections lists all the different storage types supported.
66
84
67
85
[float]
86
+ [[simplefs]]
68
87
==== Simple FS
69
88
70
89
The `simplefs` type is a straightforward implementation of file system
@@ -74,6 +93,7 @@ will bottleneck). It is usually better to use the `niofs` when you need
74
93
index persistence.
75
94
76
95
[float]
96
+ [[niofs]]
77
97
==== NIO FS
78
98
79
99
The `niofs` type stores the shard index on the file system (maps to
@@ -90,9 +110,11 @@ Lucene `MMapDirectory`) by mapping a file into memory (mmap). Memory
90
110
mapping uses up a portion of the virtual memory address space in your
91
111
process equal to the size of the file being mapped. Before using this
92
112
class, be sure your have plenty of virtual address space.
113
+ See <<vm-max-map-count>>
93
114
94
115
[float]
95
116
[[store-memory]]
96
117
=== Memory
97
118
98
- The `memory` type stores the index in main memory.
119
+ The `memory` type stores the index in main memory, using Lucene's
120
+ `RamIndexStore`.
0 commit comments