PowerShell script exchange
Post Reply
darecki
Novice
Posts: 8
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Proxy affinity in Community Edition

Post by darecki » Aug 06, 2019 11:02 am

Hi Everyone,

I am zipping VMs from Vcenter (6.7) happily running ps script from windows scheduler. As now I need to dump stuff in two locations matching source with storage, I introduced one proxy per location. Now there is another issue - Veeam takes proxy randomly causing bidirectional WAN transfer for local copy. In full version proxy can have affinity set, however, there is no such gui option in community version. Despite having gateway bound to CIFS storage Veeam sends data all over the world.

My question is:
- Is it possible to set affinity without gui, say by script?
- or is it possible to kick veeamzip job from script but via particular proxy?

Cheers,

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

Re: Proxy affinity in Community Edition

Post by veremin » Aug 06, 2019 5:11 pm

Are you using VeeamZIP job or backup job? The later allows setting particular proxy.

As to proxy affinity rules, these are available starting from Enteprise edition.

Thanks!

darecki
Novice
Posts: 8
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Re: Proxy affinity in Community Edition

Post by darecki » Aug 07, 2019 12:25 am

I am using ps to query vcenter by tag and then run loop over to kick every VM as separate zip job with delayed execution. Once script completes veeam has long list of zip jobs and does a few at time (set by limits). Works well if I leave one proxy online otherwise it comes to giant nonsense sending via WAN twice the same traffic. As you said there will be no affinity - is there an option to extend api call to specify proxy to execute zip job or any call to turn on/off proxy from ps?

Regards,

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

Re: Proxy affinity in Community Edition

Post by veremin » Aug 07, 2019 12:39 pm

Just out of curiosity - how many VMs you're protecting?

In your case - the best option will be to disable proxy via Disable-VBRViProxy cmdlet.

Thanks!

darecki
Novice
Posts: 8
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Re: Proxy affinity in Community Edition

Post by darecki » Aug 08, 2019 1:08 am

I have 90 VMs distributed on 10 esxis. Thanks for the above.

Got one more question - when veeam decides which proxy use? At the time the job is spooled or starts execution?

To give it some context:
If I run script like:
- disable proxy A
- spool everything from location B
- enable proxy A
- disable proxy B
- spool everything from location A

Will it stick to local proxy? Or it has to be disable/spool/wait till completed then enable+disable/spool ?

darecki
Novice
Posts: 8
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Re: Proxy affinity in Community Edition

Post by darecki » Aug 08, 2019 10:03 am

OK, tested, it has to wait until first loop is complete then switch proxy and run the other.
Would be good to have option for Start-VBRZip which can specify proxy to run on.

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

Re: Proxy affinity in Community Edition

Post by veremin » Aug 08, 2019 6:41 pm

Correct, you should wait for the first loop to complete before switching the proxy.

As to your request, consider it noted.

Thanks!

darecki
Novice
Posts: 8
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Re: Proxy affinity in Community Edition

Post by darecki » Aug 09, 2019 7:03 am

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests