블로그 이미지
프로그램을 가장 훌륭하게 작성하는 방법은 상태가 변경되는 오브젝트들과 수학적인 값을 나타내는 오브젝트들의 조합으로 표현하는 것이다. -Kent Beck 초초초보

카테고리

Programming (184)
ASP.NET (9)
Silverlight (2)
Javascript (20)
C# (8)
java (25)
SQL (14)
Oracle (3)
MyBatis (3)
기타 (52)
개발방법론 (1)
trouble shooting (2)
Linux (5)
스칼라 (5)
html (2)
grails & gradle (3)
Spring (2)
rabbitmq (1)
(3)
spark (0)
docker (3)
Total
Today
Yesterday

달력

« » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

공지사항

최근에 올라온 글

GET /_cat/snapshots/s3_repository?v&s=id

GET /_cluster/health/?level=indices

GET _cluster/settings

GET _cat/allocation?v


DELETE _snapshot/s3_repository/snap_index_20180101


PUT _snapshot/s3_repository/snap_index_20180101?wait_for_completion=false

{

  "indices": ["index1", "index2", "index3"]

}



GET _snapshot/s3_repository/snap_index_20180101


GET _snapshot/s3_repository


-- 노드 하나 비우자

PUT _cluster/settings

{

  "transient": {

    "cluster.routing.allocation.exclude._ip": "10.211.205.93"

  }

}




unssined shard 복구하기

1. 이슈있는 샤드 찾기

curl -XGET https://localhost/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED


2. 이슈있는 데이터 삭제

curl -XDELETE 'https://localhost/user-tracking-2019-07-22/'


curl -XGET https://localhost/_cluster/allocation/explain?pretty



-- 전체 리플리카 변경하기

curl -XPUT -H 'Content-Type: application/json' 'https://localhost/_settings' -d '

{

    "index" : {

        "number_of_replicas" : 2

    }

}'



Posted by 초초초보
, |