Is there a way to add actors on demand without the need of modifying code and restart whole ray cluster?
Assuming we be provided a ray class (either a string or a python file) following ray handles (remote, get, etc.) wherever appropriate, can this be deployed programatically?
Thank you for your response, but I am looking for different use case than scaling replica count of an Actor. My use case is to add or register a new (entirely new, not a replica) actor on demand.
As in if we get a request providing class with ray hooks, can I add that new class as a Ray Actor?
Hmm, why do you need to restart the cluster? With some caveats, you should be able to just run ray.remote(NewClass) and then instantiate that actor on your cluster.