stony999
unread,Nov 17, 2009, 6:49:12 AM11/17/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Juggernaut for Rails
Hello,
in a high availability cluster environment (active/active) I want the
juggernaut client in the web browser to subscribe to 2 juggernaut
servers on the 2 cluster machines at the same time, as both servers
will have to send messages to the client.
I would need your advice how to start this in order to not going the
wrong way.
I have installed juggernaut as a plugin into the project so I can
easily modify the source code.
Here's the way I would like to start, please add your comments if
that't the right way and how I should modify it:
- In the Rails view I would like to add 2 links for 2 different
servers, e.g.
<%= juggernaut :debug=>false, :server=>1, :channels =>
['extensions'] %>
<%= juggernaut :debug=>false, :server=>2, :channels =>
['extensions'] %>
- juggernaut_hosts.yml will be enhanced by an additional host
- Then I would like to modify /vendor/plugins/juggernaut/lib/ls
juggernaut_helper.rb in a way, that dependent on the parameter :server
it gives back the right config data for this server.
- this should result in 2 juggernaut entries on the web page.
- I expect to have 2 instances of a juggernaut client on the web page
who will independently connect to the 2 servers
- I am not sure whether I will have to have 2 different SWFs on the
page or if the SWF will accept messages from both servers? If 2 SWFs
are needed I will make another copy of the juggernaut.swf and return
this in the juggernaut helper.
Is this the right way?
Please advice then I will test it right the way.
Best regards
Peter