elasticsearch - 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”}},
解决方案
在执行GET _cat/indices?v
检查“docs.deleted”列时,您可能会得到一些信息,因为更新操作仅仅是“创建新的+删除旧的”操作。
推荐阅读
- javascript - 为什么加载图片的 naturalWidth 会返回之前上传图片的宽度?
- r - 有没有办法防止从数据集包中加载特定的数据集?
- postgresql - 如何将卷挂载添加到正在运行的 postgreSQL 容器?
- javascript - 使用 JSON 数组中的属性对 groupby 进行反应
- hyperledger-fabric - 如何获取身份的公钥?
- reactjs - 将道具传递给嵌套地图上的 if 语句 - React
- windows - 如何在 Windows 上获取具有特定驱动器名称的驱动器的驱动器号?
- javascript - 在 Javascript 中,如何克隆一个类
- reactjs - 使用 useContext 修改数组内的对象
- php - 如何在 godaddy 托管服务器上部署 laravel 项目(Plesk Onyx CPanel)