PowerShell script exchange
Post Reply
kjo@deif.com
Influencer
Posts: 13
Liked: 1 time
Joined: Feb 21, 2019 4:00 pm
Full Name: Kim Johansen
Contact:

How can i limit concurrent tasks of a Hyper-V host?

Post by kjo@deif.com »

Like the title says, how can i limit concurrent tasks of a Hyper-V host with powershell?

I have not been able to find a command to do this.

Thanks in advance. :)

DGrinev
Expert
Posts: 1943
Liked: 248 times
Joined: Dec 01, 2016 3:49 pm
Full Name: Dmitry Grinev
Location: St.Petersburg
Contact:

Re: How can i limit concurrent tasks of a Hyper-V host?

Post by DGrinev »

Hi Kim,

Have you read the article Set-VBRBackupRepository in the PowerShell Reference guide?
Another one for the Hyper-V proxy is here where you can set MaxTasks.

That's all I could find related to the topic.

Thanks!

veremin
Product Manager
Posts: 17777
Liked: 1625 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How can i limit concurrent tasks of a Hyper-V host?

Post by veremin »

If you post a screenshot or location of the UI setting you're talking about, we will be able to tell you the name of suitable PS cmdlet. Thanks!

kjo@deif.com
Influencer
Posts: 13
Liked: 1 time
Joined: Feb 21, 2019 4:00 pm
Full Name: Kim Johansen
Contact:

Re: How can i limit concurrent tasks of a Hyper-V host?

Post by kjo@deif.com »

Hi veremin and DGrinev

Sorry for not replying sooner, work happened. :)

You can find the setting in: BACKUP INFRASTUCTURE -> Managed Servers -> Microsoft Hyper-V -> Right-click on a Hyper-V Server -> Properties -> Apply -> Max Tasks.

This is what I'm looking for (instead of New it says Edit in the top):
Image

Add-VBRHvProxy has MaxTasks, but it is used when adding a Hyper-V Proxy. What I want is something like a Set-VBRHvProxy for modifying existing Hyper-V, but it doesn't appear to exist.

chris.arceneaux
Veeam Software
Posts: 240
Liked: 120 times
Joined: Jun 24, 2019 1:39 pm
Full Name: Chris Arceneaux
Location: Kentucky, USA
Contact:

Re: How can i limit concurrent tasks of a Hyper-V host?

Post by chris.arceneaux » 1 person likes this post

Hi Kim,

The code below will allow you to update an Off-Host proxy configuration.

Code: Select all

$proxy = Get-VBRHvProxy -Name '10.0.2.110'
$options = $proxy.Options
$options.MaxTasksCount = 2
$proxy.SetOptions($options)
If you're looking to update an On-Host proxy configuration, the below code will work on both types of proxies. Note that an undocumented function is used. Please use at your own risk as this is subject to change in the future.

Code: Select all

$HvProxies = [Veeam.Backup.Core.CHvProxy]::GetAll()
$proxy = $HvProxies | Where-Object {$_.Name -eq '10.0.2.110'}
$options = $proxy.Options
$options.MaxTasksCount = 2
$proxy.SetOptions($options)

oleg.feoktistov
Veeam Software
Posts: 437
Liked: 136 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How can i limit concurrent tasks of a Hyper-V host?

Post by oleg.feoktistov » 1 person likes this post

Hi Kim,

Adding to what Chris wrote - I also documented your comments as a feature request:
1. Set-VBRHvHost cmdlet.
2. -MaxTasks attribute for Add-VBRHvHost and Set-VBRHvHost (on-host backup proxy configuration).
3. Set-VBRHvProxy cmdlet (off-host backup proxy configuration).

Thanks!
Oleg

kjo@deif.com
Influencer
Posts: 13
Liked: 1 time
Joined: Feb 21, 2019 4:00 pm
Full Name: Kim Johansen
Contact:

Re: How can i limit concurrent tasks of a Hyper-V host?

Post by kjo@deif.com »

Thanks!

InfernalX64
Lurker
Posts: 1
Liked: never
Joined: Jul 01, 2020 2:18 pm
Full Name: Justin
Contact:

Re: How can i limit concurrent tasks of a Hyper-V host?

Post by InfernalX64 »

kjo@deif.com wrote:
Feb 03, 2020 11:35 am
Hi veremin and DGrinev

Sorry for not replying sooner, work happened. :)

You can find the setting in: BACKUP INFRASTUCTURE -> Managed Servers -> Microsoft Hyper-V -> Right-click on a Hyper-V Server -> Properties -> Apply -> Max Tasks.

This is what I'm looking for (instead of New it says Edit in the top):
Image

Add-VBRHvProxy has MaxTasks, but it is used when adding a Hyper-V Proxy. What I want is something like a Set-VBRHvProxy for modifying existing Hyper-V, but it doesn't appear to exist.
So glad I found this!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests