如要從 API 中樞整合服務移除 Apigee Edge for Private Cloud 機構,請按照下列步驟操作:
- 設定訊息處理器:
最後,更新訊息處理器,為要移除的機構停用雙重寫入功能。您必須在 Apigee Edge for Private Cloud 安裝中的每個訊息處理器 (MP) 節點上套用這項設定變更。
- 在每個 MP 節點上編輯
/opt/apigee/customer/application/message-processor.properties
檔案。 - 找出資源
conf_message-processor-communication_uapim.enabled.environments
,然後移除與要刪除的機構及其環境相關的所有項目。舉例來說,如果您要移除
new_org
和其環境dev
和staging
:這是以半形逗號分隔的清單,列出所有必須停用 Apigee API Hub for Private Cloud 連接器執行階段資料上線的環境。
conf_message-processor-communication_uapim.enabled.environments=acme~prod
、acme~dev,noncps~prod
網路檔案系統 (NFS) 掛接的路徑,即
conf_message-processor-communication_uapim.runtime.data.path=/the/nfs
- 在每個 MP 節點上編輯
- 設定 Private Cloud 適用的 Apigee API Hub 連接器:
接著,請移除要刪除的機構項目,更新 Apigee API 中樞連接器的設定。
- 編輯
/opt/apigee/customer/application/uapim-connector.properties
檔案。 - 在
conf_uapim_connector.uapim.settings.json
區段下方找到connectorConfig
區段,然後移除要刪除機構的整個 JSON 區塊。舉例來說,如果要刪除
new_org
:conf_uapim_connector.uapim.settings.json={ "connectorConfig" : { "org1" : { "runtimeDataPubsub" : "", "metadataPubsub":"", "serviceAccount": "mysa1@in.myfirstProject", "pluginInstanceId":"aaaa" } }, "runtimeDataPath":"/the/nfs/mounted/path", "managementServer": "hostname" }
- 修改檔案後,請重新啟動 Apigee API Hub for Private Cloud 連接器,讓變更生效:
apigee-service edge-uapim-connector restart
- 編輯
- 在 API 中心刪除外掛程式執行個體:
首先,請刪除與要從 API 中心移除的機構相關聯的外掛程式執行個體。這項操作會停止該特定機構的中繼資料和執行階段資料流程。
- 在所有相關 MP 節點上更新這個檔案後,請對訊息處理器執行滾動式重新啟動,確保套用設定。