本節詳細說明訊息處理器與 Apigee API Hub 之間的相互依賴關係,適用於執行階段記錄處理的 Private Cloud 連接器。如要將執行階段資料 (分析) 傳輸至 API Hub,您必須為 Apigee Edge for Private Cloud 環境中的訊息處理器設定「雙重寫入」至共用網路檔案系統。
- 設定網路檔案系統 (NFS):
- 確認已設定並掛接 NFS。這個 NFS 用於分享所有訊息處理器的分析記錄。
- NFS 掛接必須在執行訊息處理器和 Apigee Edge for Private Cloud 連接器的所有虛擬機器上提供並掛接。
- 設定訊息處理器,以便在 NFS 上寫入資料:編輯每個訊息處理器虛擬機器上的
/opt/apigee/customer/application/message-processor.properties
檔案。新增下列設定:
# This is a comma separated list of all the environments for which the Apigee hub connector runtime data on-ramp has to be enabled. 在本範例中,我們從 2 個不同的機構啟用 3 個環境。 # Path to the NFS mount which will store the runtime data from message processors.conf_message-processor-communication_uapim.enabled.environments=acme~prod,acme~dev,noncps~prod
conf_message-processor-communication_uapim.runtime.data.path=/the/nfs
- 重新啟動訊息處理器:使用輪流重新啟動方法重新啟動訊息處理器。