Setting concurrent download threads
Table of contents
What is its function
This option allows you to specify the number of threads to handle downloading files for conversion. If more requests than this are made the microservice will wait for a thread to become available.
This function is controlled by 1 config property.
- downloadThreadCount - The number of threads to download input files
How to set this value
Create the following Java properties file on the server running your app server (if you don’t already have one) {user.home}/.idr/buildvu-microservice/buildvu-microservice.properties
In this file add (or update if the key already exists) the following key and value pair.
- downloadThreadCount - This can be a value between 1 and 2,147,483,647 although using more threads than CPU cores will cause downloads to run slower the more threads as they have to wait for cores to be open.
e.g downloadThreadCount=5
Default Value
When no values are provided or invalid values are provided the following default values are used.
- downloadThreadCount=5
How to use with Docker
In order to provide your own properties file to the Docker image you need to mount the properties file to the image. This is done by adding the following to your docker run command.
--mount "source=/path/to/properties/directory/buildvu-microservice.properties,target=/root/.idr/buildvu-microservice/buildvu-microservice.properties,type=bind"