Skip to content

7. Configuration Reference

Leee Jeffries edited this page Oct 4, 2020 · 4 revisions
  • Citrix Farm Settings

    • These settings are configured to discover your session servers within the Citrix farm, only one type of discovery should be configured
      • citrixController - Citrix controller name or IP
      • machineDetection - The machine detection method - can be tag based, delivery group, machine catalog or prefix, options prefix, tag, dg, mc (Support for multiple tags, delivery groups or machine catalogs, split them with a comma)
      • machinePrefix - Machine name prefix to include Example - XDSH
      • machineDeliveryGroups - Machine delivery groups to target - add additional ones like this: "Delivery Group 1","Delivery Group 2"
      • machineCatalogs - Machine catalogs groups to target - add addtional ones like this: "Catalog 1","Catalog 2"
      • machineTags - Machines tags to target - add addtional ones like this: "Tag 1","Tag 2"
  • Machine Scaling

    • These setting configure the scripts scaling behaviour, how machines are scaled / shutdown and the number of machines.
      • outOfHoursMachines - How many machines should be powered on during the weekends
      • inHoursMachines - How many machines should be powered on during the day (InsideOfHours will take into account further machines)
      • holidayDays - List of dates classed as business holidays and should be considered Out-Of-Hours, Example - "24/10/20","25/10/20"
      • scaleOutsideOfHours - Scale outside of hours or not, default behaviour is to scale, Example - $true or $false
      • businessStartTime - Start time of the business, Example - 06:00
      • businessCloseTime - End time of the business, Example - 18:00
      • businessDays - Business days indicated by the three initial letters like this: "Mon","Tue","Wed"
      • additionalScaling - Specify to allow an additional scale window for more than a single machine scaling, for environments where mornings need more than single machine scaling this setting will startup the number of machine specified at each run.
      • additionalScaleStartTime - The start time for additional machine scaling, Example - 06:00
      • additionalScaleEndTime - The end time for additional machine scaling where scaling returns to single machines, Example - 08:00
      • additionalMachineScaleValue - Value for the amount of machines to scale each time scaling is required within this additional scale window, Example 5
      • restrcitiveScaleDown - When scaling down all machines will be shutdown to match your target scaling figure, this setting allows you to restrict the number of machines shutdown to avoid a large drop of machines being powered down all at once. Example - $true or $false
      • restrcitiveScaleDownFactor - Select the number of machines that should be scaled down at each shutdown window when restrictive scaling is enabled, Example - 5
      • machineScaling - Options are (Schedule, CPU, Memory, Index or Session)
      • farmCPUThreshhold - Farm CPU threshhold average ex: 90 = 90% CPU across the farm on average
      • farmMemoryThreshhold - Farm memory threshhold average ex: 90 = 90% memory used across the farm on average
      • farmIndexThreshhold - Farm Load Index threshhold average ex: 5000 = Load index of 5000 on average across the farm
      • farmSessionThreshhold - Farm Session threshhold average ex: 20 = An average of 20 users on each server
      • exclusionTag - Tag in Studio to ensure a machine is discounted from calculations, this can be set to any value as long as it matches Studio
  • Session Management

    • This section covers how we manage user sessions when we are shutting down machines
      • forceUserLogoff - Force user sessions to be logged off out of hours or allow user sessions to drain, Example - $true or $false
      • respectDisconnected - Treat disconnected sessions as active sessions based when evaluating machine shutdown, Example - $true or $false
      • userLogoffFirstInterval - Initial logoff message interval if forcing user logoff in minutes
      • userLogoffFirstMessage - #Initial logoff message, used for the first warning a user will receive
      • userLogoffSecondInterval - Second logoff message interval if forcing user logoff in minutes
      • userLogoffSecondMessage - Second logoff message, used before the user is to be logged off
  • Dashboard Customisations

    • These areas are for customising the Dashboard options
      • instanceName - Name of the PowerScale instance, used in the Dashboard for the Title of the page and also the Header
      • dateFormat - The Date format for dashboard dates - examples: "ddMMyyyy", "MMddyyyy" - To support other geographics with different formats - see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-date?view=powershell-7
      • dashboardBackupTime - The time that the Dashboard should be backed up and new one created - Example 04:00
      • dashboardRetention - Specify the number of Dashboard files to be linked and retained
      • scriptRunInterval - How often the script runs, used to find a window of time to backup the dashboard files
  • Performance Monitoring

    • This section allows you to specify specific settings to allow the Dashboard to collect performance monitoring data on your farm
      • performanceThreadsMax - Maximum number of symaltaneous threads used for performance monitoring and gathering performance information from multiple machines
      • performanceScaling - Performance scaling to be turned on or off Example, $true or $false
      • $authServiceAccount - Authentication Service Account Name - must include UPN or domain\username
      • $authServicePassword - Authentication Service Account Password, this value is encrypted on the configuration creation and then can be removed from the configuration creation file
  • Logging Behaviour

    • LogNumberOfDays - Days to rotate the logs before overwriting
    • logLocation - Log file location relative to the script folder Example, "Logs\PowerScale.log"
  • Testing

    • Turn this setting on to ensure that all farm actions are just simulated and not performed, great for running in prod environments and evaluating the log file to confirm expected behaviour.
    • $testingOnly - All actions will only be simulated and not performed, Example - $true or $false
  • Email

    • This section allows you to configure an email to be sent if a serious error occurs in the script
      • smtpServer - SMTP server address
      • smtpToAddress - Email address to send to
      • smtpFromAddress - Email address mails will come from
      • smtpSubject - Mail Subject (will be appended with Error if there is an error)

Clone this wiki locally