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

Re: [HTCondor-users] Advertising a Windows machine's DSNs



Could you publish the DSN_LIST as a regex that the client then tried to match against it's needs?

DSN_NAMES = "MYDBSRV[1-8]"

Requirements = ... && Regexp(TARGET.DSN_NAMES, "MYDBSRV2")

-tj


On 12/18/2014 10:33 AM, Matt Grimm (mgrimm) wrote:
I want to advertise the DSNs that are available on my Windows execute nodes. One approach is to advertise a distinct ClassAd for each DSN. Since it is possible for these machines to have up to ~2,000 DSNs installed, this seems unwieldy. Another approach is to define a single ClassAd whose value is a delimited list of the installed DSNs.

     DSN_LIST = "MYDBSRV1|MYDBSRV2|MYDBSRV3|..."
Then a job could include in its requirements expression something like this:

     stringListMember("MYDBSRV2", DSN_LIST, "|")
Is either approach preferable from a performance standpoint? With the second approach, are there any issues with the choice of "|" for a delimiter?

Thanks,
m.

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/