mocktage - a staging demonstrator
mocktage is a staging demonstrator for Maestro. It's behavior is supposed to
refelct Montage. In mocktage
, dummy data set with profiles matching that of
Montage workflows is used. The data set consists of array of int64_t
.
It consists of 3 applications and a pool manager:
- pool manager
pool manager starts the pool manager and then waits for user input to shut down
the pool manager. The pool manager starts with a workflow name mocktage
and
component name pool_manager
. The pool_manager
creates a file named by the
variable passed to pool_manager
. This file is then read by generator
,
processor
and writer
to connect to the correct pool manager.
pool_manager
will run as long as the file named pool_manager
doesn't exist
in the stopfile_directory
.
pool_manager pool_manager <log_directory> <pminfo_filename>
-
generator
generator takes an
id
and asize
input, using which it creates a CDO of sizesize
in KiB.generator
will register with the pool manager with the workflow name of "mocktage" and a component name of "generator-", whereid
is theid
passed to generator.They generate CDOs from the provided parameter data. The following command will generate a CDO of size in kb as provided, and each element of the array of CDO when interpreted as
int64_t
will have a value equal to theid
.The
generator
will run as long the file namedgenerator-<id>.stop
doesn't exist in thelog_directory
.
generator <log_directory> <pminfo_filename> <id> <size>
- processor
processor
will take all the data from the dependency and concatenate it, and
produce a new CDO with the id
given. The new CDO will contain an array of
int64_t
, each of which will have a value equal to <id>
.
processor
will register with the pool manager with the workflow name of
"mocktage" and a component name of "processor-.stop", where id
is the id
of
the CDO produced by the processor.
The processor
will run as long the file named processor-<id>
doesn't exist
in the log_directory
.
processor <log_directory> <pminfo_filename> <id> <size> <array-of-dependent-id>
- writer
writer
takes the CDO given by id
and generates a short machine readable
information JSON stub from the CDO's array.
The writer
will run as long the file named writer-<id>.stop
doesn't exist in the
log_directory
.
writer <log_directory> <pminfo_filename> <id>
- writer
writer
takes the CDO given by id
and generates a short machine readable
information JSON stub from the CDO's array.
The writer
will run as long the file named writer-<id>.stop
doesn't exist in the
log_directory
.
writer <log_directory> <pminfo_filename> <id>
- stager
stager
takes the CDO given by id
and generates a short machine readable
information JSON stub from the CDO's array.
The stager
will run as long the file named stager-<id>.stop
doesn't exist
in the log_directory
.
stager <log_directory> <pminfo_filename> <id>