Open MatsBEkman opened 9 months ago
Performance performance problems when using download from powershell script
$ProgressPreference = 'SilentlyContinue' needs to be added before any Invoke-WebRequest @WebRequestSplat Used for downloads from a prepared link
In our environment we went from doing restore 14 hours to 20 min for a large file just by adding this to the scripts
Scripts that we know using this are: Start-RubrikDownload.ps1 Start-RubrikVMDownload.ps1
Original script in both cases above have at the end
if (Test-PowerShellSix) { $WebRequestSplat.SkipCertificateCheck = $true Invoke-WebRequest @WebRequestSplat } else { Invoke-WebRequest @WebRequestSplat }
Changing them to
if (Test-PowerShellSix) { $WebRequestSplat.SkipCertificateCheck = $true $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest @WebRequestSplat } else { $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest @WebRequestSplat }
Increases performance by a factor of at least 40
Change the following scripts: Start-RubrikDownload.ps1 Start-RubrikVMDownload.ps1
No response
Is your feature request related to a problem? Please describe.
Performance performance problems when using download from powershell script
$ProgressPreference = 'SilentlyContinue' needs to be added before any Invoke-WebRequest @WebRequestSplat Used for downloads from a prepared link
In our environment we went from doing restore 14 hours to 20 min for a large file just by adding this to the scripts
Scripts that we know using this are: Start-RubrikDownload.ps1 Start-RubrikVMDownload.ps1
Original script in both cases above have at the end
Changing them to
Increases performance by a factor of at least 40
Describe the solution you'd like
Change the following scripts: Start-RubrikDownload.ps1 Start-RubrikVMDownload.ps1
Original script in both cases above have at the end
Changing them to
Increases performance by a factor of at least 40
Describe alternatives you've considered
No response
Additional context
No response