支援多個新版 Edge UI 執行個體

您可以在高可用性 (HA) 情境中安裝多個新版 Edge UI (edge-management-ui) 執行個體。不過,安裝多個 New Edge UI 執行個體後,您必須執行安裝後工作,才能在所有 edge-management-ui 節點之間同步處理屬性設定。

具體來說,您必須將所有新版 Edge UI 執行個體設為具有下列屬性的相同值:

conf_uebe_applicationsecret=value
conf_uebe_mgmtCredential=value
conf_apigee_mail.smtp.credential=value

其中:

  • conf_uebe_applicationsecret 是 New Edge UI 使用的工作階段和憑證加密金鑰。
  • conf_uebe_mgmtCredential 是加密的管理伺服器憑證。
  • conf_apigee_mail.smtp.credential 是加密的 SMTP 伺服器憑證。

此外,如果您將新版 Edge UI 執行個體設為使用 TLS,請務必在每個 edge-management-ui 節點上使用相同的 TLS 憑證和私密金鑰。

使用 HTTP 設定 New Edge UI 執行個體

  1. 登入託管第一個新版 Edge UI 執行個體的節點 (以節點上的殼層使用者身分)。
  2. 在第一個新版 Edge UI 節點上開啟 /opt/apigee/token/application/management-ui.properties,並複製下列屬性的值,以供日後使用:
    conf_uebe_applicationsecret="value"
    conf_uebe_mgmtCredential="value"
    conf_apigee_mail.smtp.credential="value"
  3. 登入代管第二個 New Edge UI 執行個體的節點。
  4. 在編輯器中開啟第二個新版 Edge UI 執行個體上的 /opt/apigee/customer/application/management-ui.properties。如果檔案不存在,請建立檔案:
    vi /opt/apigee/customer/application/management-ui.properties
  5. 使用從第一個新版 Edge UI 執行個體複製的確切值,將下列屬性新增至 /opt/apigee/customer/application/management-ui.properties:
    conf_uebe_applicationsecret="value"
    conf_uebe_mgmtCredential="value"
    conf_apigee_mail.smtp.credential="value"
  6. 儲存檔案。
  7. 確認 /opt/apigee/customer/application/management-ui.properties 屬於 apigee 使用者:
    chown apigee:apigee /opt/apigee/customer/application/management-ui.properties
  8. 設定並重新啟動第二個 New Edge UI 執行個體:
    /opt/apigee/apigee-service/bin/apigee-service edge-management-ui configure
    /opt/apigee/apigee-service/bin/apigee-service edge-management-ui restart

使用者現在可以登入任一 New Edge UI 執行個體。

使用 TLS/HTTPS 設定 New Edge UI 執行個體

  1. 按照「為新版 Edge UI 設定 TLS」一文所述,將第一個新版 Edge UI 執行個體設為使用 TLS/HTTPS。
  2. 如上所述,為 HTTP 設定第二個 New Edge UI 執行個體,以同步處理 conf_uebe_applicationsecret、conf_uebe_mgmtCredential 和 conf_apigee_mail.smtp.credential。
  3. 將含有 TLS 憑證和私密金鑰的 PEM 檔案,從第一個新版 Edge UI 執行個體複製到代管第二個新版 Edge UI 執行個體的節點 (例如 /opt/apigee/customer/application/edge-management-ui/)。
  4. 按照「為新版 Edge UI 設定 TLS」一文所述,將第二個新版 Edge UI 執行個體設為使用 TLS/HTTPS。