by luhn · 6y ago · 0 comments
Cattle is a threshold, but when the same problem keeps coming up it's time to call the vet. http://rachelbythebay.com/w/ has many good examples of this, some submitted and voted up here.
Cattle is a good philosophy but it takes a huge amount of work to approach perfection.
Everybody was embarassed because no monitoring caught it, but the VP of IT did by walking past the cage.
My dad had a book over almost all the cow names in Norway[1], per 1988. As a kid I found it rather fun to just flip through it and read some names, often wondering how they came up with them.
However since then it seems the tradition of naming cattle has dropped[2] to less than 30%.
[1]: "Gullhorn og dei andre : kunamn i Noreg" https://urn.nb.no/URN:NBN:no-nb_digibok_2010111708049
[2]: https://www.nrk.no/nordland/kyrne-far-ikke-lenger-navn-1.835...
I really hope the video is edited to strongly resemble this scene: https://www.youtube.com/watch?v=N9wsjroVlu8
We had a customer with regularly failing tape backups. CRC errors, verify pass failures, even failed writes, and so forth.
We replaced the tapes with new ones. Same issues.
We replaced the tape drive with a new one. Still the same problems.
We replaced the internal ribbon cable and the SCSI controller. No luck.
Firmware flashed everything. Didn't help.
New server chassis, wiped the OS and reinstalled everything from scratch. Changed the backup software just in case. The backups still failed!
Literally no part was the same. I went on site to start looking into things like the power cables, the UPS, or vibration issues. Basically were getting desperate and grasping at straws.
I was sitting down in an office, casually chatting with the IT guy while we were waiting for 5pm so we could reboot the server. He's leaning back in is office chair, and he casually picks up one of the tape cartridges and throws it up in the air and then catches it before it hits the ground. Just playing. Over and over.
I asked him if he does that a lot.
"Yes, it's fun!" he answered.
ಠ_ಠ
Finally I took all the parts out of the original computer and put them in a different chassis and it worked! Put them back in the old chassis and back to the old problem.
Eventually I noticed that there was an extra stand-off in the first computer case and it was shorting out the motherboard.
It was literally the chassis causing the problem.
Are you perhaps thinking of the printer execution scene from "Office Space"?
are you able to comment a bit further on why this machine was well known?
Eyy what would I search on moma to find this video?
I can confirm I've read the same thing though, years back.
Someone suggested just nuke it and bring it back up on a fresh instance. Problem was gone! Everything running smoothly again..
If CPU was bad, then that means that you kept running the instance on the same node. Quick was to test if it was "cattle" would have been to try on a different node
Additionally, if CPU was bad how was it not affecting other services?
The customer had set `net.core.rmem_default = 2147483647` on purpose. Which exposed a Kernel bug. The whole herd would be having the same issue.
The bug report resulted in a core fix, which is a better result than if the customer had fixed it themselves of course.
Even if there was a specialized server that needed such a large receive buffer, it doesn't make sense to set the system-wide default so high.
That might involve making a new VM from scratch, but it also might twiddling some settings, or other emergency changes.
Afterwards, I want to be able to restore the VM state, probably in a firewalled off environment, so I can debug exactly what was wrong.
Sometimes I'd like to do it to a set of VM's - for example, if there is some DNS wierdness, I might want to snapshot an application server and a DNS server.
So far, no cloud provider seems to offer functionality to make that easy, which is a bit disappointing.
And even if you could somehow bisect every single configuration change in your configuration management, there's the added complexity of how many configuration changes are actually needed to test if the problem is still present. In this case it would probably be fairly easy because DNS is such a core "feature", but if this is something more application-level, you're really going to be lost.
Servers as cattle can cover a variety of sins.
It's often a useful exercise to dig into the root cause - a lot of times the problem you're seeing is just the tip of the iceberg.
I'm stealing this.
The Phoenix Project: https://www.amazon.com/Phoenix-Project-DevOps-Helping-Busine...
Its related Dev Ops Handbook: https://www.amazon.com/DevOps-Handbook-World-Class-Reliabili...
Of course, anything necessary to get your production box producing, but a well-engineered server is worth the debugging time.