Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 08:38 Go to next message
Marton Sigmond is currently offline Marton SigmondFriend
Messages: 73
Registered: July 2009
Location: Hungary

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.


Best Regards,
Marton Sigmond
Senior Software Engineer
Re: Discovery with load balancing - is there such discovery mechanism? [message #720889 is a reply to message #718093] Wed, 31 August 2011 12:46 Go to previous message
Pablo Mising name is currently offline Pablo Mising nameFriend
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


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 12: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: Tue Oct 03 00:48:15 GMT 2023

Powered by FUDForum. Page generated in 0.01542 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top