最近,在VMware Workstation虚拟机上安装了es7.9,单节点的es,不是集群,然后建了一个索引(包含3个分片和一个副本),插入了500万条数据,占据磁盘空间17G。如下图:
=============================================================
索引的字段如下,仅供参考:
PUT my_log
{"settings":{"index":{"number_of_shards":"3","number_of_replicas":"1"}},"mappings": {"properties": {"logId ": {"type": "keyword"},"xxxId": {"type": "keyword"},"xxxDataId": {"type": "keyword"},"xxxeName": {"type": "keyword"},"souxxxpic": {"type":"keyword"},"souxxxoup": {"type":"keyword"},"tarxxxame": {"type":"keyword"},"callxxxeMode": {"type":"keyword"},"callTxxxdeName": {"type":"keyword"},"mxxxce": {"type":"keyword"},"datxxxory": {"type": "keyword"},"daxxxame": {"type":"keyword"},"filexxxId": {"type":"keyword"},"filexxxName": {"type":"keyword"},"fixxxype": {"type":"keyword"},"filxxxName": {"type":"text"},"logxxxName": {"type":"text"},"loxxxpe": {"type":"keyword"},"buxxxtage": {"type":"keyword"},"buxxxeName": {"type":"text"},"buixxxgeTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"buinxxxeStatus": {"type": "keyword"},"buixxxatusName": {"type":"keyword"},"rexxxMode": {"type": "keyword"},"recxxxdeName": {"type":"keyword"},"creaxxxTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"rexxxime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"msgSxxxTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"callTarxxxime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"begxxxxime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"endRexxxgTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"resolxxxdTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"getFxxxTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"getFixxxTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"resoxxxnTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"resxxxndTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"saveFixxxdTime": {"type": "date","format": "yyyy-MM-dd HH:mm:ss.SSS"},"successNumber": {"type": "long"},"errorNumber": {"type": "long"},"buinessNumber": {"type": "long"},"descInfo": {"type": "text"}}}
}