简体   繁体   English

手动定义HTCondor的ClusterID

[英]Manually define ClusterID of HTCondor

Does anyone know if it's possible to manually define the starting ClusterID of a new condor installation? 有谁知道是否可以手动定义新的秃鹰安装的起始ClusterID

I've wrapped some external services that query condor and they use ClusterID as a reference value. 我包装了一些查询秃鹰的外部服务,它们使用ClusterID作为参考值。

Unfortunately my instalation got corrupt and the easiest path to solve it is simply to wipe out everything from the /spool directory. 不幸的是,我的安装已损坏,解决该问题的最简单方法只是清除/ spool目录中的所有内容。

This, however, means that condor will start again with ClusterID=0 which creates havoc on my system. 但是,这意味着秃鹰将再次以ClusterID=0开头,这会对我的系统造成破坏。

Answer kindly provided by Ben Cotton from cyclecomputing.com: 答案由cyclecomputing.com的Ben Cotton提供:

SCHEDD_CLUSTER_INITIAL_VALUE is the schedd setting you want. SCHEDD_CLUSTER_INITIAL_VALUE是您想要的计划设置。

From the manual: 从手册中:

An integer that specifies the initial cluster number value to use within a job id when a job is first submitted. 一个整数,它指定首次提交作业时在作业ID中使用的初始群集号值。 If the job cluster number reaches the value set by SCHEDD_CLUSTER_MAXIMUM_VALUE and wraps, it will be re-set to the value given by this variable. 如果作业群集号达到SCHEDD_CLUSTER_MAXIMUM_VALUE设置的值并自动换行,它将被重置为该变量给定的值。 The default value is 1. 预设值为1。

It might be a good idea, if it's possible, to modify your external services to use GlobalJobId to identify jobs instead of just the straight job id. 如果可能的话,最好修改外部服务以使用GlobalJobId来标识作业,而不只是直接的作业ID。 I have a patch submitted (poke, poke, Todd) to add the following to the ClassAd reference: 我提交了一个补丁(poke,poke,Todd),将以下内容添加到ClassAd参考中:

A globally-unique job identifier. 全局唯一的作业标识符。 Contains the queue name, JobId, and schedd start time (in seconds since Jan 1, 1970) joined by #. 包含队列名称,JobId和预定的开始时间(自1970年1月1日以来的秒数),并以#开头。 For example, submit.example.com#152.3#1358363336 例如,submit.example.com#152.3#1358363336

The inclusion of the schedd start time helps prevent issues like you're encountering (plus eventually the odometer will reset on your cluster ID anyway). 预定的开始时间有助于防止出现您遇到的问题(最终里程表无论如何都会在群集ID上重置)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM