Skip to content

Instantly share code, notes, and snippets.

@djw8605
Created October 15, 2011 03:05
Show Gist options
  • Save djw8605/1288953 to your computer and use it in GitHub Desktop.
Save djw8605/1288953 to your computer and use it in GitHub Desktop.
Condor_meter patch for cms overflow jobs
--- condor_meter.pl.orig 2011-11-03 21:58:53.000000000 -0500
+++ condor_meter.pl 2011-11-03 22:11:20.000000000 -0500
@@ -993,9 +993,16 @@
} else {
$fqdn_last_rem_host = $hash{'LastRemoteHost'};
}
+
+ $host_description = $hash{'MATCH_EXP_JOBGLIDEIN_ResourceName'};
+ $match_gatekeepers = quotemeta($hash{'MATCH_GLIDEIN_Gatekeeper'});
+ $desired_gatekeepers = quotemeta($hash{'DESIRED_Gatekeepers'});
+ if ( $desired_gatekeepers !=~ m/$match_gatekeepers/) {
+ $host_description = $host_description . "-overflow";
+ }
if ( defined ($hash{'MATCH_EXP_JOBGLIDEIN_ResourceName'})) {
- print $py qq/r.Host(\"/ . $fqdn_last_rem_host . qq/\",True,\"/ . $hash{'MATCH_EXP_JOBGLIDEIN_ResourceName'} . qq/\")\n/;
+ print $py qq/r.Host(\"/ . $fqdn_last_rem_host . qq/\",True,\"/ . $host_description . qq/\")\n/;
} else {
print $py qq/r.Host(\"/ . $fqdn_last_rem_host . qq/\",True)\n/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment