Monday, 30 May 2011

Gnome 3 - Stupid Power Options Fix

Upgraded to Fedora 15 and Gnome 3 everything is working well and the new interface is looking slick. The gnome guys have done a very good job and am very impressed. However I have come across on thing that, for a while, really pissed me off. They removed the ability to easily change the power options when you close the lid on your laptop. The default option is to suspend the computer. This isn't a problem for a lot of people, even if there is a bug on the dell M1330 laptop which causes a crash when starting from a suspended state. I digress, a lot of work has done into this and has already been discussed in detail.

However all the discussion did not cover my use case, which occurs on a daily basis:

  1. Play audio book.

  2. Run command to shutdown laptop after half an hour.

  3. close laptop lid turn off lights and go to sleep.

You can resolve this using the solution, provided by timlau, to use gsetting to manually set the power setting (He post links to a script to automatically set this using a zenity dialog).

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action “blank”
gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action “blank”

End Rant.

Tuesday, 17 May 2011

Adventures Into Web Farm Framework 2.0

I have been using the Web Farm Framework 2.0 to handle the load balancing and provision of the applications. Our web farm consists of four servers, 1 load balancer, 2 web servers and 1 database server. The installation was simple enough using the Web Platform Installer.

The web platform installer was used to install the Web Farm Framework 2.0 onto the load balancer. The guide "Setting up a Server Farm with the Web Farm Framework 2.0 for IIS 7" provides an easy walk through for getting your web farm setup. However once it has been setup there are a number of steps that still had to be configured to ensure the web farm worked correctly.

Before completing the following steps I ran into a an issue where the server would appear available for load balancing in the "Servers" view, but would be unavailable in the "Monitoring and Management" view. To resolve try the following steps.

1. Health Test Url

Make sure that the health test url has been set. The application request routing uses this to test whether a server should be used for load balancing.

2. Default App Pool Settings

Edit the advanced settings of the DefaultAppPool on the controlling server and set the recyling value for "Regular Time Interval (minutes)" to zero.

3. Set Primary and Secondary Servers to Response to Ping

Update the firewall settings on the Primary and Secondary servers to respond to ping.

These are thing steps that I followed to get it to work correctly, they might vary for you depending on your setup.