-
Notifications
You must be signed in to change notification settings - Fork 35
Example for setup in a cluster #6
Comments
Yes! You're right, the documentation still needs to advance to the next step/for multi-node operation. Configuration
Operation
It so happens that the source tree currently includes a file called I'm glad the quickstart worked for you. We definitely want to expand the documentation to cover this very natural scenario you're asking about. (Thanks for your report!) |
Thank you for your response. I used your information and the testapp.sh to start the MessageServer and the Mupd8Main on another node. Unfortunately, I always get a broken pipe when the Mupd8Main tries to connect to the MessageServer. MessageServer logs: After I added e.printStackTrace() after line 181 in the MessageServer.scala file I also got the following stacktrace as reason for the exception: Mupd8Main logs: mupd8.log: The port 6101 is not the one I configured. I guess this is related to the mupd8 status, which I configured as well. Do I have to start a special server for this? localhost.cfg The commands I used to start the system: |
If I'm interpreting your logs correctly, I think you had configured two servers to run Mupd8Main, but started only one. To see the TestApp application go, I suggest either configuring only one system_host to start (to verify that TestApp is configured and running for you), or starting both system_host machines' Mupd8Main JVMs at about the same time. (In your logs above, it appears that the Teots-PC one didn't start or was unable to reach the MessageServer and Teots-Laptop at all.) (Independent of the above comment: Even when a host has failed/gone missing, I don't think that Exception you logged above is supposed to happen; it may be related to a regression from a recent large merge/checkin that I saw in internal testing lately. A checkin to address the regression should hit the public tree soon, so you may want to pull shortly if you're near master/HEAD.) |
Yes I had two servers configured. This is my localhost.cfg:
}` But even when I use only one system host, the example is not running. To find out why, I'll add some questions about the commands in testapp.sh
According to the allowed parameters of Mupd8Main, neither If I just pass the config directory like this All in all I'm quite confused about how to run the example even on just one machine. And even conceptually I'm not sure how to execute an application on multiple machines. Other stream processing engines have some master where all workers are registered. Then a job is passed to this master and it distributes the job onto all worker machines. But how is something similar done in your system? |
Sorry for the confusion--let me try to address your questions from the bottom up: Toward the questions
--so that you use the src/main/config/testapp/*.cfg files as your configuration. ( (Sorry about the other commented-out command lines in testapp.sh; the quickstart does not mention those parameters to avoid their [historic] complexity. In retrospect, I regret mentioning testapp.sh--which is more of a developer-testing application--at all and distracting you from your already running quickstart example, which is specifically written to express only the interesting parts. Apparently, testapp.sh was more confounding than helpful, since the command lines you ran directly were pretty reasonable.) Toward a more concrete example To make concrete progress, let's use your quickstart application directly, since you are already running a single-machine instance of it. To distribute your application, add a second
Once you've updated the configuration file, you can run your commands as you described, but for all the machines you named: Run MessageServer first: ...then run the Mupd8Main together: I've put ssh in front to be explicit, but you see how each Toward more events to distribute The quickstart walkthrough created a You don't have to know which extension's events is counted on which machine; you can ask any Mupd8Main's HTTP server the same URI path (e.g., I hope this helps! Please let me know how it works for you. |
Thanks to you again! Finally, this example works now. Even distributed on two nodes :) I'll run some bigger examples soon. Maybe I can document them and let them flow back into your project as examples for others. |
That sounds great--I'm glad that it's working for you! |
Hello,
I downloaded mupd8 and did everything in the quickstart tutorial which worked like a charm. Thanks for that. Now I want to continue and execute the example in a cluster environment, but I couldn't find any tutorials for that. So I don't know what I have to change in the config files or in the program itself.
Can anybody help me with this issue?!
The text was updated successfully, but these errors were encountered: