Kbase P32004: When using multiple WebSpeed brokers, do I need to specify different agent maximum and minimum port
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/1/2005 |
|
Status: Verified
GOAL:
When using multiple WebSpeed brokers, do I need to specify different agent maximum and minimum port range?
GOAL:
When I have more than 1 WebSpeed brokers, can I have the same values for srvrMaxPort and srvrMinPort?
FACT(s) (Environment):
WebSpeed 3.x
FIX:
By default, when you create a new WebSpeed broker (the same applies to all types of brokers), the agent port ranges are the same for each broker, for example, 3202 - 3502 for 9.1D. This means that multiple brokers can have the same agent minimum & maximum port numbers defined.
This becomes a problem when the number of agents spawned is more than the number of defined range of agent ports. For example:
Say that you have 2 brokers with 5 initial agents at startup. Both brokers have agent port range 1001 - 1005 (srvrMinPort=1001, srvrMaxPort=1005). This means that the sixth agent or the first agent from the second broker would not be able to startup.
Broker 1
Agent1 (S0001) is using port 1001,
Agent2 (S0002) is using port 1002,
Agent3 (S0003) is using port 1003,
Agent4 (S0004) is using port 1004,
Agent5 (S0005) is using port 1005,
Broker 2
Agent1 (S0001) goes to use a port, all ports have been used by the agents for Broker 1.
However if both brokers were only starting up 2 initial agents at startup, then the initial startup would be OK.
Broker1
Agent1 (S0001) is using port 1001,
Agent2 (S0002) is using port 1002,
Broker 2
Agent1 (S0001) is using port 1003,
Agent2 (S0002) is using port 1004.
When making a decision on this, figure out how many ports you're allowing for each broker. If you're overlapping ports between brokers, just make sure that there are enough ports to handle each agent.