Consultor Eletrônico



Kbase P90931: When using NameServer load balancing with the Sonic Adapter messages are still in queue when Servers
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/12/2004
Status: Unverified

SYMPTOM(s):

NameServer load balancing does not balance the load equally when used with the Sonic Adapter

A query of the broker will report a couple of servers in a busy state and the rest available

The number of client connections is not the same as the number of servers

Using NameServer load balancing with multiple Sonic Adapter brokers

CAUSE:

This is the expected behavior. The NameServer's routing is based upon the number of request. The load is distributed evenly between the brokers regardless of the servers state.

FIX:

When a client connects to an adapter to send and receive messages, two connections are created.

A server is utilized only in the process of sending a message. When receiving a message the server is busy because an asynchronous call is made to wait for message(s). When a message is received, the asynchronous call returns to the client with the message.

When the client is processing the message, the server is no longer busy, but available. Once the message handler ends, another async call is made, tying up the server.