我有一个名为traces
的个体,名称为GET /_snapshot/s3_repository/snapshot_traces_250316/_status
,文件为5M。
我做了{
"snapshots": [
{
"snapshot": "snapshot_traces_250316",
"repository": "s3_repository",
"state": "SUCCESS",
"shards_stats": {
"initializing": 0,
"started": 0,
"finalizing": 0,
"done": 8,
"failed": 0,
"total": 8
},
"stats": {
"number_of_files": 185,
"processed_files": 185,
"total_size_in_bytes": 654459334,
"processed_size_in_bytes": 654459334,
"start_time_in_millis": 1458898771760,
"time_in_millis": 81226
},
"indices": {
"aliases": {
"shards_stats": {
"initializing": 0,
"started": 0,
"finalizing": 0,
"done": 5,
"failed": 0,
"total": 5
},
"stats": {
"number_of_files": 5,
"processed_files": 5,
"total_size_in_bytes": 795,
"processed_size_in_bytes": 795,
"start_time_in_millis": 1458898819263,
"time_in_millis": 1491
},
"shards": {
"0": {
"stage": "DONE",
"stats": {
"number_of_files": 1,
"processed_files": 1,
"total_size_in_bytes": 159,
"processed_size_in_bytes": 159,
"start_time_in_millis": 1458898820308,
"time_in_millis": 110
}
},
"1": {
"stage": "DONE",
"stats": {
"number_of_files": 1,
"processed_files": 1,
"total_size_in_bytes": 159,
"processed_size_in_bytes": 159,
"start_time_in_millis": 1458898820674,
"time_in_millis": 80
}
},
"2": {
"stage": "DONE",
"stats": {
"number_of_files": 1,
"processed_files": 1,
"total_size_in_bytes": 159,
"processed_size_in_bytes": 159,
"start_time_in_millis": 1458898819263,
"time_in_millis": 101
}
},
"3": {
"stage": "DONE",
"stats": {
"number_of_files": 1,
"processed_files": 1,
"total_size_in_bytes": 159,
"processed_size_in_bytes": 159,
"start_time_in_millis": 1458898819617,
"time_in_millis": 108
}
},
"4": {
"stage": "DONE",
"stats": {
"number_of_files": 1,
"processed_files": 1,
"total_size_in_bytes": 159,
"processed_size_in_bytes": 159,
"start_time_in_millis": 1458898819916,
"time_in_millis": 86
}
}
}
},
"traces_v2": {
"shards_stats": {
"initializing": 0,
"started": 0,
"finalizing": 0,
"done": 3,
"failed": 0,
"total": 3
},
"stats": {
"number_of_files": 180,
"processed_files": 180,
"total_size_in_bytes": 654458539,
"processed_size_in_bytes": 654458539,
"start_time_in_millis": 1458898771760,
"time_in_millis": 81226
},
"shards": {
"0": {
"stage": "DONE",
"stats": {
"number_of_files": 58,
"processed_files": 58,
"total_size_in_bytes": 213816982,
"processed_size_in_bytes": 213816982,
"start_time_in_millis": 1458898814476,
"time_in_millis": 38510
}
},
"1": {
"stage": "DONE",
"stats": {
"number_of_files": 55,
"processed_files": 55,
"total_size_in_bytes": 253988996,
"processed_size_in_bytes": 253988996,
"start_time_in_millis": 1458898771760,
"time_in_millis": 47244
}
},
"2": {
"stage": "DONE",
"stats": {
"number_of_files": 67,
"processed_files": 67,
"total_size_in_bytes": 186652561,
"processed_size_in_bytes": 186652561,
"start_time_in_millis": 1458898771760,
"time_in_millis": 42340
}
}
}
}
}
}
]
}
,两分钟后状态为:
scene.enablePhysics();
状态是成功,但统计数据显示有180个文件(超过5M!)快照。这些真实文档或某种文件夹里面有数百万个文档吗?
答案 0 :(得分:1)
索引存储在磁盘上的物理文件中。
number_of_files
表示包含数据的文件总数,而不是实际的文档数。
单个文件可能包含大量文档。例如,在您的情况下,每个文件可能包含平均5M / 180个文档,但不能保证每个文件都包含相同数量的文档。
如果你进一步研究细节,它会包含分片明智文件的分解,即包含与一个分片对应的数据的总数。