Citrix, Licensing

Citrix NetScaler

NetScaler is available in either a hardware or software-based appliance. Hardware options include single and multi-tenant devices, in addition to FIPS compliant and high SSL appliances. Software-based options include virtual hypervisor-based and containerized microservice offerings. All appliances require a specific NetScaler software edition to be paired with the specific model being selected (with the exception of the containerized NetScaler CPX which is not available in different editions).

Netscaler

PLATFORMS;

NetScaler MPX

Hardware-based app delivery appliances

Performance: 500 Mbps–200 Gbps

BEST FOR

  • Managing web applications with multiple gigabits of traffic
  • Load balancing for small enterprises
  • Ultra high performance web application security
  • Flex tenancy

Netscaler SDX

Hardware-based appliances with virtualization to consolidate up to 115 independently-managed NetScaler instances

Performance: Up to 200 Gbps

BEST FOR

  • Consolidating multiple physical load balancers
  • Providing flexible multi-tenancy
  • Service providers requiring fully isolated tenants
  • Simplifying application rollouts from staging and dev environments

NetScaler VPX

Software-based virtual appliances that run on widely deployed hypervisors

Performance: 10 Mbps–100 Gbps

BEST FOR

  • Architecting hybrid cloud infrastructures
  • Cloud native application load balancing for public cloud environements
  • Replace hardware based load balancers
  • Utilizing NetScaler in any use case, anywhere (from development to testing to production environments).
  • Architecting scalable multi-tenant infrastructures
  • Attractive application delivery options for telco, enterprises and small businesses

NetScaler CPX

Docker containerized load balancer that can be supported on-premise and in multi-cloud environments

BEST FOR

  • Supporting containerized applications
  • Migrating to a microservices architecture
  • Providing developers and DevOps teams with load balancing early in the app development cycle

NetScaler Cloud

Full suite of NetScaler capabilities in a hybrid cloud environment for development, testing, and production delivery.

. NetScaler on AWS

SPECS

  • AWS Virtual Private Cloud
  • AWS Elastic Block Storage
  • EC2 instance with minimum of 2 Virtual Cores, 2 GB RAM
  • VPX 10 (10 Mbps) to VPX 5000 (5 Gbps)
  • Available via AWS Marketplace or with Bring Your Own License

. NetScaler on Microsoft Azure

SPECS

  • Requires A2 Standard instance with 2 cores and 3.5 GB RAM, or A3 Standard instance with 4 cores and 7 GB RAM
  • Available via Azure Marketplace with Bring Your Own License

. NetScaler on SoftLayer

NetScaler VPX and MPX models are available on SoftLayer.

LICENSING

Types of NetScaler Gateway Licenses

  • NetScaler Gateway Express License: The Express license is used with the NetScaler VPX and allows for up to five concurrent user connections by using Receiver or the NetScaler Gateway Plug-in. The Express license is available for the VPX appliance and expires after one year. Users can connect to either Basic or SmartAccess virtual servers.
  • NetScaler Gateway Platform License (ICA license): The Platform license allows unlimited user connections to published applications on XenApp or virtual desktops from XenDesktop. Connections using Citrix Receiver do not use a NetScaler Gateway Universal license. These connections only need the Platform license. The Platform license is delivered electronically with all new NetScaler Gateway orders, whether physical or virtual. If you already own an appliance covered by a warranty or maintenance agreement, you can obtain the Platform license from the Citrix web site.
  • NetScaler Gateway Universal License (CCU license): This license allows VPN connections to the network from the NetScaler Gateway Plug-in, a SmartAccess logon point, or Secure Hub, Secure Web, or Secure Mail.

    The Universal license limits the number of concurrent user sessions to the number of licenses you purchase. If you purchase 100 licenses, you can have 100 concurrent sessions at any time. When a user ends a session, that license is released for the next user. A user who logs on to NetScaler Gateway from more than one computer occupies a license for each session.

Advertisements
Citrix

How to Optimize XenDesktop Machines

I have taken this from Citrix website which is very useful;

To apply additional optimizations to the master virtual machine later, run the TargetOSOptimizer tool manually. On the master VDA, go to C:\Program Files\Citrix\PvsVm\TargetOSOptimizer, and run TargetOSOptimizer.exe

OPT1

OPT2

Specific Optimizations Performed by the Virtual Delivery Agent 7.x Installer

  • Disable Offline Files
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache]
    “Enabled”=dword:00000000
  • Disable Windows Autoupdate
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
    “NoAutoUpdate”=dword:00000001
    “AUOptions”=dword:00000001
    “ScheduledInstallDay”=dword:00000000
    “ScheduledInstallTime”=dword:00000003
  • Disable Defrag BootOptimizeFunction
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
    “Enable”=”N”
  • Disable Background Layout Service
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OptimalLayout]
    “EnableAutoLayout”=dword:00000000
  • Disable Last Access Timestamp
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
    “NtfsDisableLastAccessUpdate”=dword:00000001
  • Disable Hibernate (Windows Vista and Windows Server 2008 only)
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]              “Heuristics”=hex:06,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00
  • Disable Hibernate (Windows 7 only)
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
    “HibernateEnabled”=dword:00000000
  • Disable Hibernate (Windows 8 and Windows 2012 only)
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
    “HibernateEnabled”=dword:00000000
  • Reduce DedicatedDumpFile DumpFileSize to 2MB
    [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\CrashControl]
    “DumpFileSize”=dword:00000002
    “IgnorePagefileSize”=dword:00000001
  • Disable Indexing Service
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cisvc]
    “Start”=dword:00000004
  • Disable Move to Recycle Bin
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    “NoRecycleFiles”=dword:00000001
  • Reduce Event Log Size to 64k
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application]
    “MaxSize”=dword:00010000
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security]
    “MaxSize”=dword:00010000
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\System]
    “MaxSize”=dword:00010000
  • Reduce Internet Explorer Temp File
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content]
    “CacheLimit”=dword:00000400
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content]
    “CacheLimit”=dword:00000400
    [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content]
    “CacheLimit”=dword:00000400
    [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content]
    “CacheLimit”=dword:00000400
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths]
    “Paths”=dword:00000004
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path1]
    “CacheLimit”=dword:00000100
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path2]
    “CacheLimit”=dword:00000100
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path3]
    “CacheLimit”=dword:00000100
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Paths\path4]
    “CacheLimit”=dword:00000100
  • Disable Clear Page File at Shutdown
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]               “ClearPageFileAtShutdown”=dword:00000000
  • Disable Windows SuperFetch
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysMain]
    “Start”=dword:00000004
  •  Disable Windows Defender
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend]
    “Start”=dword:00000004
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    “Windows Defender”=hex(2):00
  • Disable Windows Search
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WSearch]
    “Start”=dword:00000004

Additional Optimizations Available When Running the Tool Manually

  • Disable Machine Account Password Changes
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
    “DisablePasswordChange”=dword:00000001

Specific Optimizations Performed by the Virtual Delivery Agent 5.x Installer

  • Disable Windows Autoupdate
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    WindowsUpdate\Auto Update]
    “AUOptions”=dword:00000001
    “ScheduledInstallDay”=dword:00000000
    “ScheduledInstallTime”=dword:00000003
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv]
    “Start”=dword:00000004
  • Disable Offline Files
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache]
    “Enabled”=dword:00000000
  • Disable Disk Defragmentation BootOptimizeFunction
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
    “Enable”=”N”
  • Disable Background Layout Service
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    OptimalLayout]
    “EnableAutoLayout”=dword:00000000
  • Disable System Restore (Windows XP and Windows Server 2003 Only)
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sr]
    “Start”=dword:00000004
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]
    “Start”=dword:0000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]
    “DisableSR”=dword:00000001
  • Disable Last Access Time Stamp
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
    “NtfsDisableLastAccessUpdate”=dword:00000001
  • Disable Hibernate
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
    Various keys and values are set according to the version of Windows detected.
  • Disable CrashDump
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
    “CrashDumpEnabled”=dword:00000000
    “LogEvent”=dword:00000000
    “SendAlert”=dword:00000000
  • Disable Indexing Service
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cisvc]
    “Start”=dword:00000004
  • Reduce Event Log File Size to 64 kb
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\
    Application]
    “MaxSize”=dword:00010000
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\
    Security]
    “MaxSize”=dword:00010000
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\
    System]
    “MaxSize”=dword:00010000
  • Reduce Internet Explorer Temporary File Cache
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content]
    “CacheLimit”=dword:00000400 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content]
    “CacheLimit”=dword:00000400 [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content]
    “CacheLimit”=dword:00000400
    [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content]
    “CacheLimit”=dword:00000400
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    Internet Settings\Cache\Paths]
    “Paths”=dword:00000004
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    Internet Settings\Cache\Paths\path1]
    “CacheLimit”=dword:00000100
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    Internet Settings\Cache\Paths\path2]
    “CacheLimit”=dword:00000100
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    Internet Settings\Cache\Paths\path3]
    “CacheLimit”=dword:00000100
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    Internet Settings\Cache\Paths\path4]
    “CacheLimit”=dword:00000100
  • Disable Clear Page File at Shutdown
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
    “ClearPageFileAtShutdown”=dword:00000000
  • Disable Superfetch (Windows Vista and Windows 7 Only)
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysMain]
    “Start”=dword:00000004
  • Disable Windows Defender (Windows Vista and Windows 7 Only)
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend]
    “Start”=dword:00000004
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    Run]
    “Windows Defender”=hex(2):00
  • Disable Windows Search (Windows Vista and Windows 7 Only)
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WSearch]
    “Start”=dword:00000004
  • Disable Scheduled Disk Defragmentation (Windows Vista and Windows 7 Only)
    Programmatic optimization.

Additional Optimizations Available When Running the Tool Manually

  • Disable Move to Recycle Bin (Windows XP)
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
    Explorer\BitBucket]
    “UseGlobalSettings”=dword:00000001
    “NukeOnDelete”=dword:00000001
  • Disable Move to Recycle Bin (Windows Vista and Windows 7)
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    “NoRecycleFiles”=dword:00000001
  • Disable Machine Account Password Changes
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\
    Parameters]
    “DisablePasswordChange”=dword:00000001
  • Disable UDP Checksum Offload (Only When a Broadcom NIC Is Detected)
    Programmatic optimization.
Citrix

Configuring the vDisk access mode in PVS

vDiskAccessMode

 

  • Standard Image – Select this mode if a vDisk is shared by multiple target devices (write-cache options enabled).
  • Private Image – Select this mode if a vDisk is only used by a single target device (read/write access is enabled).

accessMode

Standard Image mode

Standard Image mode allows multiple target devices to stream from a single vDisk image at the same time. This reduces the amount of vDisk management and reduces storage requirements.

When a vDisk is configured to use Standard Image mode, it is set to read-only mode. Each target device then builds a write cache to store any writes the operating system needs to make. There are several write-cache options available. Because the vDisk is read-only, each time a target device boots, it always boots from a ‘clean’ vDisk. If a machine becomes infected with a virus or spyware, the target device only needs to reboot the image.

When updates are made to a vDisk in Standard Image mode, changes against the base vDisk image are captured in a differencing disk file (.avhdx), resulting in a new version of the base image. Each new version remains directly associated with the base image. Versioning allows for the updates captured in the differencing disk to be staged (Maintenance, Test, Production) before those changes become available to Production devices. If issues are encountered with a version, that version can simply be reverted.

Although each target device uses the same vDisk, Provisioning Services personalizes the streamed image for each target device, providing the information needed to ensure the device is uniquely identifiable on the network. You can also specify additional personality settings for each device: you can store application-specific values in the database and retrieve the target device’s unique value as the device loads.

Private Image mode

A vDisk that is in Private Image mode closely models how a computer uses a regular hard drive. That is, only one target device can use a Private Image vDisk at a time.

The following illustrates Private Image vDisks (read/write) that are each assigned to a single production device, and a Standard Image vDisk (read-only) that is assigned to and shared by a collection of production devices. For Standard Image vDisks, write cache options include cache on server disk, on a device’s hard disk drive, or in the device’s RAM.

 

To configure the vDisk mode and any applicable write cache destination

Note: Only write cache destinations that are supported for Standard access mode appear enabled.
  1. On the Console, right-click on the vDisk for which you want to configure the vDisk access mode, then select vDisk Properties. The vDisk Properties dialog appears.
  2. Click on the General tab, then select the image mode (Standard or Private) that applies to this vDisk from the Access Mode drop-down list.
  3. If Standard image was selected, from the cache destination drop-down list, select the appropriate write cache destination.
  4. Click OK to exit the vDisk Properties dialog.

 

Citrix

Provisioning Services or Machine Creation Services (2016 Edition)

When you want to migrate from Citrix 6.5 to Citrix 7.x, you need to make some decisions and one of the most important one is to choose whether to go for PVS or MCS. I have done some searches and found a lot of articles but some of them are really good and based on the real experiences. Have a look at this : (when you are making decisions)

PVSvMCS

And this;

compare

From Barry Schiffer web site, he explains and puts things in a different perspective for anyone making this decision;

Let’s start with the first decision in the tree in which we ask the question about using a XenDesktop only, XenApp only or mixed platform. The reason for this is that, before XenDesktop 7, it wasn’t possible to do MCS for XenApp load. Since XenDesktop 7 it’s actually possible to use Machine Creation Services for XenApp.

IOPS

In the old days we were worried about boot and logoff storms because of the amount of IOPS this generated on our expensive shared storage systems. If so we would advice to use Provisioning Services because of better IOPS caching possibilities.

Lots has changed in the past few years but the IOPS load is pretty much still the same, yet the decision making process changed. The reason for this change is that we now have more knowledge about the amount of IOPS and vendors jumped in and created new solutions offering huge amounts of IOPS on central or local storage.
On the hypervisor level we are now able to do live storage migrations. This helps us when we need to perform management tasks and don’t have the time to wait for all of the users to close their sessions.

Thin Provisioning

For Machine Creation Services it’s highly recommended to use a storage solution that offers the ability to utilize thin provisioning. This way we only use as much data as we need for write caching. If we don’t utilize thin provisioning each target will use as much disk space as the configured base image.

Persistency

Another decision is the need for dedicated aka persistent virtual desktops. If we need persistency you were forced to use Machine Creation Services. The reason for this decision was based on the fact that Provisioning Services falls back to Server Side caching when the cache had to be persistent. This method of caching results in a crappy desktop performance.
Since the introduction of Citrix Provisioning Services 6 we are able to offer persistent caching on the local target hard disk, which pretty much solves this issue. We therefore are now able to utilize Provisioning Services and Machine Creation Services for persistent desktops.

Physical vs Virtual

When we have a demand for physical virtual desktops we still need Provisioning Services. Machine Creation Services integrates on the hypervisor storage layer and therefore can’t be used on a physical target. This is the simplest decision of them all!

Advanced Image Management

As a reader of my blog you should already know that I like automation therefore I would never update images but instead rollout a new image. This way I can retest my image deployment every once in a while . Not of lesser importance I can always go back to my deployment run books to see how a certain component was installed for troubleshooting purposes.

If you care about image versioning and do a lot of image updates Provisioning Services is your way to go. Provisioning Services gives you greater flexibility to work with image versions and updates. Not everyone agrees with me on this one so I have decided to keep this out of the decision tree for now.

Multiple image locations or multiple images

This section has been added after publishing the article because the decisions attracts some attention, mostly by the guys from Atlantis Computing which must mean this market space has their full attention:). When we look at the Provisioning Services (PVS) architecture we have a central image store, the PVS server, for the sake of keeping things simple I’m not going into where PVS gets the image from local, filer, DFS et cetera. Machine Creation Services (MCS) works on the storage layer and places the image on each datastore which is used for targets.
When I create a new image or update an image with PVS I just change the pointer for each target and I’m done. With MCS that’s different, MCS first creates a single imagefile from a VM snapshot and when finished copies that image to each datastore. This process takes up CPU, IO and network resources and can take up to an hour in one of my production platforms (SSD 10Gbit et cetera).
So imagine a VDI cluster with 12 hosts with locally presented storage, this could be SSD, FusionIO or just as easily Atlantis ILIO. This would mean we have, at least, 12 storage datastores. With PVS this all stays simple, PVS is the central image location. With MCS this would mean we copy the base image to 12 different datastores.
Aside from the multiple image locations think about what happens if you have more then one image. This is not uncommon in enterprises, an example could be a VDI image, an RDS image with Internet Explorer 10 and one with Internet Explorer 11. This would mean that for MCS we copy not one image to 12 datastores but three images to 12 datastores. Think about the time and resources going into maintaining those images.
My decision would therefore be to stick with Provisioning Services when you have more then a couple of datastores or images. 

Thanks Barry Schiffer, this is an awesome article.

 

Citrix

Citrix Provisioning Services PVS

Citrix Provisioning Services (PVS) allows you to have a single instance image management of your XenApp and/or XenDesktop VMs. A single image means you only have to update a single image which is then streamed to hundreds of desktops.

In a production environment, PVS consists of at least two PVS servers for High Availability. A disk image is taken from a reference computer which has been built up with all patches, applications etc installed and configured, and the vDisk image is imported into PVS. The imported vDisk image usually sits on locally attached storage on each PVS server. ‘Target device’ VMs are created without a C: drive and set to boot from network. The MAC addresses of the VMs are added to the PVS database so that when the VMs PXE boot the PVS server knows which vDisk to provide. The first time a vDisk is streamed to a target device the vDisk is cached in memory on the PVS server.

Since we are streaming a single vDisk to multiple computers, the vDisk must be read-only to avoid corruption. But Windows can’t run off a read-only disk, so thanks to Citrix  PVS to have a ‘write cache’ . There is also default location for the write cache, however it is very slow and not ideal under high availability. Attaching a small (10GB) disk to each VM for the write cache is a good approach – this disk can reside on local host storage, the SAN. When the PVS target device reboots, the write cache is cleared so each boot is a ‘first boot’. To ensure there is no data loss, use redirected folders and a good profile management system. Since PVS 7.1, Citrix introduced a new write cache option called ‘Cache in device RAM with overflow on hard disk’. The option takes a chunk of VM memory and uses it as a disk cache which provides a massive performance boost over other write cache options.

Let me go through Write Cache options that Citrix PVS offers;

Write Cache in Provisioning Services Server

In PVS, the term “write cache” is used to describe all the cache modes. The write cache includes data written by the target device. If data is written to the PVS server vDisk in a caching mode, the data is not written back to the base vDisk. Instead, it is written to a write cache file in one of the following locations:

  • Cache on device hard disk
  • Cache in device RAM
  • Cache on device RAM with overflow on hard disk
  • Cache on server

When the target device is booted, write cache information is checked to determine the presence of the cache file. If the cache file is not present, the data is then read from the original vDisk file.
All current versions of PVS have the option for distributing write cache. It is called Multiple Write Cache Paths. The multiple write cache paths (for a store) option provides the capability of distributing the write cache files across multiple physical media. This feature helps to improve I/O throughput for heavily loaded servers.
When a target device starts the server chooses one of the write cache paths from the list based on the MAC address of the client. The goal of selecting a path based on the MAC address is to get an even distribution of the clients across the available paths. The algorithm selects the same path for a given client each time that client is booted.
This functionality is needed to ensure that during a High Availability (HA) failover the new server would choose the same write cache for the client (otherwise it would not be able to find the write cache file and the client would hang). If the defined write cache path is not available to a server, the server falls back to the standard vDisk path.
It is not recommended for the Cache on the server to be used in production environments.

Cache on device Hard Disk

Requirements

  • Local HD in every device using the vDisk.
  • The local HD must contain Basic Volume pre-formatted with a Windows NTFS file system with at list 512MB of free space.

The cache on local HD is stored in a file on a secondary local hard drive of the device. It gets created as an invisible file in the root folder of the secondary local HD. The cache file size grows, as needed, but never gets larger than the original vDisk, and frequently not larger than the free space on the original vDisk. It is slower than RAM cache, but faster than Server cache and works in a HA environment.

Cache in device RAM

Requirement

  • Appropriate amount of physical memory on the machine.

The cache is stored in client RAM (memory). The maximum size of the cache is fixed by a setting in vDisk properties. All written data can be read from local RAM instead of going back to the server. RAM cache is faster than cache on server and works in a HA environment.
Note: If more different sectors are written than the size of the cache, the device stops.

Cache on device RAM with overflow on Hard Disk

Requirement

  • Provisioning Service 7.1 or later.
  • Windows 7, Windows Server 2008 R2 or later.
  • Local HD in every device using the vDisk.

When RAM is zero, the target device write cache is only written to the local disk. When RAM is not zero, the target device write cache is written to RAM first. When RAM is full, the least recently used block of data is written to the local Write Cache disk to accommodate newer data on RAM. The amount of RAM specified is the non-paged kernel memory that the target device consumes.

Cache on Server

Requirements

  • Enough space allocated to where the server cache will be stored.
Server cache is stored in a file on the server, or on a share, SAN, or other location. The file size grows, as needed, but never gets larger than the original vDisk, and frequently not larger than the free space on the original vDisk. It is slower than RAM cache because all reads/writes have to go to the server and be read from a file. The cache gets deleted when the device reboots, that is, on every boot the device reverts to the base image. Changes remain only during a single boot session. Server cache works in a HA environment if all server cache locations to resolve to the same physical storage location. This case type is not recommended for a production environment.
Citrix

Adding Licensing on your Citrix Environment

We have got a Lab environment in here, by default you get 30-day trials which is really not enough to go through everything and practice what you need. So you need to login to mycitrix.com (you might need to register or you can use your company’s account). Under you details on the left hand side go to > Previews/Betas – License Retrieval

Capture((9

On the right you will see any available licenses, if not you can scroll right down to request more which will give you additional licenses.

Captureiutre

Click on the Serial Number and you will get  a warning about your license server name which is case sensitive. Yes you need to right exactly the same letters appear in the name.

Capturehdfgd

Click on Continue,

Capturhdhse

Under Host ID you need to write your License server name and then you will be able to download and save your .lic file.

On your Citrix Studio > click on Licensing on the left …

Capturejhshfs

and on the right Click on Add Licenses

Capturenjnj

Browse where you saved your license file. That should give you 90-day Evaluation or if you have got proper license you can use this as well.

Captursfgghe

One more thing to check is the “Production Edition”, make sure it is right version you want to use and you can do this by going in to “Edit Production Edition” under Actions on the right hand side.