
Avaya Media Processing Server Series System Reference Manual
Page 236 # P0602477 Ver: 3.1.11
Queuing Requests
When VTCPD receives a request from an application, it can either transmit it
immediately to the host (the default mode), or keep it locally until any previous
requests are answered.
In the former case, all requests are physically stored either on the host side or in the
kernel buffer (from which the host process reads only one message at a time from the
socket). If an application restarts before receiving the reply, this has no effect on the
host, which eventually retrieves and processes the request (which may possibly be
outdated at that time). The processing of outdated requests can further reduce limited
host resources. The reply for such a request is discarded by VTCPD, if the application
changes its ID each time it restarts.
In the latter scenario, if VTCPD holds requests locally, it can remove outdated
requests from the queue when applications timeout and restart. Note, that this is
useful only if the host is unable to process several messages simultaneously. The
command line option -q <#> specifies how many unanswered requests should be
sent to the host before queuing them locally. If the option is not specified (default), all
requests are immediately written to the host. When -q is specified, VTCPD
determines a proper link to the host and either sends the request or stores it in a queue,
specific to the link. When a reply comes from the host, VTCPD transmits the first
message from the queue to the host.
Another method is to maintain one global queue for all links. This is specified with the
-Q <#> option. This option causes all requests to go into a queue where they are
retrieved when the number of unanswered requests for any link becomes smaller than
the specified -Q <#> argument. The -m I option is implicitly added to the list of
command line arguments due to the fact that in this mode any request can be sent
through any link. (The option -m R, if specified, is disabled.)
If an application times out and restarts, executing a FREE request causes the removal
of all queued requests. Also, all line-related messages are removed from all queues
when the application issues a GET request.
vtcpd [{-q <#> | -Q <#>}]
Args: -q <#> Specifies how many unanswered requests go to the host before
requests are queued locally. Unless this option is specified, all
requests are immediately written to the host.
-Q <#> Specifies that all requests from all links are to be placed in a global
queue. When the number of unanswered requests for any link
becomes smaller than the specified value, the requests are
retrieved.
Comentários a estes Manuais