728x90
반응형

분류 전체보기 126

maximum allowed to be analyzed for highlighting

opensearch, elasticsearch를 사용하다 보면index에 데이터가 들어가지 않고 index has exceeded [1000000] - maximum allowed to be analyzed for highlighting오류가 발생하는 경우가 있다. "type": "illegal_argument_exception", "reason": "The length of [RequestContent] field of [1649] doc of [index_name] index has exceeded [1000000] - maximum allowed to be analyzed for highlighting. This maximum can be set by changing the [index.highli..

Opensearch 2026.01.20

haproxy 자주 쓰는 핵심 문법 3가지

1. http-request replace-path- 용도들어오는 요청의 경로(URL)를 치환할 때 사용- 사용방법http-request replace-path - ex)http-request replace-path ^/test/file/?(.*)$ /replace/test/file/\1 => /test/file/test.txt → /replace/test/file/test.txt 2.path_beg- 용도 요청 경로가 특정 문자열로 시작하는지 체크- 사용방법 acl path_beg /경로- ex) acl file path_beg /test/file 3. hdr(host) -i- 용도 요청 Host 헤더를 검사할 때 사용(-i : 대소문자 구분 없이 비교)- 사용방법 acl hdr(host) -..

Haproxy 2026.01.14

Opensearch 설치(CentOS 기준)

Opensearch 설치사전 작업 방화벽 stop or 9200 port 허용sudo curl -SL https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/opensearch-2.x.repo -o /etc/yum.repos.d/opensearch-2.x.reposudo yum -y clean allsudo yum -y repolist#오픈서치 설치 가능 리스트 확인sudo yum -y list opensearch --showduplicates#sudo yum -y install opensearchsudo yum -y install 'opensearch-2.11.1-1'#yml 백업sudo cp /etc/opensearch/opensearch.y..

Opensearch 2026.01.07

Prometheus Remote Write 구성 정리 (Sender / Receiver)

federate나 target을 직접 추가해 주는 방법도 있는데Sender, Receiver 방법도 사용 가능하다. 1. Remote Write를 보내는 Prometheus (Sender)##Prometheus CR 리소스를 수정#remoteWrite 설정spec: remoteWrite: - url: "https://{prometheus_receiver_url}/api/v1/write" tlsConfig: insecureSkipVerify: true # (테스트용) 인증서 검증 스킵#Cluster 구분을 위한 External LabelsexternalLabels: cluster: dev-cluster-01 origin_prometheus: dev-cluster-01 ..

daemonset pod 수량 0 만드는 방법

daemonset은 deployment처럼 replicas를 사용하지 못하기 때문에약간의 꼼수를 사용할 수 있다. 1. nodeSelector 적용#replica 0 적용kubectl patch daemonset {daemonset_name} -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'non-existing=true 라벨이 붙은 노드에만 파드를 띄우라는 아래 부분이 생긴다.해당 라벨은 없으므로 daemonset pod 수량이 0이 된다.nodeSelector: non-existing: "true" 2. 복구#복구kubectl patch daemonset {daemonset_name} --t..

Kubernetes/pod 2025.12.29
728x90
반응형