# Configuring Qlik DataTransfer

Administrators with access to the Qlik DataTransfer installation can configure and customize settings. Settings include ports, logs, data storage, and several other settings that can help manage low bandwidth, large files, and network latency. To modify settings, edit the services.conf file in the %Program Files%\Qlik\DataTransfer folder.

## Configuring ports

Qlik DataTransfer uses the following ports:

| Service | Port | Direction |
| --- | --- | --- |
| Secure web browser communication (HTTPS)<br><br>Information noteYou must open this port in your firewall. | 443 | Outbound |
| Data Upload service | 5505 | Internal |
| Engine service | 5506 | Internal |
| Connector Registry proxy | 5507 | Internal |

If you have a port conflict with one of the default service ports, you can change it in the services.conf file, located in %Program Files%\Qlik\DataTransfer.

```
[globals]
LogPath="${ALLUSERSPROFILE}\Qlik\DataTransfer\Log"
StoragePath="${ALLUSERSPROFILE}\Qlik\DataTransfer"
DataUploadServicePort=5505
EnginePort=5506
ConnectorRegistryPort=5507
```

## Configuring logs and data file storage

Qlik DataTransfer log files are located here: %ProgramData%\Qlik\DataTransfer\Log

Qlik DataTransferdata connections are located here: %ProgramData%\Qlik\DataTransfer\DataUpload

You can change the default storage path in the services.conf file, located in %Program Files%\Qlik\DataTransfer.

```
[globals]
LogPath="${ALLUSERSPROFILE}\Qlik\DataTransfer\Log"
StoragePath="${ALLUSERSPROFILE}\Qlik\DataTransfer"
DataUploadServicePort=5505
EnginePort=5506
ConnectorRegistryPort=5507
```

Information noteIt's recommended that you back up the files in storage folder to a secure location.

## Configuring other Qlik DataTransfer settings

There are multiple scenarios, such as low bandwidth, large files, network latency, or small application reload delay, where you might encounter issues and receives errors. Qlik DataTransfer offers configurable settings which can help you avoid such errors and improve throughput. You can configure these parameters in the services.config file, located in %Program Files%\Qlik\DataTransfer.

` 
                                -o [host]
							
                                --host [host]
							
                             `` 
                                -o localhost
							
                                --host localhost
							
                             `` 
                                -p [port]
							
                                --port [port]
							
                             `` 
                                -p 5505
                                --port 5505
							
                             `` 
                                -e [port]
                                --engine-port [port]
							
                             `` 
                                -e 5506
                                --engine-port 5506
							
                             `` 
                                -l [folder]
                                --log-path [folder]
							
                             `` 
                                -l [folder]
                                --log-path [folder]
							
                             `` 
                                -f [folder]
                                --working-folder [folder]
							
                             `` 
                                -f [folder-path]
                                --working-folder [folder-path]
							
                             `` 
                                -m [true/false]
                                --debug-mode [true/false]
							
                             `` 
                                -m true
                                --debug-mode true
							
                             ``--usePolling``--usePolling``--pollingInterval [mSec]``--pollingInterval 10000``--folderCheckInterval [mSec]``--folderCheckInterval 30000``--debounceDelay [mSec]``--debounceDelay 3000``--chunkSize [size in MB]``--chunkSize 200``--appReloadDelay [mSec]``--appReloadDelay 30000``--minBandwidth [kbps]``--minBandwidth 10240``--maxConcurrentUploads [number]``--maxConcurrentUploads 10``--tusRetryDelays [list-mSec]``--tusRetryDelays 2000,5000,10000``--queueingDelay [mSec]``--queueingDelay 30000``--maxFileSize [size in GB]``--maxFileSize 6.0``--resourceBusyDelay [mSec]``--resourceBusyDelay 60000`

| Parameter name | Parameter Format | Parameter example | Description and usage |
| --- | --- | --- | --- |
| Server hostname | Default value: localhost<br>Server hostname (define the enterprise host).<br><br>You can change the hostname other than localhost. |  |  |
| Server port | Default value: 5505<br>Server port.<br><br>If 5505 is already in use by the system, you can modify it. |  |  |
| Qlik Engine port | Default value: 5506<br>Qlik Engine port.<br><br>If 5506 is already in use, you can modify it. |  |  |
| Log path | Default value: C:\ProgramData\Qlik\DataTransfer\Log<br>Path to where log files are stored. |  |  |
| Current working directory | Default value: C:\ProgramData\Qlik\DataTransfer\DataUpload<br>Current working folder.<br><br>Change the working directory by specifying with this parameter. The working directory contains configuration files. |  |  |
| Debug mode | Default value: false<br>Add this parameter to make the logging more verbose. |  |  |
| Enable polling | Default value: no predetermined default value<br>Enable the polling on the shared folder configured under Data Folder. This will be used to poll the shared folder at a specified interval. |  |  |
| Polling interval | Default value: 100<br>Interval (in milliseconds) to poll the shared folder to capture the updates. It is used if `–usePolling` is enabled. |  |  |
| Shared folder connection check interval | Default value: 30000<br>Qlik DataTransfer checks for the connection to shared folder at specified intervals. If a connection is lost, it will be marked as disconnected and checked at the next interval. Once connected again, DataTransfer uploads any files which were updated since disconnection. |  |  |
| Debounce Delay Time | Default value: 1000<br>If a file is generating or updating frequently, you can add some delay before it starts uploading a file. This is called debounce delay and is only applicable to Data Folder connections. |  |  |
| Upload file chunk size | Default value: 300<br>File uploads in chunks of data.<br><br>Maximum value is 300 MB. Reducing the chunk size might help in a low bandwidth environment for better upload throughput. |  |  |
| Remote application reload delay time | Default value: 30000<br>Qlik DataTransfer triggers reload to dependent applications configured with the connection once the upload is finished. This delay helps the user to avoid frequent reloads of an application in case multiple files are in upload related to dependent applications. |  |  |
| Minimum upload bandwidth | Default value: 25600<br>Minimum upload stream bandwidth in Kbps.<br><br>This bandwidth is used to calculate the correct time-to-live (TTL). |  |  |
| Maximum concurrent upload limit | Default value: 10<br>Maximum number of concurrent uploads.<br><br>This is also used to calculate the TTL. Qlik DataTransfer calculates the time to upload based on the assumption of bandwidth being equally divided among concurrent uploads. By lowering the numbers, it helps to utilize more bandwidth. |  |  |
| Retry Delays | Default value: 2000, 5000, 10000, 20000, 3000<br>If a file chunk fails to upload, the `maxConcurrentUploads`<br>setting controls the number of times to retry and the time to wait between each retry. Also, the sum of all retry delays is added to the TTL for estimating the worst case TTL. |  |  |
| Queuing Delay Time | Default value: 30000<br>A concurrent upload queue manages the maximum number of uploads allowed at the same time. This might result in a delay of several seconds to build up the queue before the file uploading begins. The user can configure this wait time and is referred to as the queuing delay. |  |  |
| Maximum file size | Default value: 0<br>Maximum file size in GB that can be uploaded.<br><br>Zero means the Qlik Cloud tenant's maximum large file size quota. This can be set smaller to prevent users from accidentally uploading very large files. |  |  |
| Resource busy delay time | Default value: 60000<br>If Qlik Cloud returns a resource busy (423) error during upload, it will wait for a specific amount of time before it retries. You can specify this delay. |  |  |