Overflow-like Frontend config

<frontend frontend_name="UCSD-o5_2b" 
             advertise_delay="1" advertise_with_multiple="True" advertise_with_tcp="True" 
             loop_delay="60" restart_attempts="3" restart_interval="1800">
   <match match_expr="True">
      <factory comment="Overflow only to selected US sites" 
                  query_expr='stringListMember("CMS",GLIDEIN_Supported_VOs) &amp;&amp; 
                              (GLIDEIN_Gatekeeper=!="osg.rcac.purdue.edu:2119/jobmanager-condor")&amp;&amp;
                              stringListMember(GLIDEIN_Site,"Nebraska,Wisconsin,UCSD,Purdue",",")'>
         <match_attrs>
         </match_attrs>
         <collectors>
            <collector DN="/DC=org/DC=doegrids/OU=Services/CN=glidein-1.t2.ucsd.edu" factory_identity="gfactory@glidein-1.t2.ucsd.edu" my_identity="fecmsucsd@glidein-1.t2.ucsd.edu" node="glidein-1.t2.ucsd.edu"/>
            <collector DN="/DC=org/DC=doegrids/OU=Services/CN=glidein.grid.iu.edu" factory_identity="gfactory@glidein.grid.iu.edu" my_identity="fecmsucsd@glidein.grid.iu.edu" node="glidein.grid.iu.edu"/>
         </collectors>
      </factory>
      <job comment="Look at old jobs only" 
              query_expr="(JobUniverse==5)&amp;&amp;
                          (GLIDEIN_Is_Monitor =!= TRUE)&amp;&amp;(JOB_Is_Monitor =!= TRUE)&amp;&amp;
                          (IsSleep=!=1)&amp;&amp;(JOB_Is_ITB =!= TRUE)&amp;&amp;
                          ((CurrentTime-QDate)&gt;21600)">
         <match_attrs>
         </match_attrs>
         <schedds>
            <schedd DN="/DC=org/DC=doegrids/OU=Services/CN=glidein-2.t2.ucsd.edu" fullname="glidein-2.t2.ucsd.edu"/>
            <schedd DN="/DC=org/DC=doegrids/OU=Services/CN=submit-2.t2.ucsd.edu" fullname="submit-2.t2.ucsd.edu"/>
            <schedd DN="/DC=org/DC=doegrids/OU=Services/CN=submit-1.t2.ucsd.edu" fullname="submit-1.t2.ucsd.edu"/>
         </schedds>
      </job>
   </match>
   <security classad_proxy="/home/frontend/.globus/x509_service_proxy" proxy_DN="/DC=org/DC=doegrids/OU=Services/CN=glidein-collector.t2.ucsd.edu" security_name="UCSDCMS" sym_key="aes_256_cbc">
      <proxies>
      </proxies>
   </security>
   <attrs>
      <attr name="GLIDEIN_Expose_Grid_Env" glidein_publish="True" job_publish="True" parameter="False" type="string" value="True"/>
      <attr name="GLIDEIN_Glexec_Use" comment="This will use glexec wherever available" glidein_publish="False" job_publish="False" parameter="True" type="string" value="OPTIONAL"/>
      <attr name="USE_MATCH_AUTH" glidein_publish="False" job_publish="False" parameter="True" type="string" value="True"/>
   </attrs>
   <groups>
      <group name="Nebraska" enabled="True">
         <config>
            <idle_glideins_per_entry max="20" reserve="2"/>
            <idle_vms_per_entry curb="5" max="20"/>
            <running_glideins_per_entry max="250" relative_to_queue="1.0"/>
            <running_glideins_total curb="600" max="800"/>
         </config>
         <downtimes/>
         <match match_expr="True">
            <factory comment="Overflowing to myself seems stupid" 
                        query_expr='(GLIDEIN_Site=!="Nebraska")'>
               <match_attrs>
               </match_attrs>
               <collectors>
               </collectors>
            </factory>
            <job query_expr='(stringListMember("srm.unl.edu",DESIRED_SEs,",")=?=True) || 
                                (stringListMember("red.unl.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("red-gw1.unl.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("red-gw2.unl.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("Nebraska",DESIRED_Sites,",")=?=True)'>
               <match_attrs>
               </match_attrs>
               <schedds>
               </schedds>
            </job>
         </match>
         <security>
            <proxies>
               <proxy absfname="/home/frontend/.globus/x509_pilot07_cms_pilot.proxy" security_class="cmspilot"/>
            </proxies>
         </security>
         <attrs>
            <attr name="GLIDECLIENT_Group_Start" glidein_publish="False" job_publish="False" parameter="True" type="string" 
                     value='(stringListMember("srm.unl.edu",DESIRED_SEs,",")=?=True) || 
                            (stringListMember("red.unl.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("red-gw1.unl.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("red-gw2.unl.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("Nebraska",DESIRED_Sites,",")=?=True)'/>
         </attrs>
         <files>
         </files>
      </group>
      <group name="Purdue" enabled="True">
         <config>
            <idle_glideins_per_entry max="20" reserve="2"/>
            <idle_vms_per_entry curb="5" max="20"/>
            <running_glideins_per_entry max="250" relative_to_queue="1.0"/>
            <running_glideins_total curb="600" max="800"/>
         </config>
         <downtimes/>
         <match match_expr="True">
            <factory comment="Overflowing to myself seems stupid" 
                        query_expr='(GLIDEIN_Site=!="Purdue")'>
               <match_attrs>
               </match_attrs>
               <collectors>
               </collectors>
            </factory>
            <job query_expr='(stringListMember("srm-dcache.rcac.purdue.edu",DESIRED_SEs,",")=?=True) || 
                                (stringListMember("rossmann-osg.rcac.purdue.edu:2119/jobmanager-pbs",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("osg.rcac.purdue.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("Purdue",DESIRED_Sites,",")=?=True)'>
               <match_attrs>
               </match_attrs>
               <schedds>
               </schedds>
            </job>
         </match>
         <security>
            <proxies>
               <proxy absfname="/home/frontend/.globus/x509_pilot08_cms_pilot.proxy" security_class="cmspilot"/>
            </proxies>
         </security>
         <attrs>
            <attr name="GLIDECLIENT_Group_Start" glidein_publish="False" job_publish="False" parameter="True" type="string" 
                     value='(stringListMember("srm-dcache.rcac.purdue.edu",DESIRED_SEs,",")=?=True) || 
                            (stringListMember("rossmann-osg.rcac.purdue.edu:2119/jobmanager-pbs",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("osg.rcac.purdue.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("Purdue",DESIRED_Sites,",")=?=True)'/>
         </attrs>
         <files>
         </files>
      </group>
      <group name="UCSD" enabled="True">
         <config>
            <idle_glideins_per_entry max="20" reserve="2"/>
            <idle_vms_per_entry curb="5" max="20"/>
            <running_glideins_per_entry max="250" relative_to_queue="1.0"/>
            <running_glideins_total curb="600" max="800"/>
         </config>
         <downtimes/>
         <match match_expr="True">
            <factory comment="Overflowing to myself seems stupid" 
                        query_expr='(GLIDEIN_Site=!="UCSD")'>
               <match_attrs>
               </match_attrs>
               <collectors>
               </collectors>
            </factory>
            <job query_expr='(stringListMember("bsrm-1.t2.ucsd.edu",DESIRED_SEs,",")=?=True) || 
                                (stringListMember("osg-gw-2.t2.ucsd.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("osg-gw-4.t2.ucsd.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("UCSD",DESIRED_Sites,",")=?=True)'>
               <match_attrs>
               </match_attrs>
               <schedds>
               </schedds>
            </job>
         </match>
         <security>
            <proxies>
               <proxy absfname="/home/frontend/.globus/x509_pilot05_cms_pilot.proxy" security_class="cmspilot"/>
            </proxies>
         </security>
         <attrs>
            <attr name="GLIDECLIENT_Group_Start" glidein_publish="False" job_publish="False" parameter="True" type="string" 
                     value='(stringListMember("bsrm-1.t2.ucsd.edu",DESIRED_SEs,",")=?=True) || 
                            (stringListMember("osg-gw-2.t2.ucsd.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("osg-gw-4.t2.ucsd.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("UCSD",DESIRED_Sites,",")=?=True)'/>
         </attrs>
         <files>
         </files>
      </group>
      <group name="Wisconsin" enabled="True">
         <config>
            <idle_glideins_per_entry max="20" reserve="2"/>
            <idle_vms_per_entry curb="5" max="20"/>
            <running_glideins_per_entry max="250" relative_to_queue="1.0"/>
            <running_glideins_total curb="600" max="800"/>
         </config>
         <downtimes/>
         <match match_expr="True">
            <factory comment="Overflowing to myself seems stupid" 
                        query_expr='(GLIDEIN_Site=!="Wisconsin")'>
               <match_attrs>
               </match_attrs>
               <collectors>
               </collectors>
            </factory>
            <job query_expr='(stringListMember("cmssrm.hep.wisc.edu",DESIRED_SEs,",")=?=True) || 
                                (stringListMember("cmsgrid01.hep.wisc.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("cmsgrid02.hep.wisc.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                                (stringListMember("Wisconsin",DESIRED_Sites,",")=?=True)'>
               <match_attrs>
               </match_attrs>
               <schedds>
               </schedds>
            </job>
         </match>
         <security>
            <proxies>
               <proxy absfname="/home/frontend/.globus/x509_pilot06_cms_pilot.proxy" security_class="cmspilot"/>
            </proxies>
         </security>
         <attrs>
            <attr name="GLIDECLIENT_Group_Start" glidein_publish="False" job_publish="False" parameter="True" type="string" 
                     value='(stringListMember("cmssrm.hep.wisc.edu",DESIRED_SEs,",")=?=True) || 
                            (stringListMember("cmsgrid01.hep.wisc.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("cmsgrid02.hep.wisc.edu:2119/jobmanager-condor",DESIRED_Gatekeepers,",")=?=True) || 
                            (stringListMember("Wisconsin",DESIRED_Sites,",")=?=True)'/>
         </attrs>
         <files>
         </files>
      </group>
   </groups>
   <collectors>
      <collector DN="/DC=org/DC=doegrids/OU=Services/CN=glidein-collector.t2.ucsd.edu" node="glidein-collector.t2.ucsd.edu" secondary="False"/>
      <collector DN="/DC=org/DC=doegrids/OU=Services/CN=glidein-collector.t2.ucsd.edu" node="glidein-collector.t2.ucsd.edu:9620-9919" secondary="True"/>
   </collectors>
   <files>
      <file absfname="/home/frontend/glideinWMS_CMS/glidein_script/discover_CMSSW.sh" after_entry="True" after_group="False" const="True" executable="True" untar="False" wrapper="False">
         <untar_options cond_attr="TRUE"/>
      </file>
      <file absfname="/home/frontend/frontstage/instance_o5_2b.cfg/setjava.sh" after_entry="True" after_group="False" const="True" executable="False" untar="False" wrapper="True">
         <untar_options cond_attr="TRUE"/>
      </file>
      <file absfname="/home/frontend/frontstage/instance_o5_2b.cfg/set_home_cms.source" after_entry="True" after_group="False" const="True" executable="False" untar="False" wrapper="True">
         <untar_options cond_attr="TRUE"/>
      </file>
   </files>
   <log_retention max_days="7.0" max_mbytes="100.0" min_days="3.0"/>
   <stage base_dir="/var/www/html/vofrontend/stage" use_symlink="True" web_base_url="http://glidein-collector.t2.ucsd.edu:8319/vofrontend//stage"/>
   <work base_dir="/home/frontend/frontstage" base_log_dir="/home/frontend/frontlogs"/>
   <monitor base_dir="/var/www/html/vofrontend/monitor" flot_dir="/home/frontend/javascriptrrd-0.6.1/flot" javascriptRRD_dir="/home/frontend/javascriptrrd-0.6.1" jquery_dir="/home/frontend/javascriptrrd-0.6.1/flot"/>
</frontend>