597 | | = PL-Grid Grants Support = |
598 | | Since version 2.2.7 QCG-Computing is integrated with PL-Grid grants system. The integration with grant system has three main interaction points: |
599 | | * QCG-Computing can accept jobs which has grant id set explicitly. One must use the `<jsdl:JobProject>` element, e.g.: |
600 | | |
601 | | {{{ |
602 | | #!div style="font-size: 90%" |
603 | | {{{#!sh |
604 | | <?xml version="1.0" encoding="UTF-8"?> |
605 | | |
606 | | <jsdl:JobDefinition |
607 | | xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl" |
608 | | xmlns:jsdl-hpcpa="http://schemas.ggf.org/jsdl/2006/07/jsdl-hpcpa" |
609 | | xmlns:jsdl-qcg-comp-factory="http://schemas.qoscosgrid.org/comp/2011/04/jsdl/factory"> |
610 | | <jsdl:JobDescription> |
611 | | <jsdl:JobIdentification> |
612 | | <jsdl:JobProject>Manhattan</jsdl:JobProject> |
613 | | </jsdl:JobIdentification> |
614 | | <jsdl:Application> |
615 | | <jsdl-hpcpa:HPCProfileApplication> |
616 | | ... |
617 | | }}} |
618 | | }}} |
619 | | |
620 | | * QCG-Computing can provide information about the local grants to the upper layers (e.g. QCG-Broker), so they can use for scheduling purpose. One can enable it by adding the following line to the QCG-Computing configuration file (qcg-compd.xml): |
621 | | {{{ |
622 | | #!div style="font-size: 90%" |
623 | | {{{#!sh |
624 | | </sm:Transport> |
625 | | ... |
626 | | <sm:Module xsi:type="sm:general_python" path="/opt/plgrid/qcg/lib/qcg-comp/modules/python/plgrid_info.py"/> |
627 | | }}} |
628 | | }}} |
629 | | Please note that this module requires the [#LDAPgeneratedgridmapfile qcg-gridmapfilegenerator] to be installed. |
630 | | * The grant id is provided in resource usage record sent to the BAT accounting service |
631 | | == Configuring PBS DRMA submit filter == |
632 | | In order to enforce PL-Grid grant policy you must configure PBS DRMAA submit filter by editing the `/opt/plgrid/qcg/etc/qcg-comp/sysconfig/qcg-compd` and adding variable pointing to the DRMAA submit filter, e.g.: |
633 | | {{{ |
634 | | export PBSDRMAA_SUBMIT_FILTER="/software/grid/plgrid/qcg-app-scripts/app-scripts/tools/plgrid-grants/pbsdrmaa_submit_filter.py" |
635 | | }}} |
636 | | An example submit filter can be found in !QosCosGrid svn: |
637 | | {{{ |
638 | | svn co https://apps.man.poznan.pl/svn/qcg-computing/trunk/app-scripts/tools/plgrid-grants |
639 | | }}} |
640 | | More about PBS DRMAA submit filters can be found [[http://apps.man.poznan.pl/trac/pbs-drmaa/wiki/WikiStart#Submitfilter|here]]. |
| 597 | |