Skip to content

Commit

Permalink
added pbs-m1
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-kuba committed Jan 26, 2024
1 parent 6d174e7 commit 3f2efa4
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public PBS loadData(PbsServerConfig serverConfig) {
File tempStderrFile = File.createTempFile("stderr", ".txt");
File tmpDirectory = Paths.get(System.getProperty("java.io.tmpdir", "/tmp")).toFile();

Process p = new ProcessBuilder("pbsprocaller", serverHost)
Process p = new ProcessBuilder(serverConfig.getPbsCaller(), serverHost)
.inheritIO()
.redirectOutput(tempStdoutFile)
.redirectError(tempStderrFile)
Expand Down
9 changes: 9 additions & 0 deletions pbsmon/src/main/java/cz/cesnet/meta/pbs/PbsServerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class PbsServerConfig {
private boolean by_queue;
private List<FairshareConfig> fairshares;
private String groupFile;
private String pbsCaller = "pbsprocaller";
/**
* If true, server uses plan-based scheduler, thus waiting jobs are sorted by planned_start instead of by queue priority and fairshare.
*/
Expand Down Expand Up @@ -92,6 +93,14 @@ public void setShortName(String shortName) {
this.shortName = shortName;
}

public String getPbsCaller() {
return pbsCaller;
}

public void setPbsCaller(String pbsCaller) {
this.pbsCaller = pbsCaller;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down
1 change: 1 addition & 0 deletions pbsmon/src/main/resources/StripesResources_cs.properties
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ queues.titul=Fronty
queues_total=celkem
queue.titul=Fronta {0}
server_meta-pbs.metacentrum.cz=Pl\u00E1nova\u010D infrastruktury MetaCentrum
server_pbs-m1.metacentrum.cz=OpenPBS pl\u00E1nova\u010D MetaCentra
server_arien-pro.ics.muni.cz=Star\u00FD pl\u00E1nova\u010D infrastruktury MetaCentrum
server_cerit-pbs.cerit-sc.cz=Pl\u00E1nova\u010D infrastruktury CERIT-SC
server_wagap-pro.cerit-sc.cz=Star\u00FD pl\u00E1nova\u010D infrastruktury CERIT-SC
Expand Down
1 change: 1 addition & 0 deletions pbsmon/src/main/resources/StripesResources_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ props.titul=Machine properties
queues.titul=Queues
queue.titul=Queue {0}
server_meta-pbs.metacentrum.cz=Planner for infrastructure MetaCentrum
server_pbs-m1.metacentrum.cz=OpenPBS planner for MetaCentrum
server_arien-pro.ics.muni.cz=Old planner for infrastructure MetaCentrum
server_cerit-pbs.cerit-sc.cz=Planner for infrastructure CERIT-SC
server_wagap-pro.cerit-sc.cz=Old planner for infrastructure CERIT-SC
Expand Down
20 changes: 20 additions & 0 deletions pbsmon/src/main/webapp/WEB-INF/spring-context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,26 @@ http://www.springframework.org/schema/tx/spring-tx.xsd"
<property name="groupFile" value="/etc/pbsmon/group/meta-pbs"/>
</bean>

<bean class="cz.cesnet.meta.pbs.PbsServerConfig">
<property name="shortName" value="pbs-m1"/>
<property name="host" value="pbs-m1.metacentrum.cz"/>
<property name="main" value="false"/>
<property name="torque" value="false"/>
<property name="by_queue" value="false"/>
<property name="planbased" value="true"/>
<property name="pbsCaller" value="/home/pbsmon/openpbs/openpbscaller.sh"/>
<property name="fairshares">
<list>
<bean class="cz.cesnet.meta.pbs.FairshareConfig">
<constructor-arg name="tree" value="default" />
<constructor-arg name="metrics" value="fairshare" />
<constructor-arg name="id" value="m1" />
</bean>
</list>
</property>
<property name="groupFile" value="/etc/pbsmon/group/pbs-m1"/>
</bean>

<bean class="cz.cesnet.meta.pbs.PbsServerConfig">
<property name="shortName" value="cerit"/>
<property name="host" value="cerit-pbs.cerit-sc.cz"/>
Expand Down

0 comments on commit 3f2efa4

Please sign in to comment.