• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  •  Sign In
The Citrix Blog
Personal Blog
Ruiguo Yang
Related Tags
posted by Ruiguo Yang

Update: 

The utility has been released to CDN. Here is the link

----

Hi my name is Ray Yang. I am a senior technical business development manager at Citrix. The new official Citrix blog site displays my name as Ruiguo Yang. But most people at Citrix refer me simply as Ray Yang. That was the name I used for the old community blog.

I haven't posted anything new recently because I've been busy working on an exciting new project called "Citrix Power Smart".

So what's "Citrix Power Smart"?

Nowadays, server power consumption and associated cooling cost have been a hot issue. Many people in Citrix and Citrix customers are asking what Citrix can do to help addressing this issue.

During a discussion with some members of the CTO Office team, a small group of us conceived the idea of powering off idle presentation server during off peak hours.  Here is our thought process.

Just imagine you have 10 presentation servers.  During the business hours they are fully utilized. However at nights or on weekends hardly anyone connects to them. These servers however still consume power needlessly during such "off business hours".  Simply powering off such servers during "off business hours" can save you up to 30-50% of your presentation server farm power consumption based on our rough estimate.  It sounds easy. But why haven't we found many people doing so? Many of them do want to save money and are environmentally conscious. We think one of the reasons is that it has to be made easy and reliably before such practice is widely adopted. Can you imagine the following scene?

A presentation server administrator stays late every night.

Wait for the last person to log off.

Shut down each idle server.

Get up early to power on all servers before everyone else comes to work.

It's a bit tough to do, isn't it?

Well, such repetitive work is best left for computers. And they can be programmed to do it reliably!

In fact, we realized that the existing presentation server and the underling server platforms have the necessary ingredients already. The existing Presentation Server SDK provides the ability to see what user sessions are running on a given presentation server. There are existing standards such as IPMI and infrastructure such as Windows Remote Management available to power on/off servers reliably. What's missing is a small piece of software to tie them together.

But wait a minute. What if some poor fellow do have to check emails or get some work done during the "off business hours"? You can leave some Presentation Servers running to serve them. However without additional work, the default Presentation Server load balancer will typically distribute the load evenly across all the servers preventing many servers to be shut down. To give you an example, say you have 10 servers in your farm. Each server is capable of supporting 50 concurrent user sessions.  Based on historical data, you expect at most 30 concurrent user sessions will be needed during "off business hours". So I only need to keep one server running after business hour then. But wait. You have set up your presentation servers to balance user load evenly across your servers. These 30 user sessions will be spread across all 10 servers during "off business hours" preventing you from shutting them down. After all you don't want to lose your job because you disconnect your CEO's session when he is checking an important email at home.

So how can we improve our simple algorithm? Well, it turns out that Presentation Server has a "scheduling rule" for all the currently supported versions. You can define the time periods when certain servers are available. Perfect, we thought. If we add a simple scheduling rule, to make sure the servers we want to shut down aren't going to accept new connections in "off business hours", chances are much greater that these servers will have zero active sessions as people log off.

"Sounds great and simple. We have App Delivery Expo coming up next month. It's going to be a great talking point. Can you have it done, like tomorrow?" Marketing guys asked.

"Well, we like it but it is likely going to take XXX man weeks to go through the release cycle. And we are fully booked" answered development team.

Finally, the technical folks in the business development group volunteered to deliver the first version via Citrix Developer Network with forum support. Because of my developer background, I volunteered to lead the project. We volunteered because we love doing something good for the environment, sooner than later. And we believe once we showed the leadership and initiative, the community (users and partners) will help us get there even if the initial functionality is limited. And it is easier to convince the product team to include such features in the future releases once we have positive feedbacks from users. Personally it is gratifying to be able to contribute to something I believe in while getting paid 

Thus "Citrix Power Smart for Presentation Server" project is born.

At this year's "App Delivery Expo" (AKA IForum), we announced "Power Smart" initiative. Here is the link to the press release. If this project is successful, we may bring more exciting projects under this model. For example, a Power Smart Utility for Xen. Since then we've got many interests from partners and customers. I may be able to share some more information on that subject later.

We know Presentation Server very well. But we are not the experts in controlling the physical servers such as powering on/off servers. Luckily we found some like-minded folks at one of our great partners HP to help us. HP's development team is busy too. But they gratefully provided advices and test equipments to allow us deliver a solution that will work with HP servers. And they happily agreed to do joint marketing with us. It's been a pleasure working with the HP team involved with this project so far.

I've been itching to share more information with Citrix community about this project. But I felt I had to get the utility working and release it on schedule first.  I am still running some last minutes testing and getting feedbacks from selected beta users.  It now looks promising that we will have the utility delivered to the community as a New Year gift from Citrix.

I will share more details with you as we make progress.

In the mean time, I'd love to hear from you, good or bad. If you prefer, you can also send an email to me at Ray.Yang@citrix.com. I can't promise to respond to every email. But I will try. For this reason, I would encourage you to comment on my blog or soon to be setup user forum to exchange your ideas with the broader community. Let's do something good, together!

I hope you find this blog interesting. And if you do, please help us spread the message.

Thanks!

Labels

power power Delete
cdn cdn Delete
cooling cooling Delete
energy energy Delete
green green Delete
xenapp xenapp Delete
presentation server presentation_server Delete
power smart power_smart Delete
server management server_management Delete
power saving power_saving Delete
green it green_it Delete
green computing green_computing Delete
lang-eng lang-eng Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Dec 17, 2007

    Esteban Herrera says:

    Hi Ray,  My name is Esteban Herrera and I'm from Argentina, I've been teach...

    Hi Ray,
     My name is Esteban Herrera and I'm from Argentina, I've been teaching citrix products since 2003 and I'm a really FAN! Of Citrix.
    When I read about this on the net, the first word that comes out from my mouths was FINALY!!
    Let me tell you something I learn this year; between 06 and 07 I spend a few months working at IBM Argentina, I was assigned to a global account based in Milwaukee (there is a division at IBM called Global Delivery Center, basically outsourcing from Argentina to the world) but with offices and datacenters all over the world.
    This account has at least 70 citrix servers and 1800 other servers.
    This company doesn't work all the time and if they could shut down at least half of the servers or a little beat less, that could be a very good thing for all.
    I know that maybe sounds too much shut down 500 servers but if all the companies shut down servers in of peak ours this world can be much better.
    In the GDC (Global Delivery Center) are many other accounts with not only 50 citrix servers... those accounts have more than hundred of servers... I hope they can take advantage of this solution and other Hardware Vendors join Citrix and HP in this initiative.

    I have 4 DL380 G5 Servers with dual power only for tests, I will wait for this solution to test and recommend to my customers in all South America; and I hope to see more in the next summit 08.
    Congratulation to citrix, HP and both development teams for this healthy solution...
    Regards...
    Esteban Herrera
    Citrix Certified Instructor
    Licencias OnLine
    Buenos Aires - Argentina
    PS: sorry about my English


  2. Dec 18, 2007

    Anonymous says:

    Hi Ray! Terje Klem, from Norway here. This sounds like a very interesting i...

    Hi Ray!

    Terje Klem, from Norway here. This sounds like a very interesting initiative. We have several HP Blade server enclosures running Citrix servers, and I'm looking forward to test the PowerSmart solution. Actually Citrix Systems Nordic have already sent out a newsletter with a link to download the utility A little to soon it seems.... Hope the system will be availible soon.

    Best regards

    Terje Klem

  3. Dec 18, 2007

    Ruiguo Yang says:

    HI Esteban and Terje, It's encouraging to see your comments. Thanks! I am...

    HI Esteban and Terje,

    It's encouraging to see your comments. Thanks!

    I am preparing for the release now. It will be available really soon. It turns out that there is a quite a bit work to do to release a utility even after the development work is done. 

    Please keep an eye on my blog for new information. Subscribing to the RSS feed may be the easiest way to get latest updates. 

    Best regards, 

    Ray 

  4. Dec 20, 2007

    Anonymous says:

    Hi Ray First I must congratulate you on this great initiative and effort. I th...

    Hi Ray

    First I must congratulate you on this great initiative and effort. I think customers will love it.

    I have used the utility but here are my thoughts aout few things  which would help customers

    1. Group policy

          a. to decide off hours for a farm/CPS server etc.

          b. to schedule shutdowns

    2. Utility to have console/command line params which would give following features.

           a. Given a farm to connect, it would get all the servers in that farm and the number of connections on each Server. and form the list one could immediately select the Servers with 0 active online sessions and using a Shutdown button , one could shutdown the servers. This would give more flexibility to the admins.

          b. add a scheduler task to on/off the server.

    Best wishes,

    Manbinder

    1. Dec 21, 2007

      Ruiguo Yang says:

      Hi Manbinder, Thanks for your suggestons! I've added your sugges...

      Hi Manbinder,

      Thanks for your suggestons!

      I've added your suggestons to [the PowerSmart enhancement page]. I hope you don't mind. Please feel free to edit that page directly as you see fit.

      Regards,

      Ray

  5. Dec 21, 2007

    Anonymous says:

    Ray, I've blogged about the release of the PowerSmart utility on my site. Shaw...

    Ray,

    I've blogged about the release of the PowerSmart utility on my site.

    Shawn

    1. Dec 21, 2007

      Ruiguo Yang says:

      Hi Shawn, Thansk for letting us know your post. It looks great. I referenced yo...

      Hi Shawn,

      Thansk for letting us know your post. It looks great. I referenced your post and added some addtional comment at CDN blog site.

      Regards,

      Ray

  6. Jan 03, 2008

    Ruiguo Yang says:

    The utility has been released to CDN. Here is the [link]

    The utility has been released to CDN. Here is the [link]

  7. Mar 22, 2008

    Anonymous says:

    Hey Ray - PowerSmart is a great advance in power/energy efficiency.  We've...

    Hey Ray -

    PowerSmart is a great advance in power/energy efficiency.  We've taken the concept to the next level: we can consume monitoring data from Presentation server (or *any* other SW package) and using policy, power control just about *any* power controller (IPMI, DRAC, iLO, RSA, etc. etc.) after shutting-down the application.

    See http://www.cassatt.com/prod_standard.htm which is the product that provides the functionality

    ~ Ken 

Add Comment