PMDF System Manager's Guide


Previous Next Contents Index

11.1.1 Creation and Expiration of Worker Processes

There are automatic housekeeping facilities within the Service Dispatcher to control the creation of new and expiration of old or idle Worker Processes. The basic options that control the Service Dispatcher's behavior in this respect are MIN_PROCS and MAX_PROCS. MIN_PROCS provides a guaranteed level of service by having a number of Worker Processes ready and waiting for incoming connections. MAX_PROCS, on the other hand, sets an upper limit on how many Worker Processes can be concurrently active for the given service.

Since it is possible that a currently running Worker Process might not be able to accept any connections either because it is already handling the maximum number of connections of which it is capable or because the process has been scheduled for termination, the Service Dispatcher can create additional processes to assist with future connections.

The MIN_CONNS and MAX_CONNS options provide a mechanism to help you distribute the connections among your Worker Processes. MIN_CONNS specifies the number of connections that flags a Worker Process as "busy enough" while MAX_CONNS specifies the "busiest" that a Worker Process can be.

In general, the Service Dispatcher will create a new Worker Process when the current number of Worker Processes is less than MIN_PROCS or when all existing Worker Processes are "busy enough" (the number of currently active connections each has is at least MIN_CONNS).

Note that if a Worker Process is killed unexpectedly, e.g., by the OpenVMS DCL STOP/ID command or the UNIX kill command, the Service Dispatcher will still create new Worker Processes as new connections come in.


Previous Next Contents Index