当前位置:网站首页>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?vCommand view ), And there are unallocated fragments ( It can be done byGET _cat/allocation?vCommand 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_onlystate , 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
边栏推荐
- C # use TCP protocol to establish connection
- UML state diagram
- Pert diagram (engineering network diagram)
- Mlgo: Google AI releases industrial compiler optimized machine learning framework
- 找到自己的价值
- 解析PHP跳出循环的方法以及continue、break、exit的区别介绍
- leetcode:648. 单词替换【字典树板子 + 寻找若干前缀中的最短符合前缀】
- LeetCode 648. Word replacement
- 【服务器数据恢复】某品牌StorageWorks服务器raid数据恢复案例
- oracle 非自动提交解决
猜你喜欢

UML state diagram

设备故障预测机床故障提前预警机械设备振动监测机床故障预警CNC震动无线监控设备异常提前预警

Data flow diagram, data dictionary

2022年13个UX/UI/UE最佳创意灵感网站

【立体匹配论文阅读】【三】INTS

Huawei cloud database DDS products are deeply enabled

CVPR2022 | 医学图像分析中基于频率注入的后门攻击

常用數字信號編碼之反向不歸零碼碼、曼徹斯特編碼、差分曼徹斯特編碼

Pert diagram (engineering network diagram)

Cvpr2022 | backdoor attack based on frequency injection in medical image analysis
随机推荐
PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight
Differences between cookies and sessions
Base64 encoding
Substance Painter笔记:多显示器且多分辨率显示器时的设置
用例图
《微信小程序-进阶篇》组件封装-Icon组件的实现(一)
The longest ascending subsequence model acwing 1014 Mountaineering
Simple use of websocket
First choice for stock account opening, lowest Commission for stock trading account opening, is online account opening safe
Arm cortex-a9, mcimx6u7cvm08ad processor application
Demis hassabis talks about alphafold's future goals
数据流图,数据字典
EfficientNet模型的完整细节
KITTI数据集简介与使用
什么是云原生?这回终于能搞明白了!
c#利用 TCP 协议建立连接
NDK beginner's study (1)
Data connection mode in low code platform (Part 2)
6、Electron无边框窗口和透明窗口 锁定模式 设置窗口图标
Beginner JSP