Increase the P2P data transfer rate

Hi Everyone,

My question is somewhat vague. I am trying to find out if there is a way to increase the rate at which the data is transferred using the Orthanc P2P connection.

As I have observed there seems to be an upper limit at which 1 study is transferred, which I guess is done in favor of parallel uploads, to keep the transfer speed consistent.

Apologies if it is confusing, any assistance on this is greatly appreciated!

Regards

Hi,
You can fine-tune the configuration below to achieve your best performance

{
  ...
  "HttpTimeout" : 120,         // Can be increased on slow networks
  "Transfers" : {
    "Threads" : 6,             // Number of worker threads for one transfer
    "BucketSize" : 4096,       // Optimal size for a bucket (in KB)
    "CacheSize" : 128,         // Size of the memory cache to process DICOM files (in MB)
    "MaxPushTransactions" : 4, // Maximum number of simultaneous receptions in push mode
    "MaxHttpRetries" : 0,      // Maximum number of HTTP retries for one bucket
    "PeerConnectivityTimeout": 2 // HTTP Timeout (in seconds) used when checking if a remote peer has the transfer plugin enabled in /transfers/peers GET route
  }
}

Also you can increase your concurrent jobs in orthanc.json

  // The maximum number of active jobs in the Orthanc scheduler. When
  // this limit is reached, the addition of new jobs is blocked until
  // some job finishes.
  "LimitJobs" : 10,

To send multiple studies, you can call many API at once. However since jobs are your treasure, you should be careful to do that.