PVS写缓存容量设计和部署位置的考虑

提示:这篇文章是本人在2011年11月5日有感而写的一篇电子邮件,由于其中的内容会在即将发表的一篇新博文被引用,故从新贴于此处。因为是近三年前的内容,技术也在不断进步,其中的部份内容已经再也不适合于如今,仅做了解技术发展之用。数据库


Citrix Blog常常会有一些Blog写的颇有深度,适合于高手;也有一些Blog善于概括,适合经验总结。今天看到一篇博客就属于后者,讲解PVS写缓存的容量大小设计和部署位置的考虑,供你们参考。缓存

PVS WriteCache Sizing & Considerations

做者更在写文章以后作了一个问卷调查,实际调查PVS的用户都是如何配置写缓存的:

PVSWrite Cache Sizing & Considerations – Follow Up

 

咱们摘要一些第一篇博客的精要:服务器

一:部署位置并发

  1. 写缓存的部署地点能够有ide

  • Cache on ProvisioningServerui

  • Cache on Target Device RAMthis

  • Cache on Target Device HardDrivespa

  1. 把写缓存设置在target side设计

    好处3d

    1. it keeps the write “close”to the target

    2. minimizes the load on theProvisioning Servers

    3. this disk can also be usedfor data, which needs to be persistent

缺点

    1. it requires more resourceson the target side

       

  1. 做者的倾向:

    Personally I prefer using a target side hard disk for storingthe write cache for virtual desktops and XenApps.

 

二:本地磁盘

  1. 本地磁盘和共享存储部署写缓存的优缺点分析:

Option 1 – write cache disk on sharedstorage

Pro:

  • High level of performance(typically)

  • Easy to scale

  • Central monitoring andmanagement

  • Virtual targets can bemoved between hypervisor hosts for load balancing and/ or management reasons

    Con:

  • Complexity

  • Cost

  • Available disk space onhypervisor hosts is wasted

     

    Option 2 – write cache disk on localdisk

    Pro:

  • Cheap (compared to sharedstorage)

  • Low complexity

    Con:

  • Can be a performancebottleneck / hard to scale

  • Virtual targets are “tied”to a hypervisor host

  • Hypervisor hosts must havelocal drives

     

    并无这样一个尚方宝剑来告诉你哪个是最好的,用户的实际选择是各自不一样的。

     

  1. 做者的观点

Personally I prefer to use local disks for provisioned XenAppservers whenever possible from an performance and management point of view.

刀片上的硬盘是不合适的,由于刀片通常就只有两块硬盘,没法知足虚拟桌面的并发需求。

 

三:磁盘大小

  1. 估算写缓存的大小是不可能的,由于这很大程度上取决于用户的行为和应用程序的工做模式。

    1. 例如用户拷贝大量文件到写缓存中;

    2. 应用程序缓存大量文件,例如数据库文件;

  2. 理论上写缓存不能大于vDisk的大小,固然,99.99999%的状况下这种状况不会发生;

  3. 如何减少写缓存的大小,提升读写效率

    1. 文件夹重定向:Keep the user profile small by redirecting profile folders suchas Desktop, My Documents, Application Data and so on.

    2. 使用App-V共享缓存或者是最新的CitrixApplication Streaming,后者如今具备VHD Mount feature (similarto App-V Shared Cache),不会再本地构建streaming cache

  4. 重启设备后在本地硬盘上永久保存的文件

    1. Windows Pagefile..

    2. Windows Event Log.

    3. Citrix related logs.

    4. Anti-Virus pattern.

    5. App-V / Application Streaming Cache in case a shared cacheconcept cannot be used.

    6. EdgeSight DB.

       

      4、本地磁盘

      当把写缓存和其余items重定向到target的本地永久磁盘后咱们须要考虑 两件事情:

  5. 永久性

    1. 必须记住把文件写在永久磁盘上违背了PVS中央管理的初衷,如何管理或者是删除这些文件是咱们须要考虑的问题;

    2. 磁盘驱动器的大小。若是本地盘的容量不够支撑写缓存,若是不够的话写缓存就会写到PVS服务器上

  6. 举例说明

假设有一个XenApp服务器有50个并发用户,每一个用户有20M的用户Profile,每一个用户也都建立了50M的工做环境(例如临时文件),计算结果:

1.0GB user profiles (50 x 20MB)

2.5GB user workspace (50 x 50MB)

1.0GB system workspace (assumed, different for everyenvironment)

 

= 4.5GB write cache file

 

4.5GB write cache file

4.0GB Pagefile (check out KB889654 / KB2021748)

0.1GB Windows Event Logs

0.1GB Citrix Logs

0.3GB EdgeSight

1.0GB other

4.0GB Dedicated Dump File (see UPDATE section below)

2.0GB buffer (some room to grow)

 

= 16 GB local disk size required per XenApp target

 

5、调查结果

 

1.0GB other

4.0GB Dedicated Dump File (see UPDATE section below)

2.0GB buffer (some room to grow)

 

= 16 GB local disk size required per XenApp target

 

5、调查结果

 

wKioL1POEUyD4LxEAADV5UahFfM931.jpg

wKiom1POEDKypDw7AADXF5u3UpA384.jpg

wKioL1POEU3jVKtPAAFumDbtYCY102.jpg

wKiom1POEDPjr_pKAADU7_5yeFY715.jpg

wKiom1POEDOA-u70AADMOXVgU5g265.jpg

wKioL1POEU7RTjcqAAG5J8-DmzY998.jpg

wKioL1POEU_xCJBZAAFnQYn5W54522.jpg

wKiom1POEDWgCwmTAACwviwFozU504.jpg

相关文章
相关标签/搜索