by kkikta
7. December 2009 16:12
Remote switched PDU (Power Distribution Unit) outlets are a awesome thing to have in your data center environment especially if you have your equipment located off site. I first started using them around 2002 or 2003 and quickly made a case that almost all devices except the primary switches and routers should be on them. We were on a single homed internet connection so if the primary switch or router was down you couldn't get to the PDU anyway. In reality you should have redundant routers, switches and secondary uplink so that even those devices could be placed on remote reboot-able outlets.
Anyway since the beginning I have always used APC and never even thought about trying another vendor because well the APC's work, they work well and why fix something that's not broke. A few months back though I was in a bind and needed to get some remote reboot outlets fast. I couldn't find a local vendor that had APC in stock. One of the vendors (Altex) had some Tripp Lite units that are supposed compete with APC and they were quite a bit cheaper. I probably should have looked a bit more because when I origionally called the vendor they had no idea what a Remote Switched PDU outlet was. In fact the first model number they showed me was for a metered PDU (Metered PDU's generally have a LED display indicating the number of AMP's currently being pulled) which had no remote capabilities at all. In any case I figured Tripp Lite makes some decent stuff a lot of it kinda seems cheap compared to some other vendors but it should do the trick.
A few months have passed and I have had to use the remote reboot units a few times and while I have to say the Tripp Lite's do work as advertised, coming from using APC I have been vary disappointed. First off the web interface is sluggish, not very friendly. In additon to that last APC web interface looks better and was more functional that the current Tripp Lite interface. Next the Tripp lite box is 3+ times the depth of the APC which leads me to believe that its running some kind of semi embedded interface with a processor and CF (Compact Flash) card compared to the APC unit which uses a small little card (ive had to replace one before its amazing they fit all that functionality on that little embedded device.) For some reason that APC card is much faster though. Last on to the actual turning on and off of outlets, with the APC I have been on the phone with my friend Dave and had him reboot a box for me it the APC is able to cycle multiple outlets simultaneously while leaving others on and have it all happen in a second or less. The Tripp Lite's on the other hand are less friendly, you can either reboot all outlets on a PDU (in my option a worthless option) or you can do one at a time, which is a pain in the butt when you have servers with more than one power supply and don't have them on a Y power cord. To make matters worse the lag time from asking the Tripp Lite to turn off/on/cycle an outlet is more than a minute and so far it seems to only be able to take one action at a time; meaning you turn off outlet 1 wait for it to show off (minute and a half) then you can cycle outlet 2 to reboot the box (another minute and a half), wait for the box to show its running again and then turn outlet 1 back on. All in all when your dealing with stuff in Data center's those few extra minutes can be the difference between getting your but chewed out and being the savior.
In conclusion it would have been worth the extra money and waiting an extra day or two to get an APC shipped.
P.S. I forgot configuring the Tripp Lite's was a pain in the ass too some weird thing where if the network cable is not plugged in at boot the web interface doesn't start or some bull shit. It sucked.
10f3b4d0-f74a-4c1b-bc5b-7ae3eecedad2|0|.0
Tags:
General
by kkikta
4. December 2009 04:16
If your like me you have done some unit testing but your not crazy about writing tests for everything because well you could be writing functional code. I'm not gonna argue that testing isn't necessary or that you should do it all the time. Personally I have found it extremely useful especially when testing components that are not full fledged programs but find it to be a bit unnecessary in many situations.
So you have been using NUnit to do your tests and it works great but with Visual Studio 2010 (and i think 2008) Microsoft built in a testing framework that's available to users of Team System and Professional. So you figure if I'm converting my project then why not convert my tests as well. It makes sense especially since its a pain when I work with someone on a project and they don't know about NUnit and complain that they have to install it, add the reference and all that jazz. So I am putting together a list of steps to do the conversion below.
- Unload your test project from the solution.
- Open up your project file(.cspro) in notepad (or your text editor of choice.)
- Find the first section of xml containing the following tag <PropertyGroup>.
- Inside the <PropertyGroup> tag add the following:
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>- {3AC096D0-A1C2-E12C-1390-A8335801FDAB} means test project.
- {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} means 2008 solution.
- Reload the project.
- Change your reference from nunit.framework to Microsoft.VisualStudio.QualityTools.UnitTestFramework
- Add the following to you test classes
using Microsoft.VisualStudio.TestTools.UnitTesting; - Remove NUnit's names space from the classes (using NUnit.Framework;)
- Make the following changes to your class and method attributes:
- [TestFixture] becomes [TestClass]
- [TestFixtureSetUp] becomes [ClassInitialize]
- [TestFixtureTearDown] becomes [ClassCleanup]
- [SetUp] becomes [TestInitialize]
- [Test] becomes [TestMethod]
- [TearDown] becomes [TestCleanup]
- Close the solution and reopen it.
So far that seems to be about it. All in all a pretty easy change. If I find more I'll update. Also there is a tool that is supposed to do the conversion for you
here but I prefer to know whats happening vs. using a tool blindly.
34574d77-08d5-4ea3-87cc-d968d20f440e|0|.0
Tags:
.NET | General