What are the steps to enable the flowControl in the destination level and what for?

What are the steps to enable the flowControl in the destination level and what for?

book

Article ID: KB0091506

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
In some situations, message producers may send messages more rapidly than message consumers can receive them.
The pending messages for a destination are stored by the server until they can be delivered, and the server can potentially
exhaust its storage capacity if the message consumers do not receive messages quickly enough. To avoid this, EMS allows
you to control the flow of messages to a destination. Each destination can specify a target maximum size for storing pending
messages. When the target is reached, EMS blocks message producers when new messages are sent. This effectively
slows down message producers until the message consumers can receive the pending messages.

Enabling Flow Control:

First Step to be done in tibemsd.conf:

The flow_control parameter in tibemsd.conf enables and disables flow control globally for the EMS server. When flow_control is
disabled (the default setting), the server does not enforce any flow control on destinations. When flow_control is enabled, the
server enforces any flow control settings specified for each destination.  

Second Step to be done for specific destination:

When you wish to control the flow of messages on a destination, set the flowControl property on that destination. The flowControl
property specifies the target maximum size of stored pending messages for the destination. The size specified is in bytes, unless
you specify the units for the size. You can specify KB, MB, or GB for the units. For example, flowControl = 60MB specifies the target
maximum storage for pending messages for a destination is 60 Megabytes.  You can set this against topic or queue of your interest.

Issue/Introduction

What are the steps to enable the flowControl in the destination level and what for?