Apigee Edge 문서입니다.
Go to the
Apigee X 문서로 이동합니다. info
Edge for Private Cloud 설치에서 기존 분석 그룹에서 Postgres 및 Qpid 서버를 삭제하거나 분석 그룹에 추가해야 할 수 있습니다. 이 문서에서는 단일 Postgres 설치 및 마스터-대기 Postgres 설치를 위해 기존 Edge 설치 에서 Postgres 및 Qpid 서버를 추가하고 삭제하는 방법을 설명합니다.
자세한 내용은 Postgres의 마스터-대기 복제 설정하기를 참고하세요.
기본 요건
시스템 관리자 사용자 인증 정보를 사용하여 관리 서버 API를 호출할 수 있어야 합니다.
기존 Postgres 서버를 분석 그룹에 추가
Postgres 서버 구성요소를 추가하는 프로세스는 Postgres가 복제 없이 단일 서버로 설치되었는지 아니면 마스터-대기 복제가 사용 설정된 두 개의 서버로 설치되었는지에 따라 다릅니다.
시나리오 1: Postgres 서버 1개, Postgres 복제 없음
분석 그룹 및 소비자 그룹의 이름을 확인합니다.
기본적으로 분석 그룹의 이름은
axgroup-001이고 소비자 그룹의 이름은consumer-group-001입니다. 리전의 자동 구성 파일에서 분석 그룹의 이름을AXGROUP속성을 사용하여 설정할 수 있습니다.분석 그룹 및 소비자 그룹의 이름을 모르는 경우 다음 명령어 를 사용하여 표시합니다.
curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"
이 호출은 분석 그룹의 이름이 포함된 응답을 반환합니다.
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ] …이 예에서 분석 그룹 이름은
axgroup-001.입니다.- 다음 API를 사용하여
postgres-server구성요소의 UUID를 확인합니다.curl http://pg-IP:8084/v1/servers/self
다음 API 호출에서 axgoupname 및 UUID를 위에서 확인한 분석 그룹 이름 및 UUID로 바꿉니다.
- 다음 API 호출을 사용하여 Postgres 서버 UUID를
postgres-server요소에 추가합니다.curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/servers?uuid=UUID&type=postgres-server&force=true"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/servers?uuid=8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77&type=postgres-server&force=true"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07"], "postgres-server" : ["8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07"], "datastores" : [ ], "properties" : { } } ], "data-processors" : { } - 다음 API를 사용하여 Postgres 서버 UUID를 소비자 그룹에 추가합니다.
curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/consumer-groups/consumer-group-001/datastores?uuid=UUID"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/consumer-groups/consumer-group-001/datastores?uuid=8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07"], "postgres-server" : ["8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07"], "datastores" : ["8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77"], "properties" : { } } ], "data-processors" : { } - 모든 노드에서 모든
edge-postgres-server및edge-qpid-server구성요소를 다시 시작하여 변경사항이 이러한 구성요소에 의해 선택되도록 합니다./opt/apigee/apigee-service/bin/apigee-service edge-qpid-server restart/opt/apigee/apigee-service/bin/apigee-service edge-qpid-server wait_for_ready/opt/apigee/apigee-service/bin/apigee-service edge-postgres-server restart/opt/apigee/apigee-service/bin/apigee-service edge-postgres-server wait_for_ready
시나리오 2: 마스터-대기 복제가 있는 Postgres 서버 2개
분석 그룹 및 소비자 그룹의 이름을 확인합니다.
기본적으로 분석 그룹의 이름은
axgroup-001이고 소비자 그룹의 이름은consumer-group-001입니다. 리전의 자동 구성 파일에서 분석 그룹의 이름을AXGROUP속성을 사용하여 설정할 수 있습니다.분석 그룹 및 소비자 그룹의 이름을 모르는 경우 다음 명령어 를 사용하여 표시합니다.
curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"
이 호출은 정의된 분석 그룹의 이름이 포함된 응답을 반환합니다.
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ] …이 예에서 분석 그룹 이름은
axgroup-001.입니다.- 다음 API 호출을 사용하여 각 마스터
postgres-server구성요소 및 대기postgres-server구성요소의 UUID를 찾습니다.curl http://pg-IP:8084/v1/servers/self
다음 API 호출에서 axgoupname을
axgroup-001로 바꾸고 마스터 서버의 2단계에서 가져온 UUID를 masteruuid 대신 사용해야 하며 대기 서버의 2단계에서 반환된 UUID를 slaveuuid로 사용해야 합니다. - 다음 API를 사용하여 Postgres 서버 UUID를
postgres-server요소에 추가합니다.curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/servers?uuid=masteruuid,slaveuuid&type=postgres-server&force=true"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/servers?uuid=8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77,731c8c43-8c35-4b58-ad1a-f572b69c5f0&type=postgres-server&force=true"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : ["54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : [], "properties" : { } } ], "data-processors" : { } - 다음 API를 사용하여 Postgres 서버 UUID를 소비자 그룹에 추가합니다.
curl -v -u adminEmail:pword -X POST -H -H 'Content-Type: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/consumer-groups/consumer-group-001/datastores?uuid=masteruuid,slaveuuid"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/consumer-groups/consumer-group-001/datastores?uuid=8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77,731c8c43-8c35-4b58-ad1a-f572b69c5f0"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : ["54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : ["8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"], "properties" : { } } ], "data-processors" : { } - 모든 노드에서 모든
edge-postgres-server및edge-qpid-server구성요소를 다시 시작하여 변경사항이 이러한 구성요소에 의해 선택되도록 합니다./opt/apigee/apigee-service/bin/apigee-service edge-qpid-server restart/opt/apigee/apigee-service/bin/apigee-service edge-qpid-server wait_for_ready/opt/apigee/apigee-service/bin/apigee-service edge-postgres-server restart/opt/apigee/apigee-service/bin/apigee-service edge-postgres-server wait_for_ready
기존 Qpid 서버를 분석 그룹에 추가
- 다음 API를 사용하여 분석 그룹 이름을 찾습니다.
curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"
분석 그룹 및 범위의 이름이 포함된 응답을 반환해야 합니다.
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ] …이 예에서 분석 그룹 이름은
axgroup-001.입니다. - 다음 API 호출을 사용하여 분석 그룹에 추가할 각 Qpid 서버 구성요소의 UUID를 확인합니다.
curl http://qp-IP:8083/v1/servers/self
- 다음 API 호출을 사용하여 단일 Qpid 서버 UUID를
qpid-server요소에 추가합니다 (필요한 만큼 UUID에 대해 반복).curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/servers?uuid=qpiduuid&type=qpid-server"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X POST -H 'Accept: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/servers?uuid=94c96375-1ca7-412d-9eee-80fda94f6e0&type=qpid-server"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : ["8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f57 ], "properties" : { } } ], "data-processors" : { } - 다음 API 호출을 사용하여 단일 Qpid 서버 UUID를 소비자 그룹의 소비자 요소에 추가합니다 (필요한 만큼 UUID에 대해 반복).
curl -v -u adminEmail:pword -X POST -H 'Content-Type: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/consumer-groups/consumer-group-001/consumers?uuid=qpiduuid"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X POST -H 'Accept: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001//consumer-groups/consumer-group-001/consumers?uuid=94c96375-1ca7-412d-9eee-80fda94f6e0"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07","54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : ["8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f57 ], "properties" : { } } ], "data-processors" : { } - 모든 노드에서 모든
edge-qpid-server구성요소를 다시 시작하여 변경사항 이 이러한 구성요소에 의해 선택되도록 합니다./opt/apigee/apigee-service/bin/apigee-service edge-qpid-server restart/opt/apigee/apigee-service/bin/apigee-service edge-qpid-server wait_for_ready
분석 그룹에서 Postgres 서버 삭제
Postgres 서버를 삭제하는 프로세스는 Postgres 복제가 사용 설정되었는지 여부에 따라 다릅니다.
시나리오 1: Postgres 서버 1개, 복제 없음
분석 그룹 및 소비자 그룹의 이름을 확인합니다.
기본적으로 분석 그룹의 이름은
axgroup-001이고 소비자 그룹의 이름은consumer-group-001입니다. 리전의 자동 구성 파일에서 분석 그룹의 이름을AXGROUP속성을 사용하여 설정할 수 있습니다.분석 그룹 및 소비자 그룹의 이름을 모르는 경우 다음 명령어 를 사용하여 표시합니다.
curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"
다음과 같은 응답을 반환해야 합니다.
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07" ], "datastores" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77" ], "properties" : { } } ], "data-processors" : { }이 예에서 분석 그룹 이름은
axgroup-001, 소비자 그룹 이름consumer-group-001및postgres-serverUUID는8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77입니다. 이 ID는consumer-groups아래의postgres-server및datastores요소와 모두 연결되어 있습니다.아래 단계에서 가져온 분석 그룹 이름, 소비자 그룹 이름, UUID를 사용합니다.
- 다음 API 호출을 사용하여 소비자 그룹의
datastores요소에서postgres-serverUUID를 삭제합니다.curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/consumer-groups/consumergroupname/datastores/UUID"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/consumer-groups/consumer-group-001/datastores/8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07" ], "datastores" : [ ], "properties" : { } } ], "data-processors" : { } - 다음 API를 사용하여
postgres-serverUUID에서postgres-server요소를 삭제합니다.curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/servers?uuid=UUID&type=postgres-server"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/servers?uuid=8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77&type=postgres-server"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07" ], "postgres-server" : [ ] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07" ], "datastores" : [ ], "properties" : { } } ], "data-processors" : { } - Postgres 서버를 바꾸는지 아니면 삭제하는지 에 따라 다음을 실행합니다.
- Postgres 서버를 바꾸는 경우 Postgres 서버를 추가하는 단계는 Postgres 서버 추가 를 참고하세요.
- Postgres 서버를 삭제하는 경우 모든 노드에서 모든
edge-postgres-server및edge-qpid-server구성요소를 다시 시작하여 다음 명령어를 실행하여 변경사항이 이러한 구성요소에 의해 선택되도록 합니다./opt/apigee/apigee-service/bin/apigee-service edge-qpid-server restart/opt/apigee/apigee-service/bin/apigee-service edge-qpid-server wait_for_ready/opt/apigee/apigee-service/bin/apigee-service edge-postgres-server restart/opt/apigee/apigee-service/bin/apigee-service edge-postgres-server wait_for_ready
시나리오 2: 마스터-대기 복제가 있는 Postgres 서버 2개
다음 API를 사용하여 현재 등록된 분석 그룹 이름 및 Postgres 서버 UUID를 찾습니다.
curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"
이 호출은 다음과 같은 응답을 반환합니다.
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0" ], "properties" : { } } ], "data-processors" : { }이 예에서 분석 그룹 이름은
axgroup-001이고postgres-serverUUID는8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77및731c8c43-8c35-4b58-ad1a-f572b69c5f0입니다.postgres-server및datastores요소의 값이 동일합니다.아래 단계에서 이 단계에서 가져온 분석 그룹 이름, 소비자 그룹 이름, UUID를 사용합니다.
- 다음 API를 사용하여 소비자 그룹의
datastores요소에서postgres-serverUUID를 삭제합니다 (마스터 및 슬레이브 UUID는 API에서 쉼표로 구분되지만 위에서 언급한 분석 그룹 호출의 출력에서는 콜론으로 구분됨).curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/consumer-groups/consumergroupname/datastores/masteruuid,slaveuuid"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/consumer-groups/consumer-group-001/datastores/8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77,731c8c43-8c35-4b58-ad1a-f572b69c5f0"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : [ ], "properties" : { } } ], "data-processors" : { } - 다음 API를 사용하여
postgres-server요소에서postgres-serverUUID를 삭제합니다.curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/servers?uuid=masteruuid,slaveuuid&type=postgres-server"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/servers?uuid=8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77,731c8c43-8c35-4b58-ad1a-f572b69c5f0&type=postgres-server"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ ] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : [ ], "properties" : { } } ], "data-processors" : { } - Postgres 서버를 바꾸는지 아니면 삭제하는지 에 따라 다음을 실행합니다.
- Postgres 서버를 바꾸는 경우 Postgres 서버를 추가하는 단계는 Postgres 서버 추가 를 참고하세요.
- Postgres 서버를 삭제하는 경우 모든 노드에서 모든
edge-postgres-server및edge-qpid-server구성요소를 다시 시작하여 다음 명령어를 실행하여 변경사항이 이러한 구성요소에 의해 선택되도록 합니다./opt/apigee/apigee-service/bin/apigee-service edge-qpid-server restart/opt/apigee/apigee-service/bin/apigee-service edge-qpid-server wait_for_ready/opt/apigee/apigee-service/bin/apigee-service edge-postgres-server restart/opt/apigee/apigee-service/bin/apigee-service edge-postgres-server wait_for_ready
분석 그룹에서 Qpid 서버 삭제
- 다음 API를 사용하여 현재 등록된 Qpid 서버 UUID를 찾습니다.
다음과 같은 형식으로 응답을 반환해야 합니다.curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0" ], "properties" : { } } ], "data-processors" : { }이 예에서 분석 그룹 이름은
axgroup-001이고 Qpid 서버 UUID는94c96375-1ca7-412d-9eee-80fda94f6e0및54a96375-33a7-4fba-6bfa-80fda94f6e07입니다.qpid-server및consumers요소의 값이 동일합니다.아래 단계에서 이 단계에서 가져온 분석 그룹 이름, 소비자 그룹 이름, UUID를 사용합니다.
- 다음 API 호출을 사용하여 소비자 그룹의
consumers요소에서 단일qpid-serverUUID를 삭제합니다 (필요한 만큼 UUID에 대해 반복).curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/consumer-groups/consumer-group-001/consumers/qpiduuid"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/consumer-groups/consumer-group-001/consumers/94c96375-1ca7-412d-9eee-80fda94f6e0"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : [ "94c96375-1ca7-412d-9eee-80fda94f6e07", "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : ["8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f57 ], "properties" : { } } ], "data-processors" : { } - 다음 API 호출을 사용하여
qpid-server요소에서 단일qpid-serverUUID를 삭제합니다 (필요한 만큼 UUID에 대해 반복).curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://ms-IP:8080/v1/analytics/groups/ax/axgroupname/servers?uuid=qpiduuid&type=qpid-server"
호출 및 출력 예시:
curl -v -u adminEmail:pword -X DELETE -H 'Accept: application/json' "http://localhost:8080/v1/analytics/groups/ax/axgroup-001/servers?uuid=94c96375-1ca7-412d-9eee-80fda94f6e0&type=qpid-server"
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ], "uuids" : { "qpid-server" : ["54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "postgres-server" : [ "8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f572b69c5f0"] }, "consumer-groups" : [ { "name" : "consumer-group-001", "consumers" : [ "54a96375-33a7-4fba-6bfa-80fda94f6e07" ], "datastores" : ["8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77:731c8c43-8c35-4b58-ad1a-f57 ], "properties" : { } } ], "data-processors" : { } - 모든 노드에서 모든
edge-qpid-server구성요소를 다시 시작하여 변경사항 이 이러한 구성요소에 의해 선택되도록 합니다./opt/apigee/apigee-service/bin/apigee-service edge-qpid-server restart/opt/apigee/apigee-service/bin/apigee-service edge-qpid-server wait_for_ready