Citrix Vertical Load-balancing

{:de}

Vertikales Loadbalancing aktivieren

  1. Virtual Apps and Desktops Remote PowerShell SDK installieren: https://www.citrix.com/downloads/citrix-cloud/product-software/xenapp-and-xendesktop-service.html
  1. Citrix PS-SDK Mogule laden und Citrix Cloud Login durchführen:
    • asnp citrix*
    • Get-XDAuthentication
  1. Aktuelle Site-Konfiguration prüfen („UseVerticalScalingForRdsLaunches“):
    • Get-Brokersite
  1. Vertikalen Lastausgleich aktivieren
    • Set-Brokersite -UseVerticalScalingForRdsLaunches $true

Get-Brokersite sollte dann so aussehen:

Damit nach dem Aktivieren auch was passiert muss man noch passende Policies bauen.

Ohne angepasste „Load Policies“ meldet ein „Citrix Server“ erst bei 250 gleichzeitigen Benutzern „Volllast / 10.000“.
Lastindex per PowerShell anzeigen:
Get-BrokerMachine | Select DNSName, LoadIndex

Natürlich haben CPU, RAM etc. auch Einfluss auf den Server Load, welcher ebenfalls per Citrix Richtlinien gesteuert werden kann.

{:}{:en}

How to enable vertical load balancing

  1. Download and install the ‚Virtual Apps and Desktops Remote PowerShell SDK‘: https://www.citrix.com/downloads/citrix-cloud/product-software/xenapp-and-xendesktop-service.html
  1. Load the Citrix Remote SDK Module and login to yout Citrix Cloud account:
    • asnp citrix*
    • Get-XDAuthentication
  1. Examine the current configuration („UseVerticalScalingForRdsLaunches“):
    • Get-Brokersite
  1. Enable vertical load balancing
    • Set-Brokersite -UseVerticalScalingForRdsLaunches $true
    • Check with Get-Brokersite that ‚UseVerticalScalingForRdsLaunches‘ is set to ‚true‘:

Now all new user connections get brokered to the same server VDA until this server reaches ‚maximum load‘.

By default the Citrix Policy is set to a maximum number of sessions of 250 per server. So be careful and change that to a proper value before activating vertical load balancing.


Get the load index via PowerShell:
Get-BrokerMachine | Select DNSName, LoadIndex

{:}

Citrix Cloud – UPDATE STATIC/DEDICATED MCS CATALOG VMs

Wie tauscht man bei einem statischen MCS Machinen-Katalog den zugewiesenen Snapshot aus um die VM neu zu deployen?

So:
# Citrix Cloud Logon
Get-XDAuthentication -CustomerId $customerID
# Change Image-Snapshot
Publish-ProvMasterVMImage -ProvisioningSchemeName $machineCatalogName -MasterImageVM $newImagePath -RunAsynchronously

Aktuell bin ich noch am entwickeln einer GUI.

Also stay tuned 🙂

Citrix Cloud – Citrix Virtual Apps and Desktops service Automatisierung

Aktuell arbeite ich an einigen
Citrix Virtual Apps and Desktops service Projekten. Was mir bei allen aufgefallen ist, dass man ohne das Citrix Remote PowerShell SDK nicht auskommt.

Aus diesem Grund werde ich nach und nach meine Erfahrungen mit dem Citrix Remote PowerShell SDK hier teilen.

Hier schon einmal der Link zur Citrix Doku: https://docs.citrix.com/en-us/citrix-virtual-apps-desktops-service/sdk-api.html

Stay tuned 🙂