What happens when a file goes through AFD


The following figures will show what happens when a file AAAA goes through AFD.

The file AAAA coming into the source directory /input_directory, gets detected by process AMG.

AMG then creates a temporary unique directory named $AFD_WORK_DIR/files/pool/4d25ab69_4b31_0_2ccc98b1. It then moves AAAA into this directory. If /input_directory and $AFD_WORK_DIR/files/pool are not in the same file system the file AAAA is copied. Copying is more expansive, thus try to install AFD there where the data is, that is in the same filesytem.

Since the file is to be send to two seperate destinations, AMG creates two 'outgoing' directories $AFD_WORK_DIR/files/outgoing/1a31a7cd/0/4d258b12ca_0 and $AFD_WORK_DIR/files/outgoing/1a31a7cd/0/4d258b12cd_0. The file is AAAA is then hardlinked from the pool directory to these two directories.

Now AMG has setup everything and informs via the FIFO $AFD_WORK_DIR/fifodir/msg.fifo the process FD that there are two jobs ready for being distributed.

The information what FD needs to do with these two jobs is read from the message files in $AFD_WORK_DIR/messages.

This data is then used by FD to create two process sf_ftp that now send the files from $AFD_WORK_DIR/files/outgoing to customer A and B.


Copyright © 2013 by H.Kiehl
Holger.Kiehl@dwd.de
Last updated: 24.11.2013
[red dot]Index [red dot]Home