Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »



On This Page

Overview

Bandwidth throttling allows the user to limit how much upload or download bandwidth SkySync's jobs use. Throttling can be setup to take affect at certain times of day. Bandwidth throttling can be specified on per job basis. Additionally, the default throttling setting can be set for all jobs that do not have bandwidth specified as part of the job options.

Option

Description

Job's static upload and download throttling

Sets max upload and download bandwidth for the job.

Example

{
...
	"transfer": {
		...
		"performance": {
			"upload": {
				"bytes_per_second": 102400
			},
			"download": {
				"bytes_per_second": 102400
		}
		...
	}
...
}

Job with throttling window during business hours

Limits upload during business hours. Note that hours must be specified in UTC and bytes_per_second = 0 is unlimited.

Example

{
...
	"transfer": {
	...
		"performance": {
			"upload": {
				"window": [
					{
						"bytes_per_second": 102400, 
						"time": {
							"hr": 9,
							"min": 3,
							"sec": 0
						}
					},
					{
						"bytes_per_second": 0, 
						"time": {
							"hr": 17,
							"min": 0,
							"sec": 0
						}
					}
				]
			}
		}
	...
	}
...
}

Default job bandwidth settings

Apply bandwidth throttling to all jobs that do not have it specified in transfer options.

Example setting in appSettings.json

{
  "performance": {
    "upload": 102400,
    "download": 102400
  }
}

Default job bandwidth settings with bandwidth window

Apply bandwidth throttling during business hours to all jobs which do not have it specified in transfer options.

Example setting in appSettings.json

{
  "performance": {
    "upload": {
      "bytes_per_second": 102400,
      "disabled": false,
      "window": [{
        "bytes_per_second": 92400,
        "days": [
          "Monday",
          "Tuesday",
          "Friday",
          "Saturday"
        ],
        "start_time": {
          "hr": 2,
          "min": 2,
          "sec": 0
        },
        "end_time": {
          "hr": 12,
          "min": 12,
          "sec": 0
        }
      }
     ]
    }
  }
}

Example JSON

The following copy job will upload at rate no higher than 100kBps.

POST v1/jobs

{
	"name":"Simple Transfer Job with upload throttling",
	"kind": "transfer",
	"transfer": {
    	"transfer_type": "copy",
	    "source": {
    		"connection": { "id": "{{nfs_connection_id}}" },
    		"target": {
    			"path": "/w/source"
    		}
    	},
    	"destination": {
    		"connection": { "id": "{{cloud_connection_id}}" },
    		"target": {
    			"path": "/w/destination"
    		}
    	},
		"performance": {
			"upload": {
				"bytes_per_second": 102400
			}
		}
	},
	"schedule": {
		"mode": "auto"
	}
}
  • No labels