[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Python bindings: how to querying configuration values



> On Jul 26, 2016, at 8:50 AM, Iain Bradford Steers <iain.steers@xxxxxxx> wrote:
> 
> Hi Thomas,
> 
> There's the docstrings here:
> 
> https://research.cs.wisc.edu/htcondor/manual/v8.5/6_7Python_Bindings.html
> 
> Which more or less match what you'll find in help()
> 
> Note if you update a remote param I don't believe an explicit send_command with reconfig is required, think it happens automatically. Although Brian can confirm this last point
> 

Actually, I donât know!  This should have the same semantics as using "condor_config_val -setâ: Iâve actually forgotten whether an explicit reconfig is necessary.

*Note* - I donât consider querying remote params to be a particularly scalable thing to do for your entire cluster.  If you want to know something like the kernel version of all your worker nodes, Iâd suggest you add it to the respective daemonâs ClassAd.  The CHTC pool uses the ClassAd attributes to advertise the git hash of the current config files, for example.

RemoteParam is good for one-offs (maintenance scripts, working with a handful of nodes) while the daemon ad is good for things you have to do pool-wide.

Brian