Apigee Edge belgelerini görüntülüyorsunuz.
Apigee X belgelerine gidin. bilgi
Edge for Private Cloud yüklemesinde, Postgres ve Qpid sunucularını mevcut bir analiz grubundan kaldırmanız veya bir analiz grubuna eklemeniz gerekebilir. Bu belgede, tek bir Postgres yüklemesi ve ana-yedek Postgres yüklemesi için mevcut bir Edge yüklemesine Postgres ve Qpid sunucularının nasıl ekleneceği ve nasıl kaldırılacağı açıklanmaktadır.
Daha fazla bilgi için Postgres için ana-bekleme replikasyonu ayarlama başlıklı makaleyi inceleyin.
Ön koşullar
Sistem yöneticisi kimlik bilgilerini kullanarak yönetim sunucusu API çağrıları yapabilme.
Mevcut bir Postgres sunucusunu analiz grubuna ekleme
Postgres sunucu bileşenlerini ekleme süreci, Postgres'in tek bir sunucu olarak ve replikasyon olmadan mı yoksa ana-bekleme replikasyonu etkinleştirilmiş iki sunucu olarak mı kurulduğuna bağlıdır.
1. senaryo: Tek bir PostgreSQL sunucusu, PostgreSQL replikasyonu yok
Analiz ve tüketici gruplarının adını belirleyin.
Varsayılan olarak, analiz grubunun adı
axgroup-001, tüketici grubunun adı iseconsumer-group-001'dir. Bir bölgenin sessiz yapılandırma dosyasında,AXGROUPözelliğini kullanarak analiz grubunun adını ayarlayabilirsiniz.Analiz 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 grubu adı
axgroup-001.postgres-serverbileş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 yerine yukarıda belirlenen Analytics grubu adını ve UUID'yi girin.
- 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" : { } - 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" : { } - Değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki tüm
edge-postgres-serverveedge-qpid-serverbileş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
Senaryo 2: Ana-yedek çoğaltma içeren iki Postgres sunucusu
Analiz ve tüketici gruplarının adını belirleyin.
Varsayılan olarak, analiz grubunun adı
axgroup-001, tüketici grubunun adı iseconsumer-group-001'dir. Bir bölgenin sessiz yapılandırma dosyasında,AXGROUPözelliğini kullanarak analiz grubunun adını ayarlayabilirsiniz.Analiz 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ımlanan 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 grubu adı
axgroup-001.- Her bir ana
postgres-serverbileşeninin VE yedekpostgres-serverbileş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 yerine
axgroup-001, ana sunucuda 2. adımda elde edilen UUID yerine masteruuid, yedek sunucuda 2. adımda döndürülen UUID yerine ise slaveuuid kullanmanız gerekir. - 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" : { } - 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" : { } - Değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki tüm
edge-postgres-serverveedge-qpid-serverbileş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
Mevcut bir Qpid sunucusunu analiz grubuna ekleme
- Aşağıdaki API'yi kullanarak analiz grubu adını bulun:
curl -u adminEmail:pword "http://ms-IP:8080/v1/analytics/groups/ax"
Bu işlem, analiz gruplarının ve kapsamlarının adlarını içeren bir yanıt döndürmelidir:
[ { "name" : "axgroup-001", "properties" : { }, "scopes" : [ "example~prod", "example~test" ] …Bu örnekte, analiz grubu adı
axgroup-001. - 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
qpid-serveröğesine tek bir Qpid sunucusu UUID'si eklemek için aşağıdaki API çağrısını kullanın (gerekli sayıda 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" : { }- Tüketici grubunun tüketiciler öğesine tek bir Qpid sunucusu UUID'si eklemek için aşağıdaki API çağrısını kullanın (gerekli sayıda 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" : { } - Değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki tüm
edge-qpid-serverbileş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
Bir Postgres sunucusunu analiz grubundan kaldırma
Postgres sunucusunu kaldırma işlemi, Postgres replikasyonunun etkinleştirilip etkinleştirilmediğine bağlıdır.
1. senaryo: Tek bir PostgreSQL sunucusu, çoğaltma yok
Analiz ve tüketici gruplarının adını belirleyin.
Varsayılan olarak, analiz grubunun adı
axgroup-001, tüketici grubunun adı iseconsumer-group-001'dir. Bir bölgenin sessiz yapılandırma dosyasında,AXGROUPözelliğini kullanarak analiz grubunun adını ayarlayabilirsiniz.Analiz 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 işlem, aşağıdakine benzer bir yanıt döndürmelidir:
[ { "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-001vepostgres-serverUUID'si8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77'dir. Bu kimliğin,consumer-groupsaltındaki hempostgres-serverhem dedatastoresöğesiyle ilişkilendirildiğini unutmayın.Aşağıdaki adımlarda elde edilen analiz grubu adını, tüketici grubu adını ve UUID'yi kullanın.
- Tüketici grubunun
postgres-serveröğesindendatastoresUUID'sini 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" : { } postgres-serveröğesindenpostgres-serverUUID'sini 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" : { }- Postgres sunucusunu değiştiriyor veya siliyorsanız:
- 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, değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki tüm
edge-postgres-serverveedge-qpid-serverbileşenlerini yeniden başlatın. Bunu yapmak için aşağıdaki komutları çalıştırı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
Senaryo 2: Ana-yedek çoğaltma içeren iki Postgres sunucusu
Şu anda aşağıdaki API kullanılarak kaydedilmiş 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ğıdakine benzer 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 grubu adı
axgroup-001,postgres-serverUUID'leri ise8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77ve731c8c43-8c35-4b58-ad1a-f572b69c5f0'tür.postgres-servervedatastoresöğesinin aynı değere sahip olduğunu unutmayın.Bu adımda elde edilen analiz grubu adını, tüketici grubu adını ve UUID'leri aşağıdaki adımlarda kullanın.
- Tüketici grubunun
postgres-serveröğesindendatastoresUUID'lerini 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 çıkışında iki nokta üst üste 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" : { } postgres-serveröğesindenpostgres-serverUUID'lerini 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" : { }- Postgres sunucusunu değiştiriyor veya siliyorsanız:
- 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, değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki tüm
edge-postgres-serverveedge-qpid-serverbileşenlerini yeniden başlatın. Bunu yapmak için aşağıdaki komutları çalıştırı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
Bir Qpid sunucusunu analiz grubundan kaldırma
- Şu anda aşağıdaki API kullanılarak kaydedilmiş olan Qpid sunucusu UUID'lerini bulun:
Bu işlem, şu biçimde bir yanıt döndürmelidir: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" : { }Bu örnekte, analiz grubu adı
axgroup-001, Qpid sunucusu UUID'leri ise94c96375-1ca7-412d-9eee-80fda94f6e0ve54a96375-33a7-4fba-6bfa-80fda94f6e07'dir.qpid-serverveconsumersöğelerinin aynı değerlere sahip olduğunu unutmayın.Bu adımda elde edilen analiz grubu adını, tüketici grubu adını ve UUID'leri aşağıdaki adımlarda kullanın.
- Tüketici grubunun
consumersöğesinden tek birqpid-serverUUID'yi kaldırmak için aşağıdaki API çağrısını kullanın (gerekli sayıda 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" : { } - Tek bir
qpid-serverUUID'yiqpid-serveröğesinden kaldırmak için aşağıdaki API çağrısını kullanın (gerekli sayıda 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" : { } - Değişikliğin bu bileşenler tarafından alındığından emin olmak için tüm düğümlerdeki tüm
edge-qpid-serverbileş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