Example: Starting multiple brokers
- Last Updated: January 14, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Suppose the appdb database must meet the following requirements:
- Runs on the local computer (localhost).
- Is accessed by both ABL and SQL users.
- Uses port 3001 for the ABL broker and port 3101 for the SQL broker.
- Must support 40 ABL users, 20 SQL users, and 40 other processes.
- Uses at most 10 servers per ABL broker and 4 servers per SQL broker.
- Uses at least 2 remote clients per ABL or SQL server.
To support these requirements, you would need to start two brokers: the primary broker to support ABL clients and the secondary broker support SQL clients. To start each broker, you would use a separate PROSERVE command.
|
The following table lists each parameter with its description:
Parameter | Description |
|---|---|
| Specifies that the host on which the database resides is localhost. |
| Specifies that the port on which the primary broker has to run is 3001. |
| Specifies that the maximum number of users for the database is 101. 40 (ABL) + 20 (SQL) + 40 (other processes) + 1 (secondary broker) = 101 |
| Specifies the maximum number of servers is 15. 10 (ABL) + 4 (SQL) + 1 (secondary broker) = 15 |
| Specifies that the maximum number of ABL servers per broker is 10. |
| Specifies that the maximum number of remote ABL clients per server is 4. |
| Specifies that the minimum number of remote ABL clients per server before the primary broker starts another server is 2. |
| Specifies that the type of server served by the primary broker is ABL. |
|
The following table lists each parameter with its description:
Parameter | Description |
|---|---|
| Specifies that the host on which the database resides is localhost. |
| Specifies that the port on which the secondary SQL broker has to run is 3101. |
| Specifies that the maximum number of SQL servers on the secondary broker is 4. |
| Specifies that the maximum number of remote SQL clients per server on the secondary broker is 5. |
| Specifies that the minimum number of remote SQL clients per server on the secondary broker is 2. |
| Specifies that the type of server served by the secondary broker is SQL. |
| Starts the secondary broker. |