Inside the job i ensure that there is a connection like this.
Code: Select all
if ((Get-VBRServerSession) -eq $null)
{
Connect-VBRServer -Server <servername>
}
While this works 90% of the time easily with up to 20 Jobs in parallel, I often reach a point were the master server seems to refuse new connections:
"PowerShell environment initialization failed: Failed to connect to Veeam Backup & Replication server:
A connection attempt failed because the connected party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond"
Sometimes it also comes with this message:
"WARNING: Files are locked by another console, waiting for another console to finish update for 30 seconds"
Once I hit this status the master server is not responding at all and also connections with the Console (gui) are hanging. There is no abnormal CPU or memory usage visible. After 10-20 min. everything goes back to normal.
What can I do to prevent the master server from reaching this blocked status? Is there maybe a connection limit? Is there an option to work with connection pooling?