Python

[PySpider]任务阻塞Active状态解决

2018-11-28  本文已影响22人  _小老虎_
如果机器没问题,多开一些 fetcher和processor
for i in `seq 1 5`; do
    supervise -p "var/run/status/pyspider_pr_${i}/" -f "bin/pyspider -c boot_conf/config.json processor"
done

for i in `seq 1 50`; do
    supervise -p "var/run/status/pyspider_fetch_${i}/" -f "bin/pyspider -c boot_conf/config.json fetcher"
done

参考:https://segmentfault.com/q/1010000009088512

上一篇下一篇

猜你喜欢

热点阅读