ralonsoh | hi folks, any idea on how to easily replace eventlet.GreenPool? | 15:10 |
---|---|---|
ralonsoh | we use it in the Neutron L3 agent | 15:10 |
ralonsoh | we create an endless loop and we call Greenpool.spawn() to create new threads | 15:11 |
hberaud[m] | What's about ThreadPoolExecutor? | 15:11 |
ralonsoh | and we resize the pool dynamically | 15:11 |
ralonsoh | hmmm with ThreadPoolExecutor we need to statically define the size | 15:12 |
hberaud[m] | ThreadPoolExecutor(max_workers=100) | 15:12 |
ralonsoh | and doesn't allow to send new tasks | 15:12 |
ralonsoh | well, sorry | 15:12 |
hberaud[m] | ah | 15:12 |
ralonsoh | what I want to said is that it doesn't block the submit() method | 15:13 |
hberaud[m] | I was just currently writing an example of greenpool to threadpoolexecutor | 15:13 |
ralonsoh | let me send you the link for context | 15:13 |
ralonsoh | https://github.com/openstack/neutron/blob/master/neutron/agent/l3/agent.py#L843-L846 | 15:14 |
hberaud[m] | For now I've no idea, but your scenario fit well in the kind of use case that I'm trying to identify | 15:14 |
hberaud[m] | thanks, I'll have look by tomorrow and see I find something useful | 15:15 |
ralonsoh | thanks a lot | 15:15 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!