-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run the cluster ping/pong example #54
Comments
Hi. I'll take a look and get back to you on this next week, but at any rate, at this point in time we are not recommending the use of Galaxy (which is undergoing a major revamp) as a clustering solution for Quasar/Pulsar in production just yet (a couple more months). For production use in the immediate future, please use any messaging solution (e.g. Kafka) to distribute Quasar. |
Any sample project showing quickly how to achieve this ? (nothing fancy, just a headstart) |
Hi, the core idea is pretty straightforward: just send to the messaging solution and receive from it rather than sending/receiving between actors. The rest is a matter of interfacing the message broker in the most efficient way, that is avoiding blocking fiber pool threads and avoiding blocking threads at all (if at all possible with the broker's drivers). To this extent Comsat includes a community-contributed fiber-blocking Kafka async producer integration that you can use on the sending side. On the receiving side you could have, for example, one or few thread-based consumer actors polling Kafka and relaying messages to the intended recipient fiber-based actors. I suggest you just go ahead and try. I'll add that the Kafka integration code, tests and docs are a good start, although not comprehensive; some more comprehensive examples and tutorials are coming soon though, and in fact it's one of the things we're working on at present. There's also a discussion about integrating Camel that you might be interested in as it is a strictly related topic. |
I'll add that you could add some relaying actors on the sending side as well: in such a way the application actors won't see any difference between messaging directly and messaging through the message broker. |
@hellonico There's a new post about Quasar actors integration with Kafka and ZeroMQ that can be interesting: http://blog.paralleluniverse.co/2016/04/14/quasar-actors-kafka-zeromq/ |
Running the cluster ping pong example either lead to:
or (on the pong side)
followed by: (on the ping side)
This using the peer.xml configuration .... with its different versions (server, no server, dumb server, zookeeper, jgroups ...).
I tried to run ping pong on the same machine, or two different machines.
Any idea on how to configure this to work ? I am not trying to tweak configurations, but just getting this to run.
Eventually, for the project I am working on, I would like to run pulsar actors on two different machines.
The text was updated successfully, but these errors were encountered: