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
Analizlerin ve tüketici gruplarının adını belirleyebilir.
Varsayılan olarak analiz grubunun adı
axgroup-001
, tüketici grubunun adı iseconsumer-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.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.
- 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üğümlerde tüm
edge-postgres-server
veedge-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
Analizlerin ve tüketici gruplarının adını belirleyebilir.
Varsayılan olarak analiz grubunun adı
axgroup-001
, tüketici grubunun adı iseconsumer-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.- Her ana
postgres-server
bileşeninin VE beklemepostgres-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. - 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üğümlerde tüm
edge-postgres-server
veedge-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
- 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. - 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 ş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" : { }
- 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" : { }
- 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
Analizlerin ve tüketici gruplarının adını belirleyebilir.
Varsayılan olarak analiz grubunun adı
axgroup-001
, tüketici grubunun adı iseconsumer-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
vepostgres-server
UUID'si8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77
şeklindedir. Bu kimliğinconsumer-groups
altındaki hempostgres-server
hem dedatastores
öğ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.
postgres-server
UUID'yi tüketici grubunundatastores
öğ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" : { }
postgres-server
UUID'sinipostgres-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" : { }
- 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
veedge-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
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 ise8ee86b70-5b33-44b6-b2f8-1b0ec0ec8d77
ve731c8c43-8c35-4b58-ad1a-f572b69c5f0
'dir.postgres-server
vedatastores
öğ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.
postgres-server
UUID'leri tüketici grubunundatastores
öğ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" : { }
postgres-server
UUID'lerinipostgres-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" : { }
- 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
veedge-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
- Ş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'leri94c96375-1ca7-412d-9eee-80fda94f6e0
ve54a96375-33a7-4fba-6bfa-80fda94f6e07
'dir.qpid-server
veconsumers
öğ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.
- Tüketici grubunun
consumers
öğesinden tek birqpid-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" : { }
qpid-server
öğesinden tek birqpid-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" : { }
- 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