First initialize Kubernetes and Argo use by following this tutorial
After that:
- Upload your dataset fragment to the cloud's object storage
openstack object create your_storage_name fragments.py --name FullSim/your_dataset_name/fragments.py
- Clone this repository
git clone git@github.com:cms-opendata-processing-tasks/FullSimulationArgoWorkflow.git
cd FullSimulationArgoWorkflow
- Change the parameters according to your needs
Open the cms-simulation-process/run-simulation-s3.yaml with your preferred editor
In
spec:
entrypoint: cms-full-sim
serviceAccountName: argo-service-account
arguments:
parameters:
- name: bucket
value: your_storage
- name: dataName
value: "your_dataset_name"
- name: fragFileName
value: "fragments.py"
- name: totEvents
value: 10
- name: nJobs
value: 3
check that these parameters have correct values that are set according to you situation especially your_dataset_name and your_storage
- Submit the workflow to the cluster
argo submit cms-simulation-process/run-simulation-s3.yaml -n argo
- Follow the workflow progress with
argo get @latest -n argo
- For debugging you can use e.g. these commands
kubectl logs simulation-process-unique-name-of-your-pod -n argo
kubectl describe pod/simulation-process-unique-name-of-your-pod -n argo
The unique name of your pod can be seen in the output of argo get @latest -n argo
- Once the workflow is done
You can find the output files in your object storage in the path
your_storage/FullSim/your_dataset_name/NANO
List the output files
swift list your_storage --prefix FullSim/your_dataset_name/NANO
Download output files locally if needed
swift download your_storage --prefix FullSim/your_dataset_name/NANO --output-dir results