2010-09-14 80 views
1

最近,我遇到了一個錯誤(相當頻繁)與RemoteApiServlet以及remote_api處理程序。Google App Engine RemoteApiServlet/remote_api處理程序錯誤

雖然批量加載大量使用批量加載數據,我開始看到隨機HTTP 500錯誤,並具有以下細節(日誌文件):

Request was aborted after waiting too long to attempt to service your request. 
This may happen sporadically when the App Engine serving cluster is under 
unexpectedly high or uneven load. If you see this message frequently, please 
contact the App Engine team. 

有人能解釋一下我可能會做錯誤?這個錯誤會阻止Bulk Loader進一步上傳任何數據,並且我不得不重新開始。

相關的線程在谷歌的App Engine論壇是在http://groups.google.com/group/google-appengine-python/browse_thread/thread/bee08a70d9fd89cd

回答

1

這不是特定於remote_api的。發生什麼情況是您的應用獲得了很多需要很長時間才能執行的請求,並且如果請求延遲太高,App Engine將不會擴展您的應用運行的實例數量。因此,請求正在排隊,直到有一個處理程序可用來爲它們提供服務;如果沒有可用的,則返回500並記錄此消息。

只需降低數據的批量加載速度或減少批量大小,以便remote_api請求更快地執行。

+0

您可以詳細說明App Engine可以基於處理程序上的請求數量縮放的延遲閾值嗎? – Rahul 2010-09-15 18:40:12

+0

目前大約700毫秒的掛鐘時間。 – 2010-09-15 21:42:49