Home Help Center

dynamic balancing policy

GreenhippoGreenhippo Member AlexOrganization: University of AucklandProject: Intelligent Middleware ✭✭
Hi,

Im looking into creating and removing replica groups dynamically during runtime,
currently i am dynamically creating the replica groups and this all works nicely, but i need to be able to set their load balancing policy dynamically as well. By default it appears to be just random balancing but i would like to be able to change this to any of the other options, is there anyway to do this?

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Which load balancing do you want to use?

    I suppose you're using dynamic registration (by enabling IceGrid.Registry.DynamicRegistration) with object adapters configured with a replica group id to register the replica group, is this correct?

    It's currently not possible to configure the replica group load balancing policy for such replica groups (the endpoints returned for dynamicaly registered replica groups are the endpoints of all the object adapters). You can only configure the replica group load balancing policy for replica groups deployed with a deployment descriptor.

    Also, note that you can't mix dynamically registered adapters with adapters deployed with a deployment descriptor for a replica group.

    Cheers,
    Benoit.
  • GreenhippoGreenhippo Member AlexOrganization: University of AucklandProject: Intelligent Middleware ✭✭
    Yeah everything is created by enabling IceGrid.Registry.DynamicRegistration. I was looking into using adaptive laod balancing with my dynamic groups but its looking like this may not be as easy as i was hoping.

    Are there any plans in the future to allow dyanmic group load balancing policys or is there a severe technical restriction somewhere that prevents this from being an option

    If i were to attempt to make my own load balancing policy is there anyway to intercept messages before they are sent out so i can choice which endpoints to use appropriately, id imagine this would be an easier solution than playing with the icegridregistry source.
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    We don't have any plans for allowing setting a load balancing for dynamically registered replica groups at this time. I don't think we could easily add support the "adaptive" load balancing as the location service relies on the IceGrid nodes for the load information.

    It's also currently not possible to provide custom load balancing implementations.

    Of course, if you have a commercial interest in any of these features, we could look into adding them. Please contact [email protected] if that's the case!

    Cheers,
    Benoit.
Sign In or Register to comment.