Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Discovery with load balancing - is there such discovery mechanism?(host becomes overloaded - discovery resolves another service running on another host)
Discovery with load balancing - is there such discovery mechanism? [message #718093] Tue, 23 August 2011 04:38 Go to next message
Marton Sigmond is currently offline Marton Sigmond
Messages: 71
Registered: July 2009
Location: Hungary
Member
Hi,

is there such discovery mechanism that takes care of the load balancing as well?

What I mean:
- Multiple hosts provide services for a certain interface.
- Instead of resolving all of those services, the discovery mechanism resolves only one.
- However if the provider host becomes overloaded, the discovery mechanism automatically unresolves the service, and picks another one from another host.

Is there such discovery mechanism?
Also, if you see drawbacks of the above described mechanism, please let me know.

Thanks,
Marton


Best Regards,
Marton Sigmond
Software Design Engineer
Re: Discovery with load balancing - is there such discovery mechanism? [message #720889 is a reply to message #718093] Wed, 31 August 2011 08:46 Go to previous message
Pablo Mising name is currently offline Pablo Mising name
Messages: 24
Registered: July 2010
Junior Member
I am working in something similar. I don't know if it is a good idea, but I use a DistributedManagerService class with binds all distributed services in a list, but uses only one each time. So, every time a service disappears it is removed from the list and the consumer does need to know about it.


So, it is passing from here:

Client USES ServiceInterface

to:

Client USES DistributedManagerService with ServiceInterface[0],ServiceInterface[1],...

DistributedManagerService class selects wich ServiceInterface use, also you can program load balancing and that. It also uses bind and unbind methods to adquire ServiceInterface instances.

And of course, DistributedManagerService also can implement ServiceInterface, but you have to set DS to 0..n in order to avoid cycles.

Which discovery mechanism are you using? I would like to distribute ServiceInterface instances in several machines around the world, and I would like to indicate where can they be found.

[Updated on: Wed, 31 August 2011 08:48]

Report message to a moderator

Previous Topic:Unable to run the Hello example on ecf 3.5
Next Topic:OSGi Remote DS product configuration works only inside Eclipse [SOLVED]
Goto Forum:
  


Current Time: Mon Apr 21 08:58:07 EDT 2014

Powered by FUDForum. Page generated in 0.01530 seconds