News for hackers. Stuff that matters.
Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by gaius on Monday December 21, 2009 @10:34AM (#1007922)
The names aren't random, tho'. The people using the machines every day know that (for example) all the database servers are named after planets, all the web servers are elements of the periodic table, all the development boxes are Muppets characters, etc. It costs nothing and makes your engineers happy. Plus it is intuitive, mistakes of the kind of being logged into the wrong box never happen.

I personally have very nearly experienced a disaster because the official naming convention had only one character difference between production and UAT...

Anyway, you've missed my point a bit. It doesn't matter much in the grand scheme of things what the boxes are called. It DOES matter than your company is employing people to impose pointless, trivial changes and policies on people with real work to do.

Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by kscaldef on Monday December 21, 2009 @01:11PM (#1008255)
> The people using the machines every day know that (for example) all the database servers are named after planets, all the web servers are elements of the periodic table

So, what type of machine is "mercury"?

I've never seen a theme-based naming scheme that didn't eventually run into ambiguities like this.

Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by houseabsolute on Monday December 21, 2009 @01:45PM (#1008324)
The way it should be is hybrid. For machine management purposes, each machine should be named for the datacenter and rack it's in. For example, dcaa11 is the eleventh machine in rack aa in datacenter dc. But there's also the issue of how to know which machine is running what. For that, we need to remember there can be more than one name for the same thing. The mysql machine should register itself with DNS when it starts up as 0.mysql.datacenter_name.prod.yourdomain.com. The second one should be 1.mysql, etc. Now you have a system where memnonic names and manageable names can coexist.
Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by donw on Monday December 21, 2009 @02:39PM (#1008439)
I don't know why this has been downmodded.

It's not hard to have DNS CNAME and TXT records for machines, so that you can have both a naming theme for certain classes of servers, as well as descriptive names that indicate function, location, etc.

The way I handle the problem is pretty simple. Functionality gets a subnet 'name' under the root, and there are TXT records and aliases within that to handle description. So, if you have a datacenter in Sacramento, your DB and web machines would be named and alised:

johnny.sac.mycorp.com => db1.sac.mycorp.com TXT Rack 1, Slot 1-4

devi.sac.mycorp.com => db2.sac.mycorp.com TXT Rack 1, Slot 5-8

spooky.sac.mycorp.com => db3.sac.mycorp.com TXT Rack 1, Slot 9-12

tenna.sac.mycorp.com => db4.sac.mycorp.com TXT Rack 1, Slot 13-16

zim.sac.mycorp.com => web1.sac.mycorp.com TXT Rack 2, Slot 1

gir.sac.mycorp.com => web2.sac.mycorp.com TXT Rack 2, Slot 2

For ambiguous names (like 'mercury' existing in both { planets } and { elements }), only one copy of that name can exist on the network. The people who work with that machine will know it's theirs, and for everybody else, there's CNAME and TXT records for when they're not sure.

Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by theBobMcCormick on Tuesday December 22, 2009 @04:06PM (#1010807)
Named for the rack it's in??? Oh my god that's stupid! So you seriously thing it's a good idea to have to rename the server if you shuffle around some data center space!?!?
Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by misterbwong on Monday December 21, 2009 @12:24PM (#1008176)
Honestly, the muppets/elements/planets works really well...until there's some turnover. Then the new sysadmin thinks the three stooges should be the db servers and capital cities should be the web servers. Then you end up having conversations like: "Hey, can you move some data up to larry, moe, and saturn? We're building on hydrogen, oxygen, and sacramento."

The confusion this causes for new hires and non-natives is real, albeit somewhat comical.

edit: ServerXX is no better-the names should give a clue to what function they perform (i.e. IRV-FNP01 = located in irvine, file and print server, 01 [oldest server])

Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by Poiesis on Monday December 21, 2009 @12:17PM (#1008162)
I much rather prefer managing names rather than codes/numbers. One major reason is that often in a standardized system, the least significant bits are on the right, and at least in Windows often a longer name will be truncated in a display. I don't need many characters to tell one dwarf from another, but to tell names of the type XXYYYNNNNN0-12 from XXYYYNNNNN0-13 is a huge pain sometimes.

The big win, though, for a more clinical naming is that shared context/training can be easier, and in a larger org the standardization of course makes things a lot easier to deal with. But of course, standardization can be done with the more whimsical names. And a lot of the time the naming scheme that is drawn up by committee takes just as long to learn as the more fun ones (mostly because they need to be abbreviated a bunch).

I suppose the one thing you can say for formal naming systems that is fairly inarguable is that once you understand the rules, you can look at an unfamiliar machine name and know instantly what it does. For machines named after fictional characters that's only true if you read/watch the same books/shows as the people doing the naming.

Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by rubberbunny on Monday December 21, 2009 @12:55PM (#1008233)
> The people using the machines every day know that (for example) all the database servers are named after planets, all the web servers are elements of the periodic table, all the development boxes are Muppets characters, etc.

I have nothing against naming things in such a manner (my computers at home are cartoon characters), but the problem is that it doesn't scale. The company I work for is under 10 years old, and while a bit too old to still be called a startup, we already have more print servers than there are planets, let alone DB, dev, QA, and web servers. The last couple start-ups I had also had hundreds of boxes, and I'd go insane if "db-35" was actually named "WASP-18b" and I had to remember a list of 50-ish planets.

Re:The Elves Leave Middle Earth – Sodas Are No Longer Free by rbanffy on Monday December 21, 2009 @07:27PM (#1009017)
"we already have more print servers than there are planets"

If you had a Pluto before the IAU changed its classification from planet to "ball of rock" you have a nice excuse to use whatever spherical lumps of rock you feel like.

It may not solve your problem forever, but, then, you can expand the naming to "potato-shaped lumps of stuff". That should give you some mileage.