Overview
========

MOP is a system for distributing CMS production jobs. There is a MOP master site where jobs are defined by the CMS production scripts. The mop_submitter then distributes those jobs to remote sites through CondorG and Globus. When the jobs are finished, the output is collected by GDMP.

http://www-ed.fnal.gov/work/sc2001/mop-animate-2.html


A useful site:
http://www.cs.wisc.edu/~adesmet/cms_mop_master.html

Installing the MOP master
=========================
Assuming Pacman is already installed on your system,

1. Create a directory <MOP MASTER>
2. Do
            pacman -cache:http://home.fnal.gov/~anzar/MOP_MASTER

3. Then
            pacman -get Mop_Master

This will install mop master with Impala (v ??) in your curent directory.

Ignore the pacman stuff, mop_master directory contains MOP+Impala software required for MOP master site.

Running MOP
=========================

1. source mop_master/setup.csh (for tcsh) or . mop_master/setup.sh (for sh)

2. Configure site files in mop_master/mop_submitter/site-info directory.

3. cd to mop_master/run

For Job type CMXYZ,

        DeclareCMXYZJobs.sh  -v -a  <refdb assignment id>
        CreateCMXYZJobs.sh  -v <dataset id>
        RunJob.sh -m <mop_worker_site>  -v -j cmxyz  <dataset id> number_of_jobs

Example:
        DeclareCMKINJobs.sh  -v -a  452
        CreateCMKINJobs.sh  -v jm02_MB
        RunJob.sh -m florida -v -j cmkin jm02_MB 5

To cleanup and start over again,

        echo "Y" | CleanupJobs.sh CleanupAll <data_set_id> cmxyz MOP
Example:
        echo "Y" | CleanupJobs.sh CleanupAll jm02_MB cmkin MOP

For more details Refer to:
        http://computing.fnal.gov/cms/Monitor/cms_production.html
        http://computing.fnal.gov/cms/Monitor/simjob.html
        http://computing.fnal.gov/cms/Monitor/hits.html
        http://computing.fnal.gov/cms/Monitor/digis.html