国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【cluster_block_exception】寫操作elasticsearch索引報錯

這篇具有很好參考價值的文章主要介紹了【cluster_block_exception】寫操作elasticsearch索引報錯。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

背景

今天線上elk的數(shù)據(jù)太多,服務(wù)器的空間不足了。所以打算刪除一些沒用用的數(shù)據(jù)。我是用下面的request:

POST /{index_name}/_delete_by_query?wait_for_completion=false
{
  "query": {
    "bool": {
      "must": {
        "match": {
          "loglevel": "DEBUG"
        }
      }
    }
  }
}

但是出錯了。
{ _index: ‘’,
_type: ‘type’,
_id: ‘record id’,
status: 403,
error:
{ type: ‘cluster_block_exception’,
reason: ‘blocked by: [FORBIDDEN/8/index write (api)];’ } }
【cluster_block_exception】寫操作elasticsearch索引報錯,elasticsearch,elasticsearch,jenkins,大數(shù)據(jù)

導(dǎo)致原因:

(都是比較簡單的英文,我就直接粘貼過來了):
相關(guān)帖子

from reaching red or yellow status. It does this using index.blocks.write.

The two reasons being:

Low Memory

When the JVMMemoryPressure metric exceeds 92% for 30 minutes, Amazon ES triggers a protection mechanism and blocks all write operations to prevent the cluster from reaching red status. When the protection is on, write operations fail with a ClusterBlockException error, new indexes can’t be created, and the IndexCreateBlockException error is thrown.

When the JVMMemoryPressure metric returns to 88% or lower for five minutes, the protection is disabled, and write operations to the cluster are unblocked.

Low Disk Space

Elasticsearch has a default “l(fā)ow watermark” of 85%, meaning that once disk usage exceeds 85%, Elasticsearch no longer allocates shards to that node. Elasticsearch also has a default “high watermark” of 90%, at which point it attempts to relocate shards to other nodes.

官網(wǎng)對index.blocks.write參數(shù)的描述:

https://www.elastic.co/guide/en/elasticsearch/reference/6.0/index-modules.html#dynamic-index-settings

解決方法:

https://sease.io/2022/06/elasticsearch-disk-space-issue-and-rollover-solution.html
disale index.blocks.write.

PUT /[_all|<your_index_name>]/_settings
{
  "index.blocks.write": null
}

然后再重試之前的刪除請求。文章來源地址http://www.zghlxwxcb.cn/news/detail-648931.html

到了這里,關(guān)于【cluster_block_exception】寫操作elasticsearch索引報錯的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • logstash向es同步數(shù)據(jù)報錯:retrying failed action with response code: 403 ({“type“=>“cluster_block_exce

    logstash向es同步數(shù)據(jù)報錯:retrying failed action with response code: 403 ({“type“=>“cluster_block_exce

    使用logstash向es同步數(shù)據(jù)報錯: [logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({\\\"type\\\"=\\\"cluster_block_exception\\\", \\\"reason\\\"=\\\"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];\\\"}) 服務(wù)器磁盤空間滿了導(dǎo)致es索引為只讀狀態(tài)。 1、清理磁盤,空出更大磁盤空間或直接擴充磁盤空

    2024年02月16日
    瀏覽(33)
  • elasticsearch 查看所有集群設(shè)置_cluster/settings

    樣例數(shù)據(jù)

    2024年02月14日
    瀏覽(23)
  • Elasticsearch:跨集群復(fù)制應(yīng)用場景及實操 - Cross Cluster Replication

    Elasticsearch:跨集群復(fù)制應(yīng)用場景及實操 - Cross Cluster Replication

    通過跨集群復(fù)制(Cross Cluster Replication - CCR),你可以跨集群將索引復(fù)制并實現(xiàn): 在數(shù)據(jù)中心中斷時繼續(xù)處理搜索請求 防止搜索量影響索引吞吐量 通過在距用戶較近的地理位置處理搜索請求來減少搜索延遲 跨集群復(fù)制采用主動 - 被動模型。 你索引到領(lǐng)導(dǎo)者(leader)索引,并

    2024年02月07日
    瀏覽(23)
  • elasticsearch No alive nodes found in your cluster 解決

    首先檢一下host及端口是否正確,網(wǎng)絡(luò)通不通。 其次想一下你的代碼有沒有bulk這類批量發(fā)送數(shù)據(jù)的操作,如果發(fā)送的數(shù)據(jù)超過默認的100MB,也會報這個錯,我就中招了。解決辦法就是把http.max_content_length這個參數(shù)調(diào)大即可。 我是docker安裝的es,因此我們把這個elasticsearch.yaml配置

    2024年02月12日
    瀏覽(36)
  • 分布式存儲系統(tǒng)舉例剖析(elasticsearch,kafka,redis-cluster)

    分布式存儲系統(tǒng)舉例剖析(elasticsearch,kafka,redis-cluster)

    1. 概述 對于分布式系統(tǒng),人們首先對現(xiàn)實中的分布式系統(tǒng)進行高層抽象,然后做出各種假設(shè),發(fā)展了諸如CAP, FLP 等理論,提出了很多一致性模型,Paxos 是其中最璀璨的明珠。我們對分布式系統(tǒng)的時序,復(fù)制模式,一致性等基礎(chǔ)理論特別關(guān)注。 在共識算法的基礎(chǔ)上衍生了選舉

    2024年02月12日
    瀏覽(25)
  • elasticsearch 7.12.1報錯處理:ElasticsearchStatusException[Elasticsearch exception [type=parse_exception]

    提示:文章寫完后,目錄可以自動生成,如何生成可參考右邊的幫助文檔 最近在使用RestHighLevelClient測試后端數(shù)據(jù)時,遇到如下一個報錯: 問題出在我沒有給 geoDistanceQuery 設(shè)置中心坐標 設(shè)置中心坐標后問題得到解決。 以下是elastic客戶端查詢索引的代碼

    2024年02月16日
    瀏覽(26)
  • E往無前 | 騰訊云大數(shù)據(jù) ElasticSearch 高級功能:Cross Cluster Replication實戰(zhàn)

    E往無前 | 騰訊云大數(shù)據(jù) ElasticSearch 高級功能:Cross Cluster Replication實戰(zhàn)

    前言 Elasticsearch在platinum版本中,推出了Cross Cluster Replication特性(以下簡稱CCR),也即跨集群遠程復(fù)制。 該特性可以解決兩類問題: 1,數(shù)據(jù)遷移; 2,異地備份。 本文以實戰(zhàn)為主,基本概念及原理可參考官網(wǎng)文檔。 https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-ccr.h

    2024年02月12日
    瀏覽(25)
  • Elasticsearch:跨集群復(fù)制應(yīng)用場景及實操 - Cross Cluster Replication
為集群之間建立互信

    Elasticsearch:跨集群復(fù)制應(yīng)用場景及實操 - Cross Cluster Replication 為集群之間建立互信

    通過跨集群復(fù)制(Cross Cluster Replication - CCR),你可以跨集群將索引復(fù)制并實現(xiàn): 在數(shù)據(jù)中心中斷時繼續(xù)處理搜索請求 防止搜索量影響索引吞吐量 通過在距用戶較近的地理位置處理搜索請求來減少搜索延遲 跨集群復(fù)制采用主動 - 被動模型。 你索引到領(lǐng)導(dǎo)者(leader)索引,并

    2024年02月11日
    瀏覽(23)
  • ES內(nèi)存問題 Elasticsearch exception type=circuit_breaking_exception,

    ES內(nèi)存問題 Elasticsearch exception type=circuit_breaking_exception,

    Elasticsearch exception [type=circuit_breaking_exception, reason=[parent] Data too large, data for [http_request] would be [986856200/941.1mb], which is larger than the limit of [986061209/940.3mb], real usage: [986855776/941.1mb], new bytes reserved: [424/424b], usages [request=0/0b, fielddata=2884/2.8kb, in_flight_requests=424/424b, model_inference=0/0b, a

    2023年04月08日
    瀏覽(41)
  • Elasticsearch8.6啟動異常:fatal exception while booting Elasticsearch

    Elasticsearch8.6啟動異常:fatal exception while booting Elasticsearch

    fatal exception while booting Elasticsearch java.nio.file.InvalidPathException: Trailing char at index 48: C:Program FilesJavajdk1.8.0_181libtools.jar at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:191) ~[?:?] at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) ~[?:?] at sun.nio.fs.WindowsPathParser.parse(WindowsPathParse

    2024年02月04日
    瀏覽(16)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包