当前位置:网站首页>Es log error appreciation -- allow delete
Es log error appreciation -- allow delete
2022-07-07 14:33:00 【Es assistant】
Error reporting
[o.e.x.w.e.ExecutionService] [16142xxxxxx20932] could not store triggered watch with id [xxxxx4-2022-07-07T04:04:33.872Z]: [ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];]]
Error reporting analysis
When disk utilization exceeds 85%, Or achieve 100%, It can lead to Elasticsearch Cluster or Kibana Unable to provide services properly , The following problem scenarios may occur :
- When making an index request , Return similar
{[FORBIDDEN/12/index read-only/allow delete(api)];","type":"cluster_block_exception"}
The error of . - When operating on a cluster , Return similar
[FORBIDDEN/13/cluster read-only / allow delete (api)]
The error of . - Cluster in the Red state , In severe cases, nodes do not join the cluster ( It can be done by
GET _cat/allocation?v
Command view ), And there are unallocated fragments ( It can be done byGET _cat/allocation?v
Command view ). - adopt Elasticsearch The node monitoring page of the console , The disk utilization of cluster nodes has reached or approached 100%.
The above problems are caused by high disk utilization . There are three watermarks for the disk utilization of data nodes , Exceeding the water level may affect Elasticsearch or Kibana service .
- When the cluster disk utilization exceeds 85%: Will result in new tiles not being allocated .
- When the cluster disk utilization exceeds 90%:Elasticsearch It will try to migrate the shards in the corresponding nodes to other data nodes with low disk utilization .
- When the cluster disk utilization exceeds 95%: The system will be right Elasticsearch Each index in the corresponding node in the cluster is set forcibly read_only_allow_delete attribute , At this time, all indexes on the node will not be able to write data , Only the corresponding index can be read and deleted .
Solution
Clean up the expired data of the cluster
Users can access 【Kibana】>【Dev Tools】 Delete expired indexes to free up disk space . Steps are as follows : Warning : After the data is deleted, it cannot be recovered , Please operate carefully . You can also choose to keep the data , However, disk expansion is required .
First step : Enable cluster index batch operation permission .
PUT _cluster/settings { "persistent": { "action.destructive_requires_name": "false" } }
The second step : Delete data , for example DELETE NginxLog-12*.
DELETE index-name-*
- After performing the above steps , If the user Tencent cloud Elasticsearch The version is 7.5.1 Previous versions , Still need to be in Kibana Interface 【Dev Tools】 Execute the following command :
Turn off index read-only status , Execute the following command :
PUT _all/_settings { "index.blocks.read_only_allow_delete": null }
Turn off the read-only status of the cluster , Execute the following command :
PUT _cluster/settings { "persistent": { "cluster.blocks.read_only_allow_delete": null } }
- Check whether the cluster index is still
read_only
state , Whether the index write returns to normal . - If the cluster is still Red state , Execute the following command , Check whether there are unassigned shards in the cluster . GET /_cluster/allocation/explain
- Wait for the partition distribution to complete , View the cluster status . If the cluster status is still Red, Please pass After sales support Contact Tencent cloud technical support .
- To avoid the impact of high disk utilization Elasticsearch service , It is recommended to turn on the disk usage monitoring alarm , Check and receive the alarm messages in time , Take defensive measures in advance , For details, please refer to Suggestions on monitoring alarm configuration .
Cloud disk expansion reference :
https://cloud.tencent.com/document/product/845/56276
边栏推荐
- UML 状态图
- 搜索引擎接口
- Oracle Linux 9.0 正式发布
- Decrypt the three dimensional design of the game
- 【历史上的今天】7 月 7 日:C# 发布;Chrome OS 问世;《仙剑奇侠传》发行
- 杭电oj2054 A == B ? ???
- Verilog implementation of a simple legv8 processor [4] [explanation of basic knowledge and module design of single cycle implementation]
- Nllb-200: meta open source new model, which can translate 200 languages
- NLLB-200:Meta开源新模型,可互译200种语言
- Oracle Linux 9.0 officially released
猜你喜欢
LeetCode 648. 单词替换
「2022年7月」WuKong编辑器更版记录
潘多拉 IOT 开发板学习(HAL 库)—— 实验12 RTC实时时钟实验(学习笔记)
小程序目录结构
用例图
VSCode 配置使用 PyLint 语法检查器
UML 状态图
云上“视界” 创新无限 | 2022阿里云直播峰会正式上线
Ian Goodfellow, the inventor of Gan, officially joined deepmind as research scientist
Verilog implementation of a simple legv8 processor [4] [explanation of basic knowledge and module design of single cycle implementation]
随机推荐
【历史上的今天】7 月 7 日:C# 发布;Chrome OS 问世;《仙剑奇侠传》发行
Substance Painter笔记:多显示器且多分辨率显示器时的设置
VSCode 配置使用 PyLint 语法检查器
PAG体验:十分钟完成AE动效部署上线各平台!
属性关键字OnDelete,Private,ReadOnly,Required
Leetcode——344. 反转字符串/541. 反转字符串 II/151. 颠倒字符串中的单词/剑指 Offer 58 - II. 左旋转字符串
Million data document access of course design
ES日志报错赏析-- allow delete
常用数字信号编码之反向不归零码码、曼彻斯特编码、差分曼彻斯特编码
Pytorch model trains practical skills and breaks through the bottleneck of speed
Hangdian oj2092 integer solution
Codes de non - retour à zéro inversés, codes Manchester et codes Manchester différentiels couramment utilisés pour le codage des signaux numériques
Attribute keywords ondelete, private, readonly, required
小米的芯片自研之路
libSGM的horizontal_path_aggregation程序解读
Substance painter notes: settings for multi display and multi-resolution displays
ARM Cortex-A9,MCIMX6U7CVM08AD 处理器应用
MLGO:Google AI发布工业级编译器优化机器学习框架
ndk初学习(一)
低代码平台中的数据连接方式(下)