애널리틱스 그룹에서 애널리틱스 구성요소 추가 및 삭제

현재 Apigee Edge 문서가 표시되고 있습니다.
Apigee X 문서로 이동
정보

Private Cloud용 Edge 설치 시 기존 분석 그룹에서 Postgres 및 Qpid 서버를 삭제하거나 분석 그룹에 추가해야 할 수 있습니다. 이 문서에서는 단일 Postgres 설치 및 마스터 대기 Postgres 설치를 위해 기존 Edge 설치에서 Postgres 및 Qpid 서버를 추가하고 삭제하는 방법을 설명합니다.

자세한 내용은 Postgres의 마스터-대기 복제 설정을 참조하세요.

기본 요건

시스템 관리자의 사용자 인증 정보를 사용하여 관리 서버 API를 호출할 수 있습니다.

분석 그룹에 기존 Postgres 서버 추가

Postgres 서버 구성요소를 추가하는 프로세스는 Postgres가 복제가 없는 단일 서버로 설치되었는지 또는 마스터-대기 복제가 사용 설정된 2개의 서버로 설치되었는지에 따라 다릅니다.

시나리오 #1: 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" ]
      …
    

    이 예시에서 애널리틱스 그룹 이름은 axgroup-001.입니다.

  2. 다음 API를 사용하여 postgres-server 구성요소의 UUID를 확인합니다.
    curl http://pg-IP:8084/v1/servers/self

    다음 API 호출에서 axgoupnameUUID를 위에서 결정한 애널리틱스 그룹 이름 및 UUID로 바꿉니다.

  3. 다음 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" : {
      }
    
  4. 다음 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" : {
      }
    
  5. 모든 노드에서 모든 edge-postgres-serveredge-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: 마스터-대기 복제가 있는 2개의 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" ]
      …
    

    이 예시에서 애널리틱스 그룹 이름은 axgroup-001.입니다.

  2. 다음 API 호출을 사용하여 각 마스터 postgres-server 구성요소의 UUID와 대기 postgres-server 구성요소를 찾습니다.
    curl http://pg-IP:8084/v1/servers/self

    다음 API 호출에서 axgoupnameaxgroup-001로 바꿔야 하며, 마스터 서버의 2단계에서 가져온 UUID를 masteruuid 대신 사용해야 하며 대기 서버에 대해 2단계에서 반환된 UUID는 slaveuuid로 사용해야 합니다.

  3. 다음 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" : {
      }
    
    
  4. 다음 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" : {
      }
    
  5. 모든 노드에서 모든 edge-postgres-serveredge-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 서버 추가

  1. 다음 API를 사용하여 분석 그룹 이름을 찾습니다.
    curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"

    그러면 애널리틱스 그룹 및 범위의 이름이 포함된 응답이 반환됩니다.

    [  {
      "name" : "axgroup-001",
      "properties" : {
      },
      "scopes" : [ "example~prod", "example~test" ]
      …
    

    이 예시에서 애널리틱스 그룹 이름은 axgroup-001.입니다.

  2. 다음 API 호출을 사용하여 분석 그룹에 추가하려는 각 Qpid 서버 구성요소의 UUID를 확인합니다.
    curl http://qp-IP:8083/v1/servers/self
  3. 다음 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" : {
      }
    
  4. 다음 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" : {
      }
    
    
  5. 모든 노드에서 모든 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개, 복제 없음

  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-server UUID는 8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77입니다. 이 ID는 consumer-groups 아래의 postgres-serverdatastores 요소 모두와 연결됩니다.

    아래 단계에서 가져온 애널리틱스 그룹 이름, 소비자 그룹 이름, UUID를 사용합니다.

  2. 다음 API 호출을 사용하여 소비자 그룹의 datastores 요소에서 postgres-server UUID를 삭제합니다.
    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" : {
      }
    
  3. 다음 API를 사용하여 postgres-server 요소에서 postgres-server UUID를 삭제합니다.
    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" : {
      }
    
  4. Postgres 서버를 교체하는지 삭제하는지에 따라 다음 단계를 따릅니다.
    • Postgres 서버를 교체하는 경우 Postgres 서버를 추가하는 단계는 Postgres 서버 추가를 참조하세요.
    • Postgres 서버를 삭제하는 경우 모든 노드에서 모든 edge-postgres-serveredge-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: 마스터-대기 복제가 있는 2개의 Postgres 서버

  1. 현재 다음 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-server UUID는 8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77731c8c43-8c35-4b58-ad1a-f572b69c5f0입니다. postgres-serverdatastores 요소는 값이 동일합니다.

    아래 단계에서 이 단계에서 가져온 애널리틱스 그룹 이름, 소비자 그룹 이름, UUID를 사용합니다.

  2. 다음 API를 사용하여 소비자 그룹의 datastores 요소에서 postgres-server UUID를 삭제합니다 (마스터 및 슬레이브 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" : {
      }
    
  3. 다음 API를 사용하여 postgres-server 요소에서 postgres-server UUID를 삭제합니다.
    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" : {
      }
    
  4. Postgres 서버를 교체하는지 삭제하는지에 따라 다음 단계를 따릅니다.
    • Postgres 서버를 교체하는 경우 Postgres 서버를 추가하는 단계는 Postgres 서버 추가를 참조하세요.
    • Postgres 서버를 삭제하는 경우 모든 노드에서 모든 edge-postgres-serveredge-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 서버 삭제

    1. 다음 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-80fda94f6e054a96375-33a7-4fba-6bfa-80fda94f6e07입니다. qpid-serverconsumers 요소는 값이 동일합니다.

      아래 단계의 이 단계에서 가져온 애널리틱스 그룹 이름, 소비자 그룹 이름, UUID를 사용합니다.

    2. 다음 API 호출을 사용하여 소비자 그룹의 consumers 요소에서 단일 qpid-server UUID를 삭제합니다 (필요한 만큼 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" : {
        }
      
    3. 다음 API 호출을 사용하여 qpid-server 요소에서 단일 qpid-server UUID를 삭제합니다 (필요한 만큼 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" : {
        }
      
    4. 모든 노드에서 모든 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