首页 > 解决方案 > Elasticsearch 文档计数不反映更高的索引率

问题描述

当我们通过 kibana 监控我们的 elasticsearch 集群健康时,对于特定的索引,我们会看到非常高的索引率。但似乎文件数量并没有按比例增加。如何解决这两个问题。

文件计数

索引率

样本文件

{“_index”:“finance_report_fgl_reporting_log”,“_type”:“fgl_reporting_logs”,“_id”:“1907688_POINTS_ACCOUNT_DEBIT”,“_score”:9.445704,“_source”:{“reportingLogId”:{“journalId”:1907688,“postingAccountId” :“POINTS_ACCOUNT”,“postingAccountingEntry”:“DEBIT”},“journalId”:1907688,“journalEventId”:“trip_completed”,“journalEventLogId”:“15db1f2b-b9d0-4edd-96f0-c4e4f8e68150”,“journalAccountingRuleId”:“trip_completed_points_payment_rule ", "journalReferenceId": "174558200”,“journalGrossAmount”:154.11,“postingJournalId”:1907688,“postingAccountingRuleId”:“trip_completed_points_payment_rule”,“postingReferenceId”:“174558200”,“postingAccountId”:“POINTS_ACCOUNT”,“postingAccountingPeriod”:“20”19,“postingAccounting” :“DEBIT”、“postingCurrencyTypeId”:“POINTS”、“postingAmount”:154.11、“accountId”:“POINTS_ACCOUNT”、“accountStakeholderId”:“OPERATOR”、“accountCurrencyTypeId”:“POINTS”、“accountTypeId”:“CONTROLLER” , "accountingRuleId”:“trip_completed_points_payment_rule”、“accountingRuleDescription”:“积分支付”、“eventId”:“trip_completed”、“eventReferenceParam”:“body.trip.id”、“createdDate”:“2019-08-29T10:03:32.000 +0530”、“modifiedDate”:“2019-08-29T10:03:32.000+0530”、“createdBy”:“ENGINE”、“modifiedBy”:“ENGINE”、“version”:“3.12.6”、“createYear” ": 2019, "routingKey": "_2019" } },“eventId”:“trip_completed”、“eventReferenceParam”:“body.trip.id”、“createdDate”:“2019-08-29T10:03:32.000+0530”、“modifiedDate”:“2019-08-29T10:03 :32.000+0530", "createdBy": "ENGINE", "modifiedBy": "ENGINE", "version": "3.12.6", "createYear": 2019, "routingKey": "_2019" } },“eventId”:“trip_completed”、“eventReferenceParam”:“body.trip.id”、“createdDate”:“2019-08-29T10:03:32.000+0530”、“modifiedDate”:“2019-08-29T10:03 :32.000+0530", "createdBy": "ENGINE", "modifiedBy": "ENGINE", "version": "3.12.6", "createYear": 2019, "routingKey": "_2019" } },ENGINE”,“modifiedBy”:“ENGINE”,“版本”:“3.12.6”,“createYear”:2019,“routingKey”:“_2019”}},ENGINE”,“modifiedBy”:“ENGINE”,“版本”:“3.12.6”,“createYear”:2019,“routingKey”:“_2019”}},

标签: elasticsearchindexingdocument

解决方案


在执行GET _cat/indices?v检查“docs.deleted”列时,您可能会得到一些信息,因为更新操作仅仅是“创建新的+删除旧的”操作。


推荐阅读