Need a config example for setting local_slots via user for plugin local


I would like to start a local galaxy instance allowing user-defined cpu number.

In the deployment I want to use the local plugin in the job_conf as shown below.

Does anyone have an example on how to do that using a combination of job_resource_params_conf.xml and job_conf.xml

What I understand so far is that:

  1. The job_conf/destination/parameters local_slots is responsible to set the GALAXY_SLOT environment variable when associated to a local runner.

My job_conf.xml file is as follow:

<?xml version="1.0"?>
        <plugin id="local" type="runner" load=""/>
    <destinations default="local">
        <destination id="local" runner="local">
            <param id="local_slots">4</param>
    <resources default="default">
      <group id="default">local_slots</group>

My job_resource_params_conf file is as follow:

  <param label="local_slots" name="local_slots" id="local_slots" type="integer" min="1" max="32" value="4" help="number of cpu" />

With this, the GALAXY_SLOT environment variable is set to 4. Without the line <param id="local_slots">4</param> it is not set and defaults to 1 on most tools.

The number of threads specified by user is not respected using this config or some variants I have tried.

Can everyone provide me with an example on how to use the job_resource_params_conf.xml with the local plugin ?

Thank you,

Welcome, @Julien_Fouret !

I’ve cross-posted your question over to the Matrix chat we host for local administrators. They may reply here or there, and feel free to join the chat to connection with others. :slight_smile: You're invited to talk on Matrix

Hope this helps!

Thank you,

I fear that the parameters specified in job_resource_params_conf.xml are not compatible with all plugins and especially not the local plugin.