Why people don't automate sysadmin stuff
Yesterday's entry raises an obviousquestion: why don't people automate things ahead of time, before theyhave so many systems that they have to automate or die?
The simple answer is that it is easier for them not to automate thanit is for them to automate. But why is it that way?
There are at least two reasons:
- there is pretty much no standard way to automate things at thevarious levels, especially across different Unixes and platforms.This means that you have to build an automation
Passion
只差一點那就是我
https://appledaily.atnext.com/template/apple/art_main.cfm?iss_id=20080502&sec_id=4104&subsec_id=11867&art_id=11058726
那地點,亦是我從前回家的
Automation changes as systems grow
Over the time I've worked in system administration, I've observed acommon pattern that I will summarize this way:
As your system count grows, you wind up automating the automation.
Here is the levels that I've seen people (myself included) go through:
- managing systems by hand, one by one.
- using tools that let you run a command on all of your systems orclasses of your systems.
- automating things for clusters, so that you don't have to explicitlyrun commands on
無論人數
What the co_names attribute on Python code objects is
As a trap for the unwary, Python code objects have both a co_names and a co_varnames attribute. Since I just confused myself aboutwhich was what the other day , here is what the co_names one is.
Put simply, co_names is a tuple of names of globals and attributesthat are used by the function's code. For example, if you have ' a =self.bar() ' in the function, the ' bar ' will show up in co_
《海灘的一天》, 我所知道的二三事...
Why apt is always going to be faster than yum
One of the things that people report (to put it politely) when theyswitch between a Debian-derived distribution and Fedora is that apt isfaster than yum . This is indeed the case, and it is always going to bethe case, because yum is simply doing far more work than apt is.
(Whether or not the speed difference matters in practice is anotherdebate. It doesn't bother me, but then I use fairly fast and beefymachines.)
As I understand it, the different amount