Open topic with navigation

TIBCO ActiveSpaces® 4.8.0

# Using the Proxy Shed Command and the Balanced Binding Strategy

The following example shows how you can use the `shed` command and the balanced binding strategy to balance a grid.

Assuming you had 3 proxies running and there were 20 clients connected to them, all using the balanced binding strategy. The proxies (P1, P2, P3) might have the following numbers of clients:

P1: 7 clients

P2: 7 clients

P3: 6 clients

Now you provision a new Proxy, P4, and start it. All the clients remain bound to their current proxies until either the clients or the proxies restart. Assuming all the clients impose an equal load on their proxies, the ideal distribution across the proxies would be to have five clients per proxy. This distribution can be achieved by the following commands:

    tibdg proxy shed P1 clients 2
    tibdg proxy shed P2 clients 2
    tibdg proxy shed P3 clients 1

Note that if you notify a proxy to disconnect from all its clients, it briefly has zero clients bound to it. Therefore, when the clients attempt to rebind to the proxy, their old proxy appears to have the lowest load so they rebind back to where they came from. The way to avoid this binding is to unbind only from the number of clients that you want to move, as was done in the example above.

Copyright © 2009-2022. Cloud Software Group, Inc. All Rights Reserved.