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

Proxy affinity in Community Edition

Post by darecki »

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: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Proxy affinity in Community Edition

Post by veremin »

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
Influencer
Posts: 13
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Re: Proxy affinity in Community Edition

Post by darecki »

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: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Proxy affinity in Community Edition

Post by veremin »

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
Influencer
Posts: 13
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Re: Proxy affinity in Community Edition

Post by darecki »

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
Influencer
Posts: 13
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Re: Proxy affinity in Community Edition

Post by darecki »

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: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Proxy affinity in Community Edition

Post by veremin »

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

As to your request, consider it noted.

Thanks!
darecki
Influencer
Posts: 13
Liked: never
Joined: Jul 20, 2018 5:15 am
Full Name: Darek Margas
Contact:

Re: Proxy affinity in Community Edition

Post by darecki »

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests