![[UNIX, Linux, Windows, IBM i]](ngmulti.gif)
MFT process controller overview
The IBM® MQ Managed File Transfer (MFT) process controller is responsible for starting an MFT agent, and restarting that process if it ends for any reason. There is one process controller for every agent process.
On IBM MQ for z/OS® the agent
process is restarted by Automatic Restart Manager (ARM). For more information on this, see Configuring MFT for the z/OS Automatic Restart Manager (ARM)
How the process controller works
When the fteStartAgent command is run, it starts up an instance of the process controller for that agent and the process controller then starts the agent process.
When the fteStopAgent command is run, it connects to the process controller for that agent and sends it a stop request. The process controller receives the request, stops the agent process and then shuts itself down.
The process controller monitors the agent process. If the agent process stops unexpectedly, the process controller restarts it.
By default, if an agent process stops five times within a two minute period, the process controller shuts itself down and does not try to restart the agent again. In this situation, you need to restart the agent manually, using the fteStartAgent command.
- maxRestartCount
- maxRestartDelay
- maxRestartInterval
If you have configured an agent to connect to its agent queue manager using the BINDINGS transport, the process controller creates a connection to this queue manager when it starts up. The process controller then monitors this connection.
If the connection is broken because the queue manager has become unavailable, the process controller stops the agent and then attempts to re-establish the connection at regular intervals.
For more information on the four properties mentioned in this section, see the Advanced agent properties: Process controller section of The MFT agent.properties file topic.
Process controller log files
The process controller writes informational messages to its event log. This is a file called
pceventN.log
, where N
is a number, which can be found in the
following directory:
MQ_DATA_PATH/mqft/logs/coordination_qmgr_name/agents/agent_name/logs/
The size of each process controller event log file, and the number of historical files, is determined by the agent properties outputLogSize and outputLogFiles.
outputN.log
) as well as
the process controller log files.
[21/06/2022 16:17:40.000 GMT Daylight Time] 00000000000049e0
ProcessContro I BFGPC0003I: IBM MQ Managed File Transfer process controller started.
Log files located at: C:\ProgramData\IBM\MQ\mqft\logs\QM1\agents\AGENT1.
[21/06/2022 16:17:55.000 GMT Daylight Time] 00000000000049e0
ProcessContro I BFGPC0007I: IBM MQ Managed File Transfer process controller with process
identifier 18736 started AGENT1@QM1 with process identifier 1748.
[21/06/2022 16:19:20.000 GMT Daylight Time] 00000000000049e0
ProcessContro I BFGPC0027W: Process has ended with return code 1 and will be
restarted to attempt to recover the problem.
[21/06/2022 16:19:20.000 GMT Daylight Time] 00000000000049e0
ProcessContro I BFGPC0007I: IBM MQ Managed File Transfer process controller with process
identifier 18736 started AGENT1@QM1 with process identifier 1304.
Here, the process controller associated with the agent AGENT1 was running with process identifier 18736.
Initially, it started the agent process – the process identifier for this process was 1748.
Shortly after the agent started, the process controller detected that it had stopped unexpectedly and so restarted it. Following the restart, the process identifier for the agent process is 1304.