AppSync:當使用最大 vCenter (VC) 連線數目時,後續的連線要求將會等待,且可能會在等待時逾時。
Сводка: 同時需要超過允許的 4 個 VC 連線。
Симптомы
同時需要超過允許的 4 個 VC 連線。
您可以在 AppSync 伺服器記錄中找到與下列內容類似的訊息上觀察到:
->>> getURLConnection::https://vcenter-IP/sdk reached maximum connection limit. Wait for sometime to get a free connection
->>> EJB default - 1Unlocking entityID:https://vcenter-IP /sdk for update
->>> --getConnection::Waiting on BUSY connection for entity:https://vcenter-IP/sdk
如果等待 VC 連線的服務計劃逾時,則服務計劃可能會卡在 “in-progress” 狀態。
您可以透過下列方式,在 AppSync 伺服器記錄中觀察到服務計畫逾時:
WARN [Transaction Reaper] [com.arjuna.ats.arjuna] [] [] ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0ae651aa:1c135b84:60be4e22:1f2b2c in state RUN
WARN [Transaction Reaper Worker 0] [org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorTrackingImpl] [] [] HHH000451: Transaction afterCompletion called by a background thread; delaying afterCompletion processing until the original thread can handle it. [status=4]
WARN [Transaction Reaper Worker 0] [com.arjuna.ats.arjuna] [] [] ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0ae651aa:1c135b84:60be4e22:1f2b05
WARN [Transaction Reaper Worker 0] [com.arjuna.ats.arjuna] [] [] ARJUNA012095: Abort of action id 0:ffff0ae651aa:1c135b84:60be4e22:1f2b2c invoked while multiple threads active within it.
WARN [Transaction Reaper Worker 0] [com.arjuna.ats.arjuna] [] [] ARJUNA012108: CheckedAction::check - atomic action 0:ffff0ae651aa:1c135b84:60be4e22:1f2b2c aborting with 1 threads active!
WARN [Transaction Reaper Worker 0] [com.arjuna.ats.arjuna] [] [] ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0ae651aa:1c135b84:60be4e22:1f2b2c
服務計劃的後續執行卡在”in-progress」失敗,表示服務計劃已在執行中。
in-Progress」服務計畫,並允許其再次執行。
Причина
Разрешение
增加以秒為單位指定的交易逾時,可能會解決逾時問題。
預設為 5 分鐘,如有需要,則可逐漸增加。下面的示例將超時增加到 20 分鐘。
若要在以下位置增加事務逾時: standalone.xml,位於 C:\EMC\AppSync\jboss\standalone\configuration 在 AppSync 伺服器上:
- 備份
standalone.xml檔案。 - 編輯
standalone.xml檔案並增加:
<coordinator-environment default-timeout="300"/>
<coordinator-environment default-timeout="1200"/>
- 重新啟動三個 AppSync 伺服器服務。
排程 vCenter 相關服務計劃以減少與 vCenter 的同步互動,可能會解決此問題,且並不需要增加交易逾時。