Hang after map_sync is called in loop for a number of iterations
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- jupyter, python
研究方向
首先在 Windows 上使用 ipcluster start -n 4 執行 issue 的 Python 重現程式,並比較負載平衡和直接檢視兩種情況。追蹤 map_sync 在重複迭代後停止回應的位置;完成的標準是迴圈能在不掛起的情況下完成,且修正已針對回報的兩個 Python 版本完成驗證。
由索引模型根據 Issue 內容生成。
描述
The following script hangs after about ~180 iterations on my machine
Number of iterations it gets through seems to be dependent on the time elapsed (hence the sleep)
import numpy as np
import ipyparallel as ipp
c = ipp.Client()
dv = c[:]
dv.execute("import time")
dv.execute("import numpy as np")
v = c.load_balanced_view()
def fun(state):
time.sleep(0.5)
return np.random.normal()
# Generation loop
for it in range(1000):
inputs = range(12)
#v = c.load_balanced_view()
outputs = np.array(v.map_sync(fun, inputs))
print "Iteration", it
Windows 10, Anaconda installation
ipyparallel 6.2.4 py27_0
Cluster is started via ipcluster start -n 4 on powershell
Tried and same problem observed with both python 2.7 and python 3.7
Tried both load balanced and direct views
No error messages and the powershell window for ipcluster becomes unresponsive
- 主要語言
- Jupyter Notebook
- 星號
- 2.6k
- 分支
- 1k
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ipython/ipyparallel 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 48/100
ipython/ipyparallel#1029 · 9 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
ipython/ipyparallel#984 ·
-
難度 4/5 3-5 天 新手友好度 35/100
ipython/ipyparallel#937 · 4 則留言 ·
-
question
難度 5/5 一週以上 新手友好度 25/100
ipython/ipyparallel#897 · 12 則留言 ·
-
bug
難度 4/5 3-5 天 新手友好度 35/100
ipython/ipyparallel#882 ·
查看 ipython/ipyparallel 的全部 Issue
相似的 Issue
-
bug examples invalid iris
難度 2/5 1-3 小時 新手友好度 70/100
-
ai_reviewed
難度 2/5 1-3 小時 新手友好度 68/100
ydb-platform/ydb#53838 · 3 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
NovaSky-AI/SkyRL#2263 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
johanhaleby/occurrent#1106 ·
-
ShuffleManagerRegistry.register recursion guard is inverted, permits GlutenShuffleManager subclasses 未關閉
難度 2/5 1-3 小時 新手友好度 78/100