Skip to content

minority opinions

Menu
  • Contact
  • Home
  • Tags
Menu

Elasticsearch 403 FORBIDDEN Index read-only Error 처리

Posted on February 9, 2022July 8, 2023 by Daniel J.

Elastic Stack을 운영중 data node 용량 문제로 아래와 같은 에러 로그를 발견. 해결책에 대하여 알아보자.

org.elasticsearch.xpack.monitoring.exporter.ExportException: ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];]

Caused by: org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];

1. Elasticsearch Error Logs


elastic master node log files

dz-secops-2021-04-01.log:org.elasticsearch.xpack.monitoring.exporter.ExportException: ClusterBlockException[blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];]
dz-secops-2021-04-01.log:Caused by: org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];

2. Elasticsearch Error 원인 (Cause)


elastic data node 환경 설정 (elasticsearch.yml)

thread_pool.index.queue_size: 1200
thread_pool.get.queue_size: 20000
thread_pool.search.queue_size: 20000
thread_pool.bulk.queue_size: 20000
indices.memory.index_buffer_size: 30%

indices.fielddata.cache.size : 82%
indices.breaker.fielddata.limit: 84%
indices.breaker.total.limit: 85%
indices.breaker.request.limit: 70%
#http.cors.enabled: true
cluster.routing.allocation.disk.threshold_enabled : false
cluster.routing.allocation.disk.watermark.low: 94%
cluster.routing.allocation.disk.watermark.high: 95%  

data node 가 디스크 용량이 cluster.routing.allocation.disk.watermark.high: 95%  이상이면 forbidden 되며,

read only만 할수 있게됩니다.

 

3. 해결책 (Solution)


Kibana -> Dev Tools -> Console -> Query 


PUT _all/_settings
{
    "index": {
        "blocks": {
        "read_only_allow_delete": "false"
        }
    }
}
Kibana Dev Tools Console

Linux Shell 에서 curl 을 사용하여 Elasticsearch API 포트로 명령어를 직접 날려도 됩니다.

ElasticSearch 활용 장점 및 기능 사례 정리

Related

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Category

  • Article (49)
  • Uncategorized (214)
  • 게임 소식 (9)
  • 기술 정보 & 테크 소식 (188)
  • 꿀팁정리 & 자기계발 (250)
  • 블로그 (8)
  • 사건 사고 (3)
  • 역사 (11)
  • 이슈 뉴스 정리 (127)
  • 정치 인물 사회 (22)
  • 주식 경제 (102)

Popular Posts

  • 장사의신 애월 파스타집 고양이 기름때 위생 논란
  • 서울 서이초등학교 학부모 갑질 교사 자살 사건
  • 한문철 전직 보디빌더 인천 주차장 폭행사건 가해자는 누구?
  • 코딩하는 공익 반병현 셀프 바이럴 논란
  • 황의조 휴대폰 해킹, 성관계 사진 인스타 유포

©2023 minority opinions | Design: Newspaperly WordPress Theme