顿搜
飞过闲红千叶,夕岸在哪
类目归类
GET _cluster/stats?pretty{
"_nodes": { //节点信息
"total": 1,
"successful": 1,
"failed": 0
},
"cluster_name": "elasticsearch", // 集群名称
"cluster_uuid": "7zP8Nb6aTZWbF9AfNaPW5w", // 集群UUID
"timestamp": 1664576929289,
"status": "green",
"indices": { // 索引和分片的详细信息
"count": 3, // 索引的总数量
"shards": { // 分片的详细信息
"total": 45, // 索引的分片总数量
"primaries": 45, // 索引中的主分片数量
"replication": 0,
"index": {
"shards": {
"min": 5,
"max": 20,
"avg": 15
},
"primaries": {
"min": 5,
"max": 20,
"avg": 15
},
"replication": {
"min": 0,
"max": 0,
"avg": 0
}
}
},
"docs": { // 文档数据详细信息
"count": 59561, // 索引库中存储的文档总数量
"deleted": 106
},
"store": { // 数据存储情况信息
"size_in_bytes": 9785636, // 数据存储的总容量
"reserved_in_bytes": 0
},
"fielddata": {
"memory_size_in_bytes": 0,
"evictions": 0
},
"query_cache": {
"memory_size_in_bytes": 0, // 查询是缓存的详细信息
"total_count": 0,
"hit_count": 0,
"miss_count": 0,
"cache_size": 0,
"cache_count": 0,
"evictions": 0
},
"completion": {
"size_in_bytes": 0
},
"segments": { // 索引库中段的信息信息
"count": 143, // 索引库中段的总数量
"memory_in_bytes": 1017828,
"terms_memory_in_bytes": 678912,
"stored_fields_memory_in_bytes": 71000,
"term_vectors_memory_in_bytes": 0,
"norms_memory_in_bytes": 84288,
"points_memory_in_bytes": 0,
"doc_values_memory_in_bytes": 183628,
"index_writer_memory_in_bytes": 0,
"version_map_memory_in_bytes": 0,
"fixed_bit_set_memory_in_bytes": 24816,
"max_unsafe_auto_id_timestamp": 1,
"file_sizes": {
}
},
"mappings": { // 文档映射结构的详细信息
"field_types": [
{
"name": "date",
"count": 4,
"index_count": 2
},
{
"name": "float",
"count": 4,
"index_count": 1
},
{
"name": "keyword",
"count": 203,
"index_count": 3
},
{
"name": "long",
"count": 210,
"index_count": 3
},
{
"name": "nested",
"count": 16,
"index_count": 2
},
{
"name": "object",
"count": 42,
"index_count": 3
},
{
"name": "text",
"count": 196,
"index_count": 3
}
]
},
"analysis": {
"char_filter_types": [
],
"tokenizer_types": [
],
"filter_types": [
],
"analyzer_types": [
],
"built_in_char_filters": [
],
"built_in_tokenizers": [
],
"built_in_filters": [
],
"built_in_analyzers": [
]
},
"versions": [
{
"version": "7.11.2",
"index_count": 3,
"primary_shard_count": 45,
"total_primary_bytes": 9785636
}
]
},
"nodes": { // 节点信息
"count": {
"total": 1, // 集群中的总节点数量
"coordinating_only": 0,
"data": 1, // 集群中数据节点的总数量
"data_cold": 1,
"data_content": 1,
"data_hot": 1,
"data_warm": 1,
"ingest": 1,
"master": 1,
"ml": 1,
"remote_cluster_client": 1,
"transform": 1,
"voting_only": 0
},
"versions": [ // 程序版本信息
"7.11.2"
],
"os": { // 操作系统相关信息
"available_processors": 16,
"allocated_processors": 16,
"names": [
{
"name": "Linux",
"count": 1
}
],
"pretty_names": [
{
"pretty_name": "Tencent tlinux 2.2 (Final)",
"count": 1
}
],
"mem": { // OS的内存使用情况
"total_in_bytes": 8589934592,
"free_in_bytes": 5793271808,
"used_in_bytes": 2796662784,
"free_percent": 67,
"used_percent": 33
}
},
"process": { // OS的CPU使用情况
"cpu": {
"percent": 0 // 集群中节点的CPU使用率
},
"open_file_descriptors": {
"min": 568,
"max": 568,
"avg": 568
}
},
"jvm": { // Java中jvm相关信息
"max_uptime_in_millis": 9274123949,
"versions": [ // JDK版本
{
"version": "1.8.0_272",
"vm_name": "OpenJDK 64Bit Server VM",
"vm_version": "25.272b1",
"vm_vendor": "Tencent",
"bundled_jdk": true,
"using_bundled_jdk": false,
"count": 1
}
],
"mem": { // Java堆内存使用情况
"heap_used_in_bytes": 410827280,
"heap_max_in_bytes": 1037959168
},
"threads": 119
},
"fs": { // 数据存储情况
"total_in_bytes": 53687091200, // 文件系统使用的总容量
"free_in_bytes": 50719637504, // 文件系统中用户可以使用的容量
"available_in_bytes": 50719637504
},
"plugins": [
],
"network_types": {
"transport_types": {
"security4": 1
},
"http_types": {
"security4": 1
}
},
"discovery_types": {
"zen": 1
},
"packaging_types": [
{
"flavor": "default",
"type": "tar",
"count": 1
}
],
"ingest": {
"number_of_pipelines": 1,
"processor_stats": {
"gsub": {
"count": 0,
"failed": 0,
"current": 0,
"time_in_millis": 0
},
"script": {
"count": 0,
"failed": 0,
"current": 0,
"time_in_millis": 0
}
}
}
}
}