為 WebSphere 傳統工作負載自訂遷移計畫

事前準備

本主題假設您已建立遷移作業,並擁有遷移計畫檔案。

編輯遷移計畫

複製及分析檔案系統後,您可以在指定輸出路徑 ANALYSIS_OUTPUT_PATH/config.yaml 中建立的新目錄中找到遷移計畫。

視需要編輯遷移計畫並儲存變更。

查看遷移計畫的詳細資料和指引性註解,視需要新增資訊。

具體來說,請考慮針對下列部分進行編輯:

選取應用程式

在遷移計畫中,「應用程式」欄位代表要遷移的應用程式。如果不想遷移所有應用程式,可以將其移除。

applications:
- appName: hello-world-servlet-ear
  httpEndpoints:
  - httpPort: 9080
    httpsPort: 9443
    id: defaulthttpendpoint
  image:
    name: hello-world-servlet-ear
  path: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/m4a-twas-ndNode01Cell/applications/Hello-World-Servlet.ear
…
- appName: commons-ejb-ear-provided-ear
  httpEndpoints:
  - httpPort: 9080
    httpsPort: 9443
    id: defaulthttpendpoint
  image:
    name: commons-ejb-ear-provided-ear
  path: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/m4a-twas-ndNode01Cell/applications/commons-ejb-ear-provided.ear
  sharedLibraries:
  - /opt/IBM/WebSphere/AppServer/sharedJars/commons-io-2.8.0.jar

設定掃描器選項

在遷移計畫中,scannerOptions 欄位代表要傳遞至 IBM WebSphere Application Server Migration Toolkit for Application Binaries 的引數。您可以編輯引數。

scannerOptions:
  # Setting 'includeSensitiveData: true' will upload sensitive data, if exists, such as private keys, to the artifacts repository
  includeSensitiveData: false
  sourceAppServer: was90

後續步驟