Interaction between ray actors and multiprocessing
See original GitHub issueI would want to combine ray together with python multiprocessing and was wondering, is it possible to have ray actors own a multiprocessing.Queue
? I’d want to initialize the actors with such a queue and wonder if one can expect it to work. Obviously, if the actor is on another node it wouldn’t work, but if the worker process is on the same node as the main process.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Distributed multiprocessing.Pool — Ray 2.2.0
Ray supports running distributed python programs with the multiprocessing.Pool API using Ray Actors instead of local processes. This makes it easy to scale ......
Read more >Modern Parallel and Distributed Python: A Quick Tutorial on Ray
Ray takes the existing concepts of functions and classes and translates them to the distributed setting as tasks and actors . This API...
Read more >Modern Parallel and Distributed Python: A Quick Tutorial on Ray
Ray takes the existing concepts of functions and classes and translates them to the distributed setting as tasks and actors.
Read more >Writing your First Distributed Python Application with Ray
Ray provides actors to allow you to parallelize an instance of a class. Code wise, all you need to add to a Python...
Read more >4. Remote Actors - Scaling Python with Ray [Book] - O'Reilly
Much like Ray’s remote functions, all Ray actors are remote actors, even when running on the same machine. In a nutshell, an actor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would be hugely useful to have a simple solution for this sort of producer-consumer pattern (env-agent) where producers and consumers are agent pools
Hi @crypdick, unfortunately not, but it’s been a while since I’ve last worked on this. I believe
ray.util.queue
was not available back then, so might be worth a new try?