Skip to content

HTCondor support #100

Closed
Closed

Description

@szs8

Does this project have plans for HTCondor support?

Activity

  1. mrocklin commented on Jul 18, 2018

    @mrocklin
    Member
  2. jhamman commented on Jul 19, 2018

    @jhamman
    Member

    I don't think we have any current plans to implement an HTCondorCluster but it does seem in scope for this project. If an interested developer wanted to give it a try, I suspect it would be relatively straightforward. That said, I don't have any experience with HTCondor so take my measure of "straightforward" with a grain of salt.

  3. mrocklin commented on Jul 19, 2018

    @mrocklin
    Member
  4. jrbourbeau commented on Jul 19, 2018

    @jrbourbeau
    Member

    Sorry for the delayed response. @mrocklin is correct, I'm currently working on an HTCondorCluster implementation to add to dask-jobqueue and plan to open up a PR soon.

  5. szs8 commented on Jul 19, 2018

    @szs8
    Author

    @jrbourbeau That's great! Looking forward to it.

  6. guillaumeeb commented on Oct 15, 2018

    @guillaumeeb
    Member

    @jrbourbeau any update? Do you have something to share? Maybe @szs8 would like to take a look at this?

  7. jrbourbeau commented on Oct 15, 2018

    @jrbourbeau
    Member

    Apologies for letting this linger. I got side-tracked with other work and haven't come back to this yet. @szs8 if you, or anyone else, are interested in contributing here, please feel free to take over.

  8. mivade commented on Oct 16, 2018

    @mivade

    @jrbourbeau Where does the existing implementation live?

  9. added
    help wanted
    on Oct 17, 2018
  10. added
    enhancement
    good first issue
    on Oct 27, 2018
  11. 8 remaining items

  12. djhoese commented on Jan 14, 2019

    @djhoese

    @matyasselmeci That would be great. My "secret" goal is to possibly get a JupyterHub instance running on the University of Wisconsin clusters, or at least at the SSEC where I work. I assume you also work on campus? If you want to meet in person to discuss some of this stuff and my ideas, let me know.

  13. guillaumeeb commented on Jan 14, 2019

    @guillaumeeb
    Member

    @matyasselmeci or @simone-codeluppi, again I would be happy to help extract the relevant bits of your scripts to a JobQueueCluster implementation for HTCondor. I think this should be quite easy if you've already run a Dask cluster using dask-scheduler or dask-worker commands wrapped into job scripts.

  14. matyasselmeci commented on Jan 15, 2019

    @matyasselmeci
    Contributor

    @guillaumeeb yes, it looks like the changes wouldn't be too severe. One thing is that dask_condor uses HTCondor's Python bindings (which include some compiled code) to submit and control jobs instead of command-line tools (as the other JobQueueClusters do), so it may have to stay a separate project.

    @djhoese yes, I work at Comp Sci. My colleagues and I would be very interested in meeting with you and discussing your projects; mind if I contact you via email? (I found your SSEC email address in the UW directory, if that's a good one to use.)

  15. djhoese commented on Jan 15, 2019

    @djhoese

    @matyasselmeci Yes that works.

  16. matyasselmeci commented on Jan 22, 2019

    @matyasselmeci
    Contributor

    I've started work on this and it shouldn't be too difficult; I can have a branch in dask_condor that's usable for external testing in a week or two. @mrocklin, if you're OK with adding an optional dependency on htcondor (extras_require=dict(htcondor="htcondor>=8.6.0") in setup.py) then I can turn it into a pull request after that.

  17. mrocklin commented on Jan 22, 2019

    @mrocklin
    Member
  18. guillaumeeb commented on Jan 22, 2019

    @guillaumeeb
    Member

    I've no strong argument against it, provinding its not too big and don't break other things!

    I've some questions though:

    • Would this be possible to follow the same scheme as for other job queuing system instead? Just checking...
    • Is this method compatible with JobQueueCluster abstract class? Does it implies overriding many part of it?

    My main concern is future ease of maintenance, I'd rather not have a too specific solution for HTCondor. But I think the priority is to have a solution!

  19. matyasselmeci commented on Jan 22, 2019

    @matyasselmeci
    Contributor

    I'm using JobQueueCluster as the base class; I'll try to make it as compatible as possible and will follow the conventions the other batch system implementations are using.

  20. matyasselmeci commented on Jan 23, 2019

    @matyasselmeci
    Contributor

    I mostly have to override start_workers and stop_workers/stop_jobs since it doesn't work by creating submission script and running it. If you want, I can split out some of the advanced features (e.g. file transfer) into a subclass that won't be part of the PR and I can maintain separately.

  21. jhamman commented on Jan 23, 2019

    @jhamman
    Member

    @matyasselmeci - thanks for sticking around here and your continued interest. I have not personally used HTCondor so forgive me if my questions are off base a bit. I'm mostly interested in discussing if there is value in have the HTCondorCluster use the the same machinery that the other cluster managers do. I quickly looked at these docs and it seems this should be quite easy to do.

    It seems we could basically template out a job script (just like in the PBSCluster) that looks like:

    # /tmp/tempfile.sub -- run one instance of dask_worker
    executable              = %(python)s -m distributed.cli.dask_worker
    arguments               = "%(worker_command)s"
    log                     = %(log_directory)/dask-worker-log.txt
    queue
    

    and then the submit/cancel commands:

        submit_command = 'condor_submit'
        cancel_command = 'condor_rm'

    It seems like additional arguments are possible in the job script to specify wall time, resources, etc.

    Now, I could be missing a fundemental part of HTCondor so please correct me if I'm wrong here.

  22. matyasselmeci commented on Jan 23, 2019

    @matyasselmeci
    Contributor

    Little more complicated than that; executable needs to be a single file (whatever happened to the dask-worker executable btw?); the quoting for arguments is... nonstandard...; log is actually the record of what the HTCondor scheduler does to the job, not the dask-worker's output.

    HTCondor is used for submitting multiple jobs at the same time so the job ID has the form 13.5 where the 13 is the ID of the group of jobs submitted ("ClusterId" -- bad name but it's historical) and the 5 is the specific job within that group ("ProcId" -- same here); condor_submit only gives you the ClusterId in the output (but the ProcIds are 0..n-1 as expected)...

    Basically the devil is in the details. It's possible to do it that way but you'll need to do a lot of pre-processing of the parameters anyway or else it won't behave the way you expect it to.

  23. guillaumeeb commented on Jan 23, 2019

    @guillaumeeb
    Member

    I've no strong opinion here. I would prefer to have the same scheme for all implementations as said before, but I'm happy if we can have a different working solution, that still fits in dask-jobqueue.

    If you've started work on this and have some interest in it, I say keep going and ping us as soon as you have something thats understandable so that we can give feedback!

  24. lesteve commented on Jan 30, 2019

    @lesteve
    Member
  25. guillaumeeb commented on Mar 7, 2019

    @guillaumeeb
    Member

    Closed by #245.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions