This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.3.2.2. 웹 콘솔에서 분산 추적 프로덕션 전략 배포
프로덕션
배포 전략은 보다 확장 가능하고 가용성이 높은 아키텍처가 필요한 프로덕션 환경을 위한 것이며 추적 데이터의 장기 스토리지가 중요합니다.
전제 조건
- OpenShift Elasticsearch Operator가 설치되었습니다.
- Red Hat OpenShift distributed tracing platform Operator가 설치되어 있습니다.
- 배포를 사용자 지정하는 방법에 대한 지침을 검토했습니다.
-
cluster-admin
역할의 사용자로 클러스터에 액세스할 수 있어야 합니다.
프로세스
-
cluster-admin
역할의 사용자로 OpenShift Container Platform 웹 콘솔에 로그인합니다. 새 프로젝트(예:
tracing-system
)를 생성합니다.참고Service Mesh의 일부로 설치하는 경우 분산 추적 리소스를
ServiceMeshControlPlane
리소스와 동일한 네임스페이스에 설치해야 합니다(예:istio-system
).-
홈
프로젝트로 이동합니다. - Create Project를 클릭합니다.
-
Name 필드에
tracing-system
을 입력합니다. - Create를 클릭합니다.
-
홈
-
Operators
설치된 Operator로 이동합니다. -
필요한 경우 프로젝트 메뉴에서
추적 시스템을
선택합니다. Operator가 새 프로젝트에 복사될 때까지 몇 분 정도 기다려야 할 수 있습니다. - Red Hat OpenShift distributed tracing platform Operator를 클릭합니다. 개요 탭의 제공된 API에서 Operator는 단일 링크를 제공합니다.
- Jaeger 에서 인스턴스 생성을 클릭합니다.
Jaeger 생성 페이지에서 기본
all-in-one
YAML 텍스트를 프로덕션 YAML 구성으로 교체합니다. 예를 들면 다음과 같습니다.예 jaeger-production.yaml 파일을 Elasticsearch로
apiVersion: jaegertracing.io/v1 kind: Jaeger metadata: name: jaeger-production namespace: spec: strategy: production ingress: security: oauth-proxy storage: type: elasticsearch elasticsearch: nodeCount: 3 redundancyPolicy: SingleRedundancy esIndexCleaner: enabled: true numberOfDays: 7 schedule: 55 23 * * * esRollover: schedule: '*/30 * * * *'
- 만들기를 클릭하여 분산 추적 플랫폼 인스턴스를 만듭니다.
-
Jaegers 페이지에서 분산 추적 플랫폼 인스턴스의 이름을 클릭합니다(예:
jaeger-prod-elasticsearch
). - Jaeger 세부 정보 페이지에서 리소스 탭을 클릭합니다. 계속하기 전에 모든 Pod 상태가 "실행 중"이 될 때까지 기다립니다.
3.2.2.1. CLI에서 분산 추적 프로덕션 전략 배포
명령줄에서 분산 추적 플랫폼의 인스턴스를 생성하려면 다음 절차를 따르십시오.
전제 조건
- OpenShift Elasticsearch Operator가 설치되었습니다.
- Red Hat OpenShift distributed tracing platform Operator가 설치되어 있습니다.
- 배포를 사용자 지정하는 방법에 대한 지침을 검토했습니다.
-
OpenShift Container Platform 버전과 일치하는 OpenShift CLI(
oc
)에 액세스할 수 있습니다. -
cluster-admin
역할의 사용자로 클러스터에 액세스할 수 있어야 합니다.
프로세스
cluster-admin
역할의 사용자로 OpenShift Container Platform CLI에 로그인합니다.$ oc login --username=<NAMEOFUSER> https://<HOSTNAME>:8443
tracing-system
이라는 새 프로젝트를 생성합니다.$ oc new-project tracing-system
-
이전 프로세스의 예제 텍스트가 포함된
jaeger-production.yaml
이라는 사용자 정의 리소스 파일을 생성합니다. 다음 명령을 실행하여 분산 추적 플랫폼을 배포합니다.
$ oc create -n tracing-system -f jaeger-production.yaml
다음 명령을 실행하여 설치 프로세스 중에 Pod의 진행 상황을 확인합니다.
$ oc get pods -n tracing-system -w
설치 프로세스가 완료되면 다음 예와 유사한 출력이 표시됩니다.
NAME READY STATUS RESTARTS AGE elasticsearch-cdm-jaegersystemjaegerproduction-1-6676cf568gwhlw 2/2 Running 0 10m elasticsearch-cdm-jaegersystemjaegerproduction-2-bcd4c8bf5l6g6w 2/2 Running 0 10m elasticsearch-cdm-jaegersystemjaegerproduction-3-844d6d9694hhst 2/2 Running 0 10m jaeger-production-collector-94cd847d-jwjlj 1/1 Running 3 8m32s jaeger-production-query-5cbfbd499d-tv8zf 3/3 Running 3 8m32s