progetti:icarus:production-guide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
progetti:icarus:production-guide [2024/04/22 09:38] – [Check the completion of the campaign] vpia@infn.it | progetti:icarus:production-guide [2024/04/22 12:10] (current) – tenti@infn.it | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Production Guide ====== | ||
+ | |||
+ | ====== List of Productions ====== | ||
+ | ^ Date ^ Type ^ Tag ^ | ||
+ | | 03/24 | MC | mc-v09_84_00_01-202403-cnaf-corrsce | | ||
+ | | 03/24 | DATA | run2-v09_84_00_01-202403-cnaf | ||
+ | | 03/24 | MC | mc-v09_84_00_01-202403-cnaf | ||
+ | | 02/24 | DATA | data_run2-v09_83_01202402-cnaf | ||
+ | | 02/24 | MC | mc_nucosm-v09_83_01202402-cnaf | ||
+ | | 12/23 | DATA | run2-v09_72_00_06-122023-variables | ||
+ | |||
+ | ====== General Info ====== | ||
+ | This page details the steps needed to submit and monitor production campaigns (hereafter campaigns) at CNAF. Two main types of campaigns are possible: **real** and **MC** data. In both cases, a first setup is needed for each new campaign. After that, the capaign is submitted in multiple steps, with each step submitting a batch of jobs. At the end, a final check of the completion of the campaign is requested. | ||
+ | |||
+ | Below, details on the [[https:// | ||
+ | | ||
+ | |||
+ | ====== Initial Setup ====== | ||
+ | The first step is to download and setup all the needed scripts. This must be done **only once** per campaign. All the needed batches of jobs for the current campaign will be submitted with the **same** scripts. Each production request has its own configuration and will be associated to a (//git//) tag (''< | ||
+ | |||
+ | cd / | ||
+ | mkdir < | ||
+ | cd < | ||
+ | |||
+ | From this folder, setup the ICARUS environment, | ||
+ | | ||
+ | source / | ||
+ | |||
+ | download the correct version of the scripts, | ||
+ | | ||
+ | git clone https:// | ||
+ | |||
+ | and access the prod-scripts folder from where all steps will be submitted. | ||
+ | |||
+ | cd prod-scripts | ||
+ | |||
+ | Now, The initial setup is complete. Here is a complete example: | ||
+ | |||
+ | cd / | ||
+ | mkdir run2-v09_72_00_06-122023-variables | ||
+ | cd run2-v09_72_00_06-122023-variables | ||
+ | source / | ||
+ | git clone https:// | ||
+ | cd prod-scripts | ||
+ | |||
+ | ====== What to do while on shift ====== | ||
+ | During the campaign, it's requested to check, **every 6 hours**, the status of the submitted jobs and submit new batch of jobs if needed. | ||
+ | The steps, in sequential order, are: | ||
+ | |||
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | |||
+ | Once the submission of the production is complete, the shifter should [[https:// | ||
+ | |||
+ | |||
+ | ===== Check queue' | ||
+ | The first step is to check the number of jobs in the //pending// state. This can be done as follows: | ||
+ | {{ : | ||
+ | - Open the [[https:// | ||
+ | - Click on "Local Pending Jobs" | ||
+ | - Move the cursor to the rightmost part the plot (corresponding to the current situation). A popup should appear with the number of local //pending// jobs. | ||
+ | |||
+ | If this number is smaller than **300**, go to the [[https:// | ||
+ | |||
+ | |||
+ | ===== Configure the next job submission ===== | ||
+ | If the current number of //pending// jobs is smaller than **300**, a new batch of jobs can be submitted. First the shifter has to configure the job submission. To do so, the shifter has to go to the '' | ||
+ | |||
+ | cd / | ||
+ | |||
+ | Then, the shifter has to configure the job submission editing and modifing the '' | ||
+ | |||
+ | ==== Configure the job submission for real data production ==== | ||
+ | Here, it's requested to modify the '' | ||
+ | |||
+ | Here what to do for each batch: | ||
+ | * open (with an editor, i.e. '' | ||
+ | * open (with an editor, i.e. '' | ||
+ | * go to the next batch in the // | ||
+ | * save // | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | ==== Configure the job submission for MC data production ==== | ||
+ | Here, it's requested to modify the // | ||
+ | * **STARTING_RUN** | ||
+ | * **NUMBER_OF_RUNS** | ||
+ | |||
+ | The values for both variables for each step are provided in the // | ||
+ | |||
+ | Here what to do for each step: | ||
+ | * open (with an editor, i.e. '' | ||
+ | * open (with an editor, i.e. '' | ||
+ | * go to the next step in the step.info file and copy the corresponding values in the **STARTING_RUN** and **NUMBER_OF_RUNS** variables | ||
+ | * save // | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ===== Create a proxy with voms extensions ===== | ||
+ | |||
+ | You have to create a proxy with the voms extension, this step should be done **every time** your are going to submit a batch of jobs: | ||
+ | |||
+ | voms-proxy-init --voms icarus-exp.org --valid 72:00 | ||
+ | |||
+ | ===== Submit the batch of jobs ===== | ||
+ | **Heads-up**: | ||
+ | |||
+ | voms-proxy-init --voms icarus-exp.org --valid 72:00 | ||
+ | |||
+ | Then, go to the '' | ||
+ | |||
+ | cd / | ||
+ | |||
+ | After updating the file // | ||
+ | |||
+ | ./ | ||
+ | |||
+ | The script will automatically submit all the needed jobs. This could take a few minutes during which the shell will look unresponsive (it is not). | ||
+ | |||
+ | |||
+ | ====== Check the completion of the campaign ====== | ||
+ | Once the submission of the production is complete, the shifter should check the completion of the campaign. | ||
+ | |||
+ | For **standard campaigns**, | ||
+ | ./ | ||
+ | | ||
+ | The script creates a '' | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | | ||
+ | The shifter should open (with an editor, i.e. '' | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | |||
+ | If everything is as described above, the campaign is completed! If not, ask for guidance. | ||
+ | |||
+ | For **non-standard campaigns**, | ||
+ | | ||
+ | | ||
+ | |||
+ | ====== FAQ ====== | ||
+ | TO DO | ||