[Building Sakai] cluster service and internode communication

John Bush john.bush at rsmart.com
Mon Mar 18 14:59:02 PDT 2013


Has anyone, maybe mobile guys ? Crossed the bridge of how to get sakai
nodes talking to other nodes directly via http ?  I know the
entitybroker type stuff uses cookies to go back to the right node.
What I'm talking about is I need a way to talk to a sakai node
directly from another node.

The use case I have is for creating a discovery service for a message
queuing service.  I want each node to be able to query other nodes and
notify them when they go up and down.  This is to enable auto
discovery and avoid multicast and make configuration as simply as
possible.

One thought I had was to tie into the clusterservice which already
knows the serverIds, but it doesn't know direct url or ports for
specific node communication.  So for example if we extended
sakai_cluster tables to also have sakai_cluster_property table, I
could have nodes register direct urls to talk to for my specific
service as properties, maybe some new interface could be created where
services and tools could register their own call backs for other
properties.  It would take a simply change to the maintenance thread
to do this, but avoid another thread and maybe be useful for some
other use case.

Or I could just totally bypass the clusterservice and do this my own
way, or maybe someone else has already solved this another way?
Thoughts ?

--
John Bush
602-490-0470


More information about the sakai-dev mailing list