Skip to content

Support HTCondor in CLUSTER_SLOTS_STATEMENT.sh#405

Merged
mvdbeek merged 3 commits into
galaxyproject:masterfrom
domgz:cluster_slots_statement_htcondor
Jul 17, 2025
Merged

Support HTCondor in CLUSTER_SLOTS_STATEMENT.sh#405
mvdbeek merged 3 commits into
galaxyproject:masterfrom
domgz:cluster_slots_statement_htcondor

Conversation

@domgz

@domgz domgz commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

HTCondor sets a couple of environment variables read by various frameworks to control the number of threads they are allowed to use. A list can be found in the HTCondor docs https://htcondor.readthedocs.io/en/24.0/admin-manual/configuration-macros.html#STARTER_NUM_THREADS_ENV_VARS. The list itself is configurable (it is an HTCondor configuration macro).

Any of these variables can be used to set GALAXY_SLOTS. Set it using the variable ROOT_MAX_THREADS (designed to control the ROOT data analysis framework from CERN).

HTCondor sets a couple of environment variables read by various frameworks to control the number of threads they are allowed to use. A list can be found on the HTCondor docs https://htcondor.readthedocs.io/en/24.0/admin-manual/configuration-macros.html#STARTER_NUM_THREADS_ENV_VARS. The list itself is configurable (it is an HTCondor configuration macro).

Any of these variables can be used to set GALAXY_SLOTS. Set it using the variable ROOT_MAX_THREADS (designed to control the ROOT data analysis framework from CERN).
@domgz

domgz commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

@bgruening, @mvdbeek does this make sense to you?

@domgz

domgz commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

This is what would happen if the PR was merged.

galaxy@sn06:~$ cd /data/jwd06/pulsar_staging/86195857
galaxy@sn06:/data/jwd06/pulsar_staging/86195857$ cat external_id
"64664468"
galaxy@sn06:/data/jwd06/pulsar_staging/86195857$ condor_ssh_to_job 64664468
...
galaxy@vgcnbwc-worker-c8m40g1-0008:~/server$ docker ps
CONTAINER ID   IMAGE                                                 COMMAND                  CREATED         STATUS                   PORTS                                                         NAMES
d8e9fadbcd3d   quay.io/bgruening/anylabeling:0.4.30                  "/bin/sh /data/jwd06…"   2 minutes ago   Up 2 minutes             5900/tcp, 0.0.0.0:32862->5800/tcp, :::32862->5800/tcp         11e6c2910bf447f3b78a9aceff0c069f
...
galaxy@vgcnbwc-worker-c8m40g1-0008:~/server$ docker exec -it d8e9fadbcd3d /bin/bash
root@d8e9fadbcd3d:/data/jwd06/pulsar_staging/86195857/working# echo $GALAXY_SLOTS
4

Comment thread pulsar/managers/util/job_script/CLUSTER_SLOTS_STATEMENT.sh Outdated

@mvdbeek mvdbeek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, looks good!

domgz added 2 commits July 17, 2025 09:36
…bmitted jobs

At the moment, Pulsar is using ROOT_MAX_THREADS (designed to control the ROOT data analysis framework from CERN) to set GALAXY_SLOTS. Switch to PYTHON_CPU_COUNT (controls the amount of CPUs that Python sees).
@domgz

domgz commented Jul 17, 2025

Copy link
Copy Markdown
Contributor Author

Yes, looks good!

It should be good to merge now.

@bgruening

Copy link
Copy Markdown
Member

@mvdbeek is it realistic to get a new release, that Galaxy stable depends on? Or should we carry patches?

@mvdbeek
mvdbeek merged commit 4c90d0c into galaxyproject:master Jul 17, 2025
8 of 13 checks passed
@mvdbeek

mvdbeek commented Jul 17, 2025

Copy link
Copy Markdown
Member

We can do that, no problem

@domgz
domgz deleted the cluster_slots_statement_htcondor branch July 17, 2025 15:46
@mvdbeek

mvdbeek commented Jul 17, 2025

Copy link
Copy Markdown
Member

@mvdbeek

mvdbeek commented Jul 17, 2025

Copy link
Copy Markdown
Member

Can I ask you to also open the same PR on galaxy and drop the hardcoding of galaxy_slots ? dev would be fine since this works

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants