Repo throttle limit - no effect

Hi,

I have to deal with a few POS that only got 2 MBit/s WAN connection speed.

Currently I am using iperf to get max and min speeds in JSON file:
“bits_per_second”: 1717259.1644205833

I am using Windows powershell module to control kopia.

function calcMaxUpload {
	$jsonFileUp = Get-ChildItem -Path "$($jsonFileBasePath)\$($env:COMPUTERNAME)\" -Filter *-up*.json | select -First 1
	$downloadBitsSec=[math]::Round(([int] $($($(Get-Content -Raw $jsonFileUp.Fullname | ConvertFrom-Json).end.sum_sent).bits_per_second)/8),0)
	$global:repoUploadMax = [math]::Round($downloadBitsSec - ($downloadBitsSec  * 0.2),0)
	$global:repoUploadMax 
}

downloadBitsSec - (downloadBitsSec * 0.2)

Unfortunately, windows still shows an uplink with 1,8 MBit/s - 1,9 MBit/s

Our lancom router are managed via our ISP. So I get a lot off warning tickets next morning, because router was unreachable.

The reason is high bandwidth load.

$kopiaArgsSnap = @(
"--config-file=$($confFile)"
"snapshot create"
"\$($env:computername)<snapDir>"
"--parallel=20"
)

As you can see snapshot create is currently set to 20 files parallel.

What am I missing? downloadBitsSec / 20 (parallel threads)?

I don’t get it.

I calculated:
UP: 125812 Byte = 1,006496 MBit
DOWN: 493627 = 3,949016 MBit

This is what cli output looks like:
Setting max download speed to 493.6 KB/s.
Setting max upload speed to 125.8 KB/s.

KiloByte? 125.8 KB/s = ~ 1 MBit/s ??

Bandwidth is still to high. I know, it’s simple math: * 8 or /8 or we multiplicate with 1000 or 1024.

Sorry for my question. I can really not handle it right now on my own. Any tips?

thx, Crusher

Hi,doesn’t work for me.

Ended up setting QoS on Windows:

function setKopiaQOS {

    New-NetQosPolicy -Name KOPIA -AppPathNameMatchCondition kopia.exe -ThrottleRateActionBitsPerSecond $global:repoUploadMax -PolicyStore ActiveStore

}

This works. Upload max is caculated after running iperf3. iperf3 exoprt results as JSON. With his Values is was possible to limit kopia.

kopia now seems to run faster. Zabbix doesn’t report “router lost connection” anymore.

NetQosPolicy seems to be a very good way.

greets Crusher