Similarly, if I check my cluster stats, with GET /_cluster/stats?human&pretty
, the amount of memory usage reported by indexes.fielddata
, indexes.query_cache
and indexes.segments
doesn't even break 1gb when I total it all up.
{
"_nodes" : {
"total" : 3,
"successful" : 3,
"failed" : 0
},
"cluster_name" : "",
"cluster_uuid" : "",
"timestamp" : 1560963842218,
"status" : "green",
"indices" : {
"count" : 398,
"shards" : {
"total" : 2900,
"primaries" : 1450,
"replication" : 1.0,
"index" : {
"shards" : {
"min" : 2,
"max" : 10,
"avg" : 7.28643216080402
},
"primaries" : {
"min" : 1,
"max" : 5,
"avg" : 3.64321608040201
},
"replication" : {
"min" : 1.0,
"max" : 1.0,
"avg" : 1.0
}
}
},
"docs" : {
"count" : 138518010,
"deleted" : 70416
},
"store" : {
"size" : "85.5gb",
"size_in_bytes" : 91821712421
},
"fielddata" : {
"memory_size" : "8.7mb",
"memory_size_in_bytes" : 9199404,
"evictions" : 0
},
"query_cache" : {
"memory_size" : "55.2mb",
"memory_size_in_bytes" : 57936447,
"total_count" : 666875,
"hit_count" : 110716,
"miss_count" : 556159,
"cache_size" : 3867,
"cache_count" : 6026,
"evictions" : 2159
},
"completion" : {
"size" : "0b",
"size_in_bytes" : 0
},
"segments" : {
"count" : 17365,
"memory" : "318.1mb",
"memory_in_bytes" : 333577036,
"terms_memory" : "214.8mb",
"terms_memory_in_bytes" : 225249046,
"stored_fields_memory" : "53.5mb",
"stored_fields_memory_in_bytes" : 56119088,
"term_vectors_memory" : "0b",
"term_vectors_memory_in_bytes" : 0,
"norms_memory" : "3.7mb",
"norms_memory_in_bytes" : 3980288,
"points_memory" : "16.4mb",
"points_memory_in_bytes" : 17212474,
"doc_values_memory" : "29.5mb",
"doc_values_memory_in_bytes" : 31016140,
"index_writer_memory" : "12.9mb",
"index_writer_memory_in_bytes" : 13540456,
"version_map_memory" : "3.7mb",
"version_map_memory_in_bytes" : 3905041,
"fixed_bit_set" : "3.7mb",
"fixed_bit_set_memory_in_bytes" : 3909600,
"max_unsafe_auto_id_timestamp" : 1560902407122,
"file_sizes" : { }
}
},
"nodes" : {
"count" : {
"total" : 3,
"data" : 2,
"coordinating_only" : 0,
"master" : 3,
"ingest" : 2
},
"versions" : [
"6.5.1"
],
"os" : {
"available_processors" : 68,
"allocated_processors" : 6,
"names" : [
{
"name" : "Linux",
"count" : 3
}
],
"mem" : {
"total" : "510.1gb",
"total_in_bytes" : 547729575936,
"free" : "4.6gb",
"free_in_bytes" : 4971696128,
"used" : "505.4gb",
"used_in_bytes" : 542757879808,
"free_percent" : 1,
"used_percent" : 99
}
},
"process" : {
"cpu" : {
"percent" : 5
},
"open_file_descriptors" : {
"min" : 335,
"max" : 5792,
"avg" : 3959
}
},
"jvm" : {
"max_uptime" : "39.7d",
"max_uptime_in_millis" : 3432942854,
"versions" : [
{
"version" : "1.8.0_144",
"vm_name" : "Java HotSpot(TM) 64-Bit Server VM",
"vm_version" : "25.144-b01",
"vm_vendor" : "Oracle Corporation",
"count" : 3
}
],
"mem" : {
"heap_used" : "5.7gb",
"heap_used_in_bytes" : 6200750368,
"heap_max" : "8.5gb",
"heap_max_in_bytes" : 9181462528
},
"threads" : 498
},
"fs" : {
"total" : "516gb",
"total_in_bytes" : 554050781184,
"free" : "426.5gb",
"free_in_bytes" : 458021961728,
"available" : "426.5gb",
"available_in_bytes" : 458021961728
},
"plugins" : [
{
"name" : "ingest-user-agent",
"version" : "6.5.1",
"elasticsearch_version" : "6.5.1",
"java_version" : "1.8",
"description" : "Ingest processor that extracts information from a user agent",
"classname" : "org.elasticsearch.ingest.useragent.IngestUserAgentPlugin",
"extended_plugins" : [ ],
"has_native_controller" : false
},
{
"name" : "ingest-geoip",
"version" : "6.5.1",
"elasticsearch_version" : "6.5.1",
"java_version" : "1.8",
"description" : "Ingest processor that uses looksup geo data based on ip adresses using the Maxmind geo database",
"classname" : "org.elasticsearch.ingest.geoip.IngestGeoIpPlugin",
"extended_plugins" : [ ],
"has_native_controller" : false
},
{
"name" : "repository-s3",
"version" : "6.5.1",
"elasticsearch_version" : "6.5.1",
"java_version" : "1.8",
"description" : "The S3 repository plugin adds S3 repositories",
"classname" : "org.elasticsearch.repositories.s3.S3RepositoryPlugin",
"extended_plugins" : [ ],
"has_native_controller" : false
},
{
"name" : "found-elasticsearch",
"version" : "6.5.1",
"elasticsearch_version" : "6.5.1",
"java_version" : "1.8",
"description" : "Elasticsearch plugin for Found",
"classname" : "org.elasticsearch.plugin.found.FoundPlugin",
"extended_plugins" : [ ],
"has_native_controller" : false
}
],
"network_types" : {
"transport_types" : { },
"http_types" : { }
}
}
}
All of my largest indexes on disk are for monitoring (1.5gb each for 3 indexes), filebeat (400-700mb each for 60 indexes) and metricbeat (50-70mb each for 70 indexes). The application event data I'm indexing is tiny in comparison. The 2 largest indexes for my app data area only about 70mb each.
I've gained some new tools to understand the issues I'm facing, but I still don't really understand the best way forward.
Any ideas? Thanks again.