在私有雲的 Edge 中,您可能需要變更 Postgres 資料庫設定,例如主機、使用者名稱或密碼,例如實作 Postgres 資料庫容錯移轉。如果已啟用營利服務,您還必須針對此變更修改營利系統設定。
請按照下列步驟變更營利服務的 Postgres 資料庫連線設定。
- 請使用以下設定建立設定檔。檔案應可供
apigee
使用者讀取。# IP address of a zookeeper node ZK_HOSTS=XX.XX.XX.XX # Postgres admin user and password PG_USER=apigee PG_PWD=postgres # Postgres Host IP MO_PG_HOST=XX.XX.XX.XX # Postgres user and password for monetization MO_PG_USER=postgre MO_PG_PASSWD=changeme # [OPTIONAL] Comma separated list of org names for which monetization is enabled MO_ORG_NAMES=org1,org2
- 在其中一個管理伺服器節點中執行下列指令:
$APIGEE_ROOT/apigee-service/bin/apigee-service edge-mint-management-server mint-pg-registration -f <path-to-config-file>
- 重新啟動所有管理伺服器和訊息處理器節點。
$APIGEE_ROOT/apigee-service/bin/apigee-service edge-management-server restart $APIGEE_ROOT/apigee-service/bin/apigee-service edge-message-processor restart