29. l "template" index
l
l number_of_shards
l number_of_replicas
l
l type
Index template
{ "template": "talk.request_log-*",
"settings": {
"number_of_shards": 32,
"number_of_replicas": 1,
},
"mappings": {
"_default_": {
"properties": {
"method_name": {
"type": "keyword",
},
"ip": {
"type": "ip",
},
…
…}
32. l
l resource overhead
l
l Indexing
Shard sizing
How many shards should I have in my Elasticsearch cluster?
“How many shards should I have?” and “How large should my shards be?”
37. l Elasticsearch
l Version: 5.6.1
l 40 CPU cores, 256 GB memory, 8 TB HDD x 12ea JBOD, 10Gbps network
l disk write throughput: 200 MB/s
l
l auto-generated document id
l processors
l shard 1 à 2)
38. l document id
l Index API:
l document
l auto-generated id document id
l Index API:
l 1.3x speed up
auto-generated document id
: [5.6]Tune for indexing speed#Use auto-generated ids, [5.6.1]InternalEngine#planIndexingAsPrimary()
39. l _nodes/os
l os.available_processors: 40
l os.allocated_processors: 32
l processor
l elastic/elasticsearch#20874
l processors: 38 bulk request
l 1.3x speed up
processors
: [5.6]Thread Pool#Processors setting