{"id":341,"date":"2018-08-14T09:11:05","date_gmt":"2018-08-14T00:11:05","guid":{"rendered":"http:\/\/dong1lkim.oboki.net\/?p=341"},"modified":"2019-09-01T22:21:34","modified_gmt":"2019-09-01T13:21:34","slug":"elasticsearch-configuration","status":"publish","type":"post","link":"https:\/\/oboki.net\/workspace\/data-engineering\/elasticsearch\/elasticsearch-configuration\/","title":{"rendered":"[ElasticSearch] Configuration"},"content":{"rendered":"<h1>ElasticSearch \uc124\uc815\/\uad00\ub9ac<\/h1>\n<p><img decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi\/X4hMFym0-uo\/maxresdefault.jpg\" alt=\"image\" \/><\/p>\n<h2>elasticsearch.yml<\/h2>\n<p>\uc544\ub798\ub294 \uc5d8\ub77c\uc2a4\ud2f1\uc11c\uce58 \ubc14\uc774\ub108\ub9ac \ub0b4\uc5d0 yml.template \ub85c \uae30\ubcf8 \uae30\uc7ac\ub41c \ud30c\ub77c\ubbf8\ud130<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter Name<\/th>\n<th>Default Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>cluster.name<\/td>\n<td>my-application<\/td>\n<\/tr>\n<tr>\n<td>node.name<\/td>\n<td>node-1<\/td>\n<\/tr>\n<tr>\n<td>node.attr.rack<\/td>\n<td>r1<\/td>\n<\/tr>\n<tr>\n<td>path.data<\/td>\n<td>\/path\/to\/data<\/td>\n<\/tr>\n<tr>\n<td>path.logs<\/td>\n<td>\/path\/to\/logs<\/td>\n<\/tr>\n<tr>\n<td>bootstrap.memory_lock<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>network.host<\/td>\n<td>192.168.0.1<\/td>\n<\/tr>\n<tr>\n<td>http.port<\/td>\n<td>9200<\/td>\n<\/tr>\n<tr>\n<td>discovery.zen.ping.unicast.hosts<\/td>\n<td>[&#8220;host1&#8221;, &#8220;host2&#8221;]<\/td>\n<\/tr>\n<tr>\n<td>discovery.zen.minimum_master_nodes<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>gateway.recover_after_nodes<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>action.destructive_requires_name<\/td>\n<td>true<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>cluster.name<\/code><br \/>\n\ud074\ub7ec\uc2a4\ud130 \uc774\ub984. \uc774 \uc774\ub984\uc774 \uac19\uc544\uc57c \uba64\ubc84 \ub178\ub4dc\ub4dc\ub4e4\uc774 \uc870\uc778\uc774 \uac00\ub2a5\ud558\ub2e4. \ub2e4\ub978 \uc5d8\ub77c\uc2a4\ud2f1\uc11c\uce58 \uc2dc\uc2a4\ud15c \ub178\ub4dc\uc758 \ud074\ub7ec\uc2a4\ud130 \uc774\ub984\uc774 \uac19\uc9c0 \uc54a\ub3c4\ub85d \uc8fc\uc758\ud574\uc57c \ud55c\ub2e4.<\/p>\n<p><code>node.name<\/code><br \/>\n${HOSTNAME} \ub610\ub294 \ub178\ub4dc \uc774\ub984<br \/>\n${&#8230;} \uacfc \uac19\uc774 \ud658\uacbd \ubcc0\uc218\ub97c \ucc38\uc870\ud560 \uc218\ub3c4 \uc788\ub2e4.<\/p>\n<p><code>path.data<\/code><br \/>\n\uc0e4\ub4dc \ubc0f \ub808\ud50c\ub9ac\uce74 \ub370\uc774\ud130\ud30c\uc77c\uc774 \uc800\uc7a5\ub418\ub294 \uacbd\ub85c.<br \/>\n\uc544\ub798\uc640 \uac19\uc774 \uc5ec\ub7ec \uacbd\ub85c\ub97c \uc0ac\uc6a9\ud560 \uc218\ub3c4 \uc788\ub2e4.<\/p>\n<pre><code class=\"yaml\">path:\n  data:\n    - \/mnt\/elasticsearch_1\n    - \/mnt\/elasticsearch_2\n    - \/mnt\/elasticsearch_3\n<\/code><\/pre>\n<p><code>path.logs<\/code><br \/>\nelasticsearch \ub178\ub4dc\uc758 \ub85c\uadf8\uac00 \uc800\uc7a5\ub418\ub294 \uacbd\ub85c.<\/p>\n<p><code>bootstrap.memory_lock<\/code><\/p>\n<p><code>network.host<\/code><br \/>\n\uae30\ubcf8\uac12\uc73c\ub85c\ub294 loopback address \uc5d0\ub9cc \ubc14\uc778\ub529 \ub41c\ub2e4. \ud074\ub7ec\uc2a4\ud130 \uad6c\uc131\uc744 \ud558\uae30 \uc704\ud574\uc11c\ub294 \ud074\ub7ec\uc2a4\ud130 \ud1b5\uc2e0\uc774 \uac00\ub2a5\ud55c NIC\uc758 IP Address \ub97c \uc9c0\uc815\ud574\uc8fc\uba74 \ub41c\ub2e4.<\/p>\n<p><code>http.port<\/code><br \/>\nHTTP REQUEST \ub97c \uc218\uc2e0\ud558\ub294 \ud3ec\ud2b8<br \/>\n\ub2e8\uc77c \uac12 \ub610\ub294 \ubc94\uc704 \uac12\uc744 \uc785\ub825\ud560 \uc218 \uc788\ub2e4.<br \/>\n\uae30\ubcf8\uac12: 9200-9300 . \ubc94\uc704 \uac12\uc73c\ub85c \uc785\ub825\ud558\ub294 \uacbd\uc6b0 \ucd5c\ucd08\ub85c \ud68d\ub4dd\ud55c \ud3ec\ud2b8 \ub118\ubc84\ub97c \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p><code>transport.tcp.port<\/code><br \/>\n\ub178\ub4dc \uac04 \ud1b5\uc2e0\uc744 \ud558\ub294 \ud3ec\ud2b8<br \/>\n\ub2e8\uc77c \uac12 \ub610\ub294 \ubc94\uc704 \uac12\uc744 \uc785\ub825\ud560 \uc218 \uc788\ub2e4.<br \/>\n\uae30\ubcf8\uac12: 9300-9400 . \ubc94\uc704 \uac12\uc73c\ub85c \uc785\ub825\ud558\ub294 \uacbd\uc6b0 \ucd5c\ucd08\ub85c \ud68d\ub4dd\ud55c \ud3ec\ud2b8 \ub118\ubc84\ub97c \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p><code>discovery.zen.ping.unicast.hosts<\/code><br \/>\n\uc5d8\ub77c\uc2a4\ud2f1\uc11c\uce58\uc5d0\ub294 &quot;Zen Discovery&quot; \ub77c\uace0 \ubd88\ub9ac\uc6b0\ub294 \ud074\ub7ec\uc2a4\ud130\ub9c1, \ub9c8\uc2a4\ud130 election \uad6c\uc870\uac00 \uc788\ub2e4.<br \/>\n\uc0dd\uc874\uc2e0\uace0\ub97c \ud560 \uc218 \uc788\ub294 \uac00\uae4c\uc6b4 \ub178\ub4dc\uc758 list \ub97c \uc801\ub294 \uac83\uc778\uac00(?)<\/p>\n<p><code>discovery.zen.minimum_master_nodes<\/code><br \/>\nsplit-brain \uc73c\ub85c \uc778\ud574 \ubcc4\uac1c\uc758 \ub450 \ud074\ub7ec\uc2a4\ud130\uac00 \uc0dd\uae30\ub294 \uc0c1\ud669\uc744 \ubc29\uc9c0\ud558\uae30 \uc704\ud55c \uc124\uc815.<\/p>\n<p><a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/discovery-settings.html\">https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/discovery-settings.html<\/a><br \/>\nTo avoid a split brain, this setting should be set to a quorum of master-eligible nodes<br \/>\n(master_eligible_nodes \/ 2) + 1<\/p>\n<p><code>gateway.recover_after_nodes<\/code><br \/>\n\uc5ec\uae30\uc5d0 \uc9c0\uc815\ub41c \uac2f\uc218 \uc774\uc0c1\uc758 node\uac00 \ud074\ub7ec\uc2a4\ud130\uc5d0 \ucc38\uac00\ud588\uc744 \ub54c\uc5d0 recovery \ub97c \uc218\ud589\ud568.<br \/>\n<a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/modules-gateway.html\">https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/modules-gateway.html<\/a><\/p>\n<p><code>action.destructive_requires_name<\/code><br \/>\n\uc774 \uc124\uc815\uc774 <code>true<\/code> \ub85c \ub418\uc5b4\uc788\ub294 \uacbd\uc6b0, \uc778\ub371\uc2a4 \uc0ad\uc81c API \uc5d0\uc11c wildcard \ub610\ub294 _all \uc744 \uc218\ud589\ud560 \uc218 \uc5c6\ub2e4.<\/p>\n<p><code>node.attr.rack<\/code><\/p>\n<p><code>node.attr.zone<\/code><\/p>\n<p>\uc11c\ub85c \ub2e4\ub978 \ub799 \ub610\ub294 \uc874\uc5d0 \uc704\uce58\ud55c \ub178\ub4dc\ub4e4 \uac04\uc758 shard \ud560\ub2f9 \ub8f0\uc744 \uc815\uc758\ud560 \uc218 \uc788\ub2e4. rack \uc9c0\uc815 \uc2dc\uc5d0\ub294, \uac00\ub2a5\ud55c\ud55c \ub2e4\ub978 \ub799\uc5d0 \ub808\ud50c\ub9ac\uce74\ub97c \uc124\uc815\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\uace0 \ubd88\uac00\ub2a5\ud558\uba74 \uac19\uc740 \ub799 \ub0b4\uc5d0\ub3c4 \ubcf5\uc81c\ubcf8\uc744 \ud560\ub2f9\ud55c\ub2e4.<br \/>\nzone \uc9c0\uc815\uc2dc\uc5d0\ub294 \ud55c \uc874\uc774 \uc7a5\uc560 \uc0c1\ud669\uc77c \ub54c\uc5d0 \ud574\ub2f9 \uc874\uc758 shard\ub97c \ub2e4\ub978 \uc874\uc5d0 \uc7ac\ud560\ub2f9\ud558\uc9c0 \uc54a\ub294\ub2e4.<br \/>\n<a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/allocation-awareness.html\">https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/allocation-awareness.html<\/a><\/p>\n<p><code>cluster.routing.allocation.awareness.force.zone.values<\/code><\/p>\n<p><code>cluster.routing.allocation.awareness.attributes<\/code><\/p>\n<h2>log4j2.properties<\/h2>\n<p>\ub2e4\uc74c\uacfc \uac19\uc774 \ub85c\uac70 \uc124\uc815\uc744 \ud560 \uc218 \uc788\ub2e4.<br \/>\n<a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/logging.html\">https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/logging.html<\/a><\/p>\n<ul>\n<li>command-line<br \/>\nex) <code>-E logger.org.elasticsearch.transport=trace<\/code><\/li>\n<li>elasticsearch.yml\n<pre><code class=\"yml\">logger.org.elasticsearch.transport: trace\n<\/code><\/pre>\n<\/li>\n<li>cluster setting API\n<pre><code class=\"shell\">curl -X PUT \"localhost:9200\/_cluster\/settings\" -H 'Content-Type: application\/json' -d'\n{\n\"transient\": {\n  \"logger.org.elasticsearch.transport\": \"trace\"\n}\n}\n'\n<\/code><\/pre>\n<\/li>\n<li>log4j2.properties<br \/>\n\uc804\ubb38\uc801(?)\uc73c\ub85c \ub85c\uae45 \uc124\uc815\uc744 \ud558\uae30 \uc704\ud574\uc11c \uc774 \ud30c\uc77c\uc744 \uc218\uc815\ud560 \uc218 \uc788\ub2e4.<\/p>\n<pre><code class=\"java\">logger.transport.name = org.elasticsearch.transport\nlogger.transport.level = trace\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>jvm.options<\/h2>\n<table>\n<thead>\n<tr>\n<th>Option Name<\/th>\n<th>Default Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>-Xms<\/td>\n<td>-Xms1g<\/td>\n<\/tr>\n<tr>\n<td>-Xmx<\/td>\n<td>-Xmx1g<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Index Settings<\/h2>\n<p><a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/index-modules.html\">https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/index-modules.html<\/a><\/p>\n<h3>Static index settings<\/h3>\n<p>Below is a list of all static index settings that are not associated with any specific index module:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter Name<\/th>\n<th>Default Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>index.number_of_shards<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>index.shard.check_on_startup<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>index.code<\/td>\n<td>LZ4<\/td>\n<\/tr>\n<tr>\n<td>index_routing_partition_size<\/td>\n<td>1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>index.number_of_shards<\/code><br \/>\n\uc778\ub371\uc2a4 \ubcc4 primary shard \uc758 \uac2f\uc218\ub97c \uc815\uc758. default:5<\/p>\n<p><code>index.shard.check_on_startup<\/code><br \/>\nindex open (\uae30\ub3d9 \ub610\ub294 close \uc774\ud6c4 \ub2e4\uc2dc open) \uc791\uc5c5 \ub54c\uc5d0, corruption \ud655\uc778<\/p>\n<ul>\n<li>false<br \/>\n\uae30\ubcf8\uac12. corruption \ud655\uc778\ud558\uc9c0 \uc54a\uc74c.  <\/li>\n<li>checksum<br \/>\nCheck for physical corruption.<\/li>\n<li>true<br \/>\nCheck for both physical and logical corruption.<\/li>\n<li>fix<br \/>\nCheck for both physical and logical corruption. Segments that were reported as corrupted will be automatically removed. This option may result in data loss. Use with extreme caution!<\/li>\n<\/ul>\n<p><code>index.codec<\/code><br \/>\n\uc555\ucd95 \ucf54\ub371<\/p>\n<ul>\n<li>null<br \/>\nLZ4<\/li>\n<li>best_compression<br \/>\nDEFLATE<\/li>\n<\/ul>\n<p><code>index.routing_partition_size<\/code><br \/>\nindex\ubcc4\ub85c document\uc5d0 custom id \ub97c \ubd80\uc5ec\ud558\ub294 \uacbd\uc6b0, \uc774 \uc18d\uc131\uc744 \ud1b5\ud574\uc11c \uac80\uc0c9\ud558\ub294 \ud30c\ud2f0\uc158 \uac2f\uc218\ub97c \uc904\uc77c \uc218 \uc788\ub2e4.<br \/>\n\uae30\ubcf8\uc801\uc73c\ub85c \ubaa8\ub4e0 \uc0e4\ub4dc\uc5d0 \uade0\ub4f1\ud558\uac8c document \ub97c \ubd84\ubc30\ud558\uc9c0\ub9cc, custom id \ub97c \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0\ub294 \uc544\ub2d0 \uc218 \uc788\ub2e4. \uae30\ubcf8\uac12\uc740 1<br \/>\n\uc798 \ubaa8\ub974\uaca0\ub2e4 \uc5b4\ub824\uc6c0<\/p>\n<h3>Dynamic index settings<\/h3>\n<p>Below is a list of all dynamic index settings that are not associated with any specific index module:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter Name<\/th>\n<th>Default Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>index.number_of_replicas<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>index.auto_expand_replicas<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>index.refresh_interval<\/td>\n<td>1s<\/td>\n<\/tr>\n<tr>\n<td>index.max_result_window<\/td>\n<td>10000<\/td>\n<\/tr>\n<tr>\n<td>index.max_inner_result_window<\/td>\n<td>100<\/td>\n<\/tr>\n<tr>\n<td>index.max_rescore_window<\/td>\n<td>10000<\/td>\n<\/tr>\n<tr>\n<td>index.max_docvalue_fields_search<\/td>\n<td>100<\/td>\n<\/tr>\n<tr>\n<td>index.max_script_fields<\/td>\n<td>32<\/td>\n<\/tr>\n<tr>\n<td>index.max_ngram_diff<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>index.max_shingle_diff<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>index.blocks.read_only<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>index.blocks.read_only_allow_delete<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>index.blocks.read<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>index.blocks.write<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>index.blocks.metadata<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>index.max_refresh_listeners<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>index.highlight.max_analyzed_offset<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>index.max_terms_count<\/td>\n<td>65536<\/td>\n<\/tr>\n<tr>\n<td>index.routing.allocation.enable<\/td>\n<td>all<\/td>\n<\/tr>\n<tr>\n<td>index.routing.rebalance.enable<\/td>\n<td>all<\/td>\n<\/tr>\n<tr>\n<td>index.gc_deletes<\/td>\n<td>60s<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>index.number_of_replicas<\/code><br \/>\n\uae30\ubcf8\uac12 1<br \/>\n\ub3d9\uc801\uc73c\ub85c API \ub97c \uc774\uc6a9\ud574 \ubcc0\uacbd\ud560 \uc218 \uc788\ub2e4. \ube60\ub974\uac8c \ub370\uc774\ud130\ub97c \uc778\ub371\uc2f1\ud574\uc57c\ud558\ub294 \uacbd\uc6b0 (\uc608\ub97c \ub4e4\uc5b4 \ucd08\uae30\uc801\uc7ac), \uc774 \uac12\uc744 0\uc73c\ub85c \ud574\uc11c \uc218\uc9d1\ud55c \ub4a4 \uc774\ud6c4 \ud074\ub7ec\uc2a4\ud130\uc5d0 \ubd80\ud558\uac00 \uc5c6\uc744 \ub54c \ub3d9\uc801\uc73c\ub85c \ubcc0\uacbd\ud558\uba74 \uc720\ub9ac\ud558\ub2e4.<\/p>\n<pre><code class=\"bash\">curl -X PUT \"localhost:9200\/twitter\/_settings\" -H 'Content-Type: application\/json' -d'\n{\n    \"index\" : {\n        \"number_of_replicas\" : 2\n    }\n}\n'\n<\/code><\/pre>\n<p><code>index.auto_expand_replicas<\/code><br \/>\n&quot;0-all&quot; \uac12\uc73c\ub85c \uc124\uc815\ud558\ub294 \uacbd\uc6b0 \ubaa8\ub4e0 \ub178\ub4dc\uc5d0 replica\ub97c \uc0dd\uc131\uc2dc\ud0a4\ub294 \uac83 \uac19\ub2e4. shard allocation awareness rule \uc5d0 \uad6c\uc560\ubc1b\uc9c0 \uc54a\ub294\ub2e4\ub294 \uac83 \uac19\uc740\ub370, rack, zone \uc124\uc815 \uc774\ud6c4\uc5d0 \ucd94\uac00 \ud14c\uc2a4\ud2b8\ub97c \ud574\ubd10\uc57c\ud560 \uac83 \uac19\ub2e4.<br \/>\n<a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/6.3\/index-modules.html#_static_index_settings\">https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/6.3\/index-modules.html#_static_index_settings<\/a><\/p>\n<ul>\n<li>false<br \/>\n\uae30\ubcf8\uac12<\/li>\n<li>range<br \/>\n0-5 or 0-all  <\/li>\n<\/ul>\n<p><code>index.refresh_interval<\/code><br \/>\nindex\uc5d0 checkpoint(?) \uac00 \ubc1c\uc0dd\ud558\ub294 \uc8fc\uae30. \uc9c0\uae08 \ub370\uc774\ud130\uac00 \uc218\uc9d1\ub410\ub2e4\uba74 \uc774 \uae30\uac04\ub9cc\ud07c \uc9c0\ub098\uc57c \uc870\ud68c\uac00 \uac00\ub2a5\ud558\ub2e4.<br \/>\n\uae30\ubcf8\uac12 1s<br \/>\n-1 \ub85c \uc124\uc815\ud558\ub294 \uacbd\uc6b0 refresh \ud558\uc9c0 \uc54a\uc74c<\/p>\n<p><code>index.max_result_window<\/code><br \/>\n\uae30\ubcf8\uac12 10000<br \/>\n&quot;from + size&quot; \uac12\uc774 \uc774 \uc218\uce58\ub97c \ub118\uc5b4\uc11c\ub294 \uacbd\uc6b0 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd. \ud398\uc774\uc9d5 \ucc98\ub9ac\uc640 \uad00\ub828\ub41c \uac83 \uac19\ub2e4. \ud398\uc774\uc9d5 \ucc98\ub9ac\uc5d0\uc11c \ubb38\uc81c\uac00 \uc0dd\uaca8 \uc774 \uc218\uce58\ub97c \uad73\uc774 \ub192\uc774\uc9c0 \ub9d0\uace0 Scroll, Search After \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud574\ubcf4\ub77c\uace0 \ud558\ub294\ub4ef. \uc5b4\ub835\ub124<\/p>\n<p><code>index.max_inner_result_window<\/code><br \/>\nThe maximum value of from + size for inner hits definition and top hits aggregations to this index. Defaults to 100. Inner hits and top hits aggregation take heap memory and time proportional to from + size and this limits that memory.<\/p>\n<p><code>index.max_rescore_window<\/code><br \/>\nThe maximum value of window_size for rescore requests in searches of this index. Defaults to index.max_result_window which defaults to 10000. Search requests take heap memory and time proportional to max(window_size, from + size) and this limits that memory.<\/p>\n<p><code>index.max_docvalue_fields_search<\/code><br \/>\nThe maximum number of docvalue_fields that are allowed in a query. Defaults to 100. Doc-value fields are costly since they might incur a per-field per-document seek.<\/p>\n<p><code>index.max_script_fields<\/code><br \/>\nThe maximum number of script_fields that are allowed in a query. Defaults to 32.<\/p>\n<p><code>index.max_ngram_diff<\/code><br \/>\nThe maximum allowed difference between min_gram and max_gram for NGramTokenizer and NGramTokenFilter. Defaults to 1.<\/p>\n<p><code>index.max_shingle_diff<\/code><br \/>\nThe maximum allowed difference between max_shingle_size and min_shingle_size for ShingleTokenFilter. Defaults to 3.<\/p>\n<p><code>index.blocks.read_only<\/code><br \/>\nfalse(\uae30\ubcf8\uac12) -&gt; true: \ud574\ub2f9 \uc778\ub371\uc2a4\ub97c read_only \uc0c1\ud0dc\ub85c \ubcc0\uacbd. AnyMiner\uc758 Warm \uc0c1\ud0dc?<\/p>\n<p><code>index.blocks.read_only_allow_delete<\/code><br \/>\nfalse(\uae30\ubcf8\uac12) -&gt; true: \ud574\ub2f9 \uc778\ub371\uc2a4\ub97c read_only \uc0c1\ud0dc\ub85c \ubcc0\uacbd\ud558\uace0 \uc0ad\uc81c\uac00 \uac00\ub2a5\ud558\ub3c4\ub85d \ud568.<\/p>\n<p><code>index.blocks.read<\/code><br \/>\nfalse(\uae30\ubcf8\uac12) -&gt; true: \ud574\ub2f9 \uc778\ub371\uc2a4\ub97c \uc77d\uc9c0 \ubabb\ud558\uac8c \ud568<\/p>\n<p><code>index.blocks.write<\/code><br \/>\nfalse(\uae30\ubcf8\uac12) -&gt; true: \ud574\ub2f9 \uc778\ub371\uc2a4\ub97c \uc4f0\uae30 \ubd88\uac00\ub2a5\ud558\uac8c \ud568. read_only \ud56d\ubaa9\uacfc\ub294 \ub2e4\ub974\uac8c metadata\uc5d0\ub294 \ud615\ud5a5\uc744 \ubbf8\uce58\uc9c0 \uc54a\uc74c<\/p>\n<p><code>index.blocks.metadata<\/code><br \/>\nfalse(\uae30\ubcf8\uac12) -&gt; true: \ud574\ub2f9 \uc778\ub371\uc2a4\uc758 \uba54\ud0c0\ub370\uc774\ud130\uc758 \uc77d\uae30\/\uc4f0\uae30\ub97c \ubabb\ud558\uac8c \ud568<\/p>\n<p><code>index.max_refresh_listeners<\/code><br \/>\nMaximum number of refresh listeners available on each shard of the index. These listeners are used to implement refresh=wait_for.<\/p>\n<p><code>index.highlight.max_analyzed_offset<\/code><br \/>\nThe maximum number of characters that will be analyzed for a highlight request. This setting is only applicable when highlighting is requested on a text that was indexed without offsets or term vectors. By default this settings is unset in 6.x, defaults to -1.<\/p>\n<p><code>index.max_terms_count<\/code><br \/>\nThe maximum number of terms that can be used in Terms Query. Defaults to 65536.<\/p>\n<p><code>index.routing.allocation.enable<\/code><br \/>\nControls shard allocation for this index. It can be set to:<\/p>\n<ul>\n<li>all (default) &#8211; Allows shard allocation for all shards.<\/li>\n<li>primaries &#8211; Allows shard allocation only for primary shards.<\/li>\n<li>new_primaries &#8211; Allows shard allocation only for newly-created primary shards.<\/li>\n<li>none &#8211; No shard allocation is allowed.<\/li>\n<\/ul>\n<p><code>index.routing.rebalance.enable<\/code><br \/>\nEnables shard rebalancing for this index. It can be set to:<\/p>\n<ul>\n<li>all (default) &#8211; Allows shard rebalancing for all shards.<\/li>\n<li>primaries &#8211; Allows shard rebalancing only for primary shards.<\/li>\n<li>replicas &#8211; Allows shard rebalancing only for replica shards.<\/li>\n<li>none &#8211; No shard rebalancing is allowed.<\/li>\n<\/ul>\n<p><code>index.gc_deletes<\/code><br \/>\nThe length of time that a deleted document\u2019s version number remains available for further versioned operations. Defaults to 60s.<\/p>\n<h2>delay allocation<\/h2>\n<p><a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/delayed-allocation.html\">https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/delayed-allocation.html<\/a><\/p>\n<h2>\ud074\ub7ec\uc2a4\ud130 \uad6c\uc131 \uace0\uae09<\/h2>\n<p><a href=\"http:\/\/kimjmin.net\/2018\/01\/2018-01-build-es-cluster-5\/\">http:\/\/kimjmin.net\/2018\/01\/2018-01-build-es-cluster-5\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ElasticSearch \uc124\uc815\/\uad00\ub9ac elasticsearch.yml \uc544\ub798\ub294 \uc5d8\ub77c\uc2a4\ud2f1\uc11c\uce58 \ubc14\uc774\ub108\ub9ac \ub0b4\uc5d0 yml.template \ub85c \uae30\ubcf8 \uae30\uc7ac\ub41c \ud30c\ub77c\ubbf8\ud130 Parameter Name Default Value cluster.name my-application node.name node-1 node.attr.rack r1 path.data \/path\/to\/data path.logs \/path\/to\/logs bootstrap.memory_lock true network.host 192.168.0.1 http.port 9200 discovery.zen.ping.unicast.hosts [&#8220;host1&#8221;, &#8220;host2&#8221;] discovery.zen.minimum_master_nodes gateway.recover_after_nodes 3 action.destructive_requires_name true cluster.name \ud074\ub7ec\uc2a4\ud130 \uc774\ub984. \uc774 \uc774\ub984\uc774 \uac19\uc544\uc57c \uba64\ubc84 \ub178\ub4dc\ub4dc\ub4e4\uc774 \uc870\uc778\uc774 \uac00\ub2a5\ud558\ub2e4. \ub2e4\ub978 \uc5d8\ub77c\uc2a4\ud2f1\uc11c\uce58 \uc2dc\uc2a4\ud15c \ub178\ub4dc\uc758 \ud074\ub7ec\uc2a4\ud130 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[25,144],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-elasticsearch","tag-elasticsearch","tag-144"],"_links":{"self":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":6,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/341\/revisions"}],"predecessor-version":[{"id":1249,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/341\/revisions\/1249"}],"wp:attachment":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/categories?post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/tags?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}