Analytics gruplarına analiz bileşenleri ekleme ve mevcut Analytics bileşenlerini silme

Apigee Edge belgelerini görüntülüyorsunuz.
Apigee X belgelerine gidin.
bilgi

Edge for Private Cloud kurulumunda, Postgres ve Qpid sunucularını mevcut bir analiz grubundan kaldırmanız veya analiz grubuna eklemeniz gerekebilir. Bu dokümanda, mevcut bir Edge kurulumuna Postgres ve Qpid sunucularının tek bir Postgres yüklemesi ve ana bekleme modunda bir Postgres yüklemesi için nasıl ekleneceği ve kaldırılacağı açıklanmaktadır.

Daha fazla bilgiyi Postgres için ana bekleme modunda çoğaltma başlıklı makalede bulabilirsiniz.

Ön koşullar

Sistem yöneticisi kimlik bilgilerini kullanarak yönetim sunucusu API çağrıları yapma yetkisi.

Analiz grubuna mevcut bir Postgres sunucusu ekleme

Postgres sunucu bileşenlerini ekleme işlemi, Postgres'in çoğaltma içermeyen tek bir sunucu olarak mı yoksa ana bekleme modunda çoğaltma özelliği etkinleştirilmiş iki sunucu olarak mı yüklendiğine bağlıdır.

1. senaryo: Bir Postgres sunucusu, Postgres çoğaltması yok

  1. Analizlerin ve tüketici gruplarının adını belirleyebilir.

    Varsayılan olarak analiz grubunun adı axgroup-001, tüketici grubunun adı ise consumer-group-001 şeklindedir. Bir bölgenin sessiz yapılandırma dosyasında, AXGROUP özelliğini kullanarak analiz grubunun adını ayarlayabilirsiniz.

    Analizlerin ve tüketici gruplarının adlarından emin değilseniz bunları görüntülemek için aşağıdaki komutu kullanın:

    curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"

    Bu çağrı, analiz grubunun adlarını içeren bir yanıt döndürür:

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

    Bu örnekte analiz grubunun adı axgroup-001. şeklindedir.

  2. postgres-server bileşeninin UUID'sini belirlemek için aşağıdaki API'yi kullanın:
    curl http://pg-IP:8084/v1/servers/self

    Aşağıdaki API çağrılarında axgoupname ve UUID değerlerini yukarıda belirtilen analiz grubu adı ve UUID ile değiştirin.

  3. Postgres sunucusu UUID'sini postgres-server öğesine eklemek için aşağıdaki API çağrısını kullanın:
    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"

    Örnek çağrı ve çıkış:

    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. Postgres sunucusu UUID'sini tüketici grubuna eklemek için aşağıdaki API'yi kullanın:
    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"

    Örnek çağrı ve çıkış:

    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. Değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerde tüm edge-postgres-server ve edge-qpid-server bileşenlerini yeniden başlatın:
    /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. senaryo: Ana beklemede çoğaltmalı iki Postgres sunucusu

  1. Analizlerin ve tüketici gruplarının adını belirleyebilir.

    Varsayılan olarak analiz grubunun adı axgroup-001, tüketici grubunun adı ise consumer-group-001 şeklindedir. Bir bölgenin sessiz yapılandırma dosyasında, AXGROUP özelliğini kullanarak analiz grubunun adını ayarlayabilirsiniz.

    Analizlerin ve tüketici gruplarının adlarından emin değilseniz bunları görüntülemek için aşağıdaki komutu kullanın:

    curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"

    Bu çağrı, tanımlı analiz gruplarının adlarını içeren bir yanıt döndürür:

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

    Bu örnekte analiz grubunun adı axgroup-001. şeklindedir.

  2. Her ana postgres-server bileşeninin VE bekleme postgres-server bileşeninin UUID'lerini bulmak için aşağıdaki API çağrısını kullanın:
    curl http://pg-IP:8084/v1/servers/self

    Aşağıdaki API çağrılarında axgoupname değerini axgroup-001 ile değiştirmeniz ve ana sunucuda 2. adımda alınan UUID'nin masteruuid yerine kullanılması ve 2. adımda bekleme sunucusu için döndürülen UUID'nin slaveuuid olarak kullanılması gerekir.

  3. Postgres sunucusu UUID'lerini postgres-server öğesine eklemek için aşağıdaki API'yi kullanın:
    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"

    Örnek çağrı ve çıkış:

    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. Postgres sunucusu UUID'lerini tüketici grubuna eklemek için aşağıdaki API'yi kullanın:
    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"

    Örnek çağrı ve çıkış:

    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. Değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerde tüm edge-postgres-server ve edge-qpid-server bileşenlerini yeniden başlatın:
    /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

Analiz grubuna mevcut bir Qpid sunucusu ekleme

  1. Aşağıdaki API'yi kullanarak analiz grubu adını bulun:
    curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"

    Bu, analiz gruplarının ve kapsamlarının adlarını içeren bir yanıt döndürecektir:

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

    Bu örnekte analiz grubunun adı axgroup-001. şeklindedir.

  2. Analiz grubuna eklemek istediğiniz her Qpid sunucu bileşeninin UUID'sini belirlemek için aşağıdaki API çağrısını kullanın:
    curl http://qp-IP:8083/v1/servers/self
  3. qpid-server öğesine tek bir Qpid sunucusu UUID'si eklemek için şu API çağrısını kullanın (gerektiği kadar UUID için tekrarlayın):
    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"

    Örnek çağrı ve çıkış:

    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. Tüketici grubunun tüketici öğesine tek bir Qpid sunucusu UUID'si eklemek için aşağıdaki API çağrısını kullanın (gerektiği kadar UUID için tekrarlayın):
    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" 

    Örnek çağrı ve çıkış:

    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. Değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki edge-qpid-server bileşenlerini yeniden başlatın:
    /opt/apigee/apigee-service/bin/apigee-service edge-qpid-server restart
    /opt/apigee/apigee-service/bin/apigee-service edge-qpid-server wait_for_ready

Analiz grubundan Postgres sunucusu kaldırma

Postgres sunucusunu kaldırma işlemi Postgres çoğaltmasının etkinleştirilip etkinleştirilmediğine bağlıdır.

1. senaryo: Bir Postgres sunucusu, çoğaltma yok

  1. Analizlerin ve tüketici gruplarının adını belirleyebilir.

    Varsayılan olarak analiz grubunun adı axgroup-001, tüketici grubunun adı ise consumer-group-001 şeklindedir. Bir bölgenin sessiz yapılandırma dosyasında, AXGROUP özelliğini kullanarak analiz grubunun adını ayarlayabilirsiniz.

    Analizlerin ve tüketici gruplarının adlarından emin değilseniz bunları görüntülemek için aşağıdaki komutu kullanın:

    curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"

    Bu komut, aşağıdaki gibi bir yanıt döndürecektir:

    [ {
      "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" : {
      }
    

    Bu örnekte, analiz grubu adı axgroup-001, tüketici grubu adı consumer-group-001 ve postgres-server UUID'si 8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77 şeklindedir. Bu kimliğin consumer-groups altındaki hem postgres-server hem de datastores öğesiyle ilişkilendirildiğini unutmayın.

    Aşağıdaki adımlarda aldığınız analiz grubu adını, tüketici grubu adını ve UUID'yi kullanın.

  2. postgres-server UUID'yi tüketici grubunun datastores öğesinden kaldırmak için aşağıdaki API çağrısını kullanın:
    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"

    Örnek çağrı ve çıkış:

    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. postgres-server UUID'sini postgres-server öğesinden kaldırmak için aşağıdaki API'yi kullanın:
    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"

    Örnek çağrı ve çıkış:

    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 sunucusunu değiştiriyor veya silmenize bağlı olarak:
    • Postgres sunucusunu değiştiriyorsanız Postgres sunucusu ekleme adımları için Postgres sunucusu ekleme başlıklı makaleyi inceleyin.
    • Bir Postgres sunucusunu siliyorsanız aşağıdaki komutları çalıştırarak, değişikliklerin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki tüm edge-postgres-server ve edge-qpid-server bileşenlerini yeniden başlatın:
      /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. senaryo: Ana beklemede çoğaltmalı iki Postgres sunucusu

  1. Aşağıdaki API ile kayıtlı olan analiz grubu adını ve Postgres sunucusu UUID'lerini bulun:

    curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"

    Bu çağrı, aşağıdaki gibi bir yanıt döndürür:

    [ {
      "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" : {
      }
    

    Bu örnekte, analiz grubunun adı axgroup-001, postgres-server UUID'leri ise 8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77 ve 731c8c43-8c35-4b58-ad1a-f572b69c5f0'dir. postgres-server ve datastores öğelerinin aynı değere sahip olduğunu unutmayın.

    Aşağıdaki adımlarda bu adımda alınan analiz grubu adını, tüketici grubu adını ve UUID'leri kullanın.

  2. postgres-server UUID'leri tüketici grubunun datastores öğesinden kaldırmak için aşağıdaki API'yi kullanın (ana ve yardımcı UUID'lerin API'de virgülle ayrıldığını ancak yukarıda bahsedilen analiz grubu çağrısının çıktısında iki nokta ile ayrılacağını unutmayın):
    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"

    Örnek çağrı ve çıkış:

    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. postgres-server UUID'lerini postgres-server öğesinden kaldırmak için aşağıdaki API'yi kullanın:
    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"

    Örnek çağrı ve çıkış:

    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 sunucusunu değiştiriyor veya silmenize bağlı olarak:
    • Postgres sunucusunu değiştiriyorsanız Postgres sunucusu ekleme adımları için Postgres sunucusu ekleme başlıklı makaleyi inceleyin.
    • Bir Postgres sunucusunu siliyorsanız aşağıdaki komutları çalıştırarak, değişikliklerin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki tüm edge-postgres-server ve edge-qpid-server bileşenlerini yeniden başlatın:
      /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

    Analiz grubundan Qpid sunucusunu kaldırma

    1. Şu API'yi kullanarak kayıtlı olan Qpid sunucusu UUID'lerini bulun:
      curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"
      Bu işlem şu formda bir yanıt döndürecektir:
      [  {
        "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" : {
        }
      

      Bu örnekte analiz grubunun adı axgroup-001 ve Qpid sunucusu UUID'leri 94c96375-1ca7-412d-9eee-80fda94f6e0 ve 54a96375-33a7-4fba-6bfa-80fda94f6e07'dir. qpid-server ve consumers öğelerinin aynı değerlere sahip olduğunu unutmayın.

      Aşağıdaki adımlarda bu adımda alınan analiz grubu adını, tüketici grubu adını ve UUID'leri kullanın.

    2. Tüketici grubunun consumers öğesinden tek bir qpid-server UUID'yi kaldırmak için aşağıdaki API çağrısını kullanın (gerektiği kadar UUID için tekrarlayın):
      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"

      Örnek çağrı ve çıkış:

      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. qpid-server öğesinden tek bir qpid-server UUID'yi kaldırmak için aşağıdaki API çağrısını kullanın (gerektiği kadar UUID için tekrarlayın):
      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"

      Örnek çağrı ve çıkış:

      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. Değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki edge-qpid-server bileşenlerini yeniden başlatın:
      /opt/apigee/apigee-service/bin/apigee-service edge-qpid-server restart
      /opt/apigee/apigee-service/bin/apigee-service edge-qpid-server wait_for_ready