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

Re: [HTCondor-users] Issue with HTCondor over supervisord (Docker container)



On 10/21/2020 11:24 PM, ERICK STEVEN GARCIA MORALES via HTCondor-users wrote:
Hi!

I'm developing a custom scientific portal in which I'm using HTCondor as a workloader for the jobs (submitted by a web interface).

That HTCondor has to run in a Docker container with a SSH service.

Both services (HTCondor services and ssh service) are daemonized using supervisord. The supervisor service (supervisord) never keeps alive the HTCondor services, and reports exit codes when it has to run indefinitely.

ÂSomeone have any experience with these problems?

Thank you for your help.

Hi,

I am just guessing here, but be aware that  by default the condor_master will fork and run in the background.  If you want to start the HTCondor service under supervisord, I suggest you start the condor_master with the "-f" option to run in the foreground so the process does not immediately exit, e.g. have the following in your supervisord.conf:
                                         
  [program:condor_master]                
  user = root                            
  command = /usr/sbin/condor_master -f   
 
Also you may be interested to know that we provide Docker containers for HTCondor on Docker Hub.  Maybe you want to build your container based on the HTCondor container?  In any event, taking a look at the Dockerfile we provide may be instructional.  More info is at:

    https://github.com/htcondor/htcondor/tree/master/build/docker/services
 
hope this helps,
Todd