Mental Models204 cards · 12 fields

Mental Models/Systems

Redundancy

冗余

Keep a spare of anything vital, so one failure doesn't stop everything.

On April 13, 1970, Apollo 13 was on its way to the Moon when an oxygen tank in the service module exploded. Oxygen poured out, and the fuel cells, which ran on oxygen, could no longer supply power. The crew, Jim Lovell, Jack Swigert and Fred Haise, gave up the Moon landing and moved into the lunar module. It was only meant for landing on the Moon, but it had its own power and life-support equipment, and the explosion had not touched it. The ground team helped them save power and water and correct their course, and at the end the three moved back into the command module and returned to Earth.

The arithmetic of redundancy can be done in a single morning. You have a 7 a.m. flight, and the night before you set two alarms: one on your phone, one on the digital clock by the bed. Suppose each alarm has a 1% chance of not going off on a given day. With only one, you'd miss your flight one morning in a hundred. If the two alarms have nothing to do with each other, the chance that both fail is 1% of 1%, about one morning in ten thousand. But if both alarms are set on the same phone, they go silent together when the phone's battery dies, and the one-in-ten-thousand sum no longer holds.

Each independent pump multiplies the odds again
0%10%20%30%1 pump10%30%2 pumps1%9%3 pumps0.1%2.7%Chance of no waterEach fails 10%Each fails 30%
0%10%20%30%1 pump10%30%2 pumps1%9%3 pumps0.1%2.7%Chance of no waterEach fails 10%Each fails 30%

If each pump fails 10% of the time, one, two and three pumps give 10%, 1%, 0.1%; at 30% each, three still give 2.7%. Only if they don't share a power line.

Each extra independent backup multiplies the chance of a stoppage once more

A water pump has a 10% chance of breaking down in a given period. If it is your only supply, the chance the water stops is 10%. Add a second, independent pump, and the water stops only if both break at once. In the periods when the first pump breaks, the second still has only a 10% chance of breaking too, so both break together 1% of the time; with three pumps it is 0.1%. Call each pump's chance of breaking . The chance that pumps that have nothing to do with each other all break together is

The bigger is, the less one more pump saves. If each pump has a 30% chance of breaking, two break together 9% of the time, and three still do of the time, which is higher than with two pumps that fail 10% of the time each.

A margin is a part's backup for itself

A load-bearing beam is expected to carry 10 kilonewtons and can actually carry 20. Divide one by the other and the safety factor is 2. If wind pushes the load up to 15 kilonewtons, the beam is still short of its limit; a beam with a factor of only 1.1 can carry at most 11 kilonewtons, and the same wind overloads it. The bigger the factor, the better the beam copes with loads above what was expected and with material weaker than its rating, and the heavier and more expensive it is.

The backup and the main part must not fall to the same thing

If two pumps are on the same power line, they both stop when the line goes down. Then they are no longer independent, the 1% sum no longer applies, and the chance the water stops is at least the failure rate of that line. The backup pump also has to pump enough, be able to start, and have been test-run; otherwise you find out it won't turn only when its turn comes.

Backups pay off most where a failure costs a great deal and can't be fixed on the spot, as in flying and surgery. Where a failure costs little and recovery is quick, an extra set of equipment brings upkeep, switch-over steps and new points of failure, which can be more trouble than the failure itself. More backups also don't mean independent ones: two servers in the same machine room lose power together, and a synchronized backup copies an accidental deletion right along with everything else.

Design
When planning the water supply for a primary school in the mountains, decide which pipe the backup tank connects to and how many days without water its size should cover, so that if the main source fails, the classrooms and the canteen can hold out until it is fixed.
Act
The night before a hike, go through the single points of failure on the route. If there is only one path you can take, or only one person carrying the keys, find a stand-in that can take its place first.
Explore
Take a plan that relies on one person, one line or one supplier, and ask item by item which one, if it fell, would bring the whole thing down first. That pushes you to find a second route.
  1. Which part, which person, which source would stop the whole thing if it fell?
  2. Do the main and the backup share a power supply, a location, software or an upstream source? Go through the wiring diagrams, the contracts and the code dependencies.
  3. How much loss would one more backup save? Is that worth its upkeep and the extra switch-over steps?

Aerospace engineering

Main and backup fail together

In 1996 the European Ariane 5 rocket failed on its first flight. It carried two inertial reference systems, a main and a backup, running the same software. They met the same set of data and shut down one after the other because of the same software error. The backup couldn't take over, because it fell to the same error as the main one.

Personal finance

Six months of cushion

Your household's essential spending is 10,000 yuan a month, and you keep another 60,000 yuan in cash that you can take out at any time. Within one year you lose your job and the stock market drops sharply. That cash pays six months of spending. You pay the rent without selling a single share, and use the time to find a new job.

Teamwork

Only one person can do the schedule

You run a volunteer team that drives elderly people to the hospital on weekends, and only one volunteer knows how to use the schedule and the elderly people's contact details. The week he has a bad cold, nobody on the team dares touch the spreadsheet, and three elderly people wait for a car that never comes. Afterwards you have another member go over the schedule with him every month, and you try doing a week of scheduling yourself. The next time he takes time off, the schedule still gets made and the cars still go out.

RedundancyOpportunity CostThe real price of a choice is the best thing you gave up for it.The kitchen of a small noodle shop has a backup fridge that usually sits idle. At the end of the month the owner wants to sell it, and the money could buy a new coffee machine. Redundancy says keep it: if the main fridge breaks, a whole fridge of ingredients is ruined that day. Opportunity cost says this fridge ties up money and floor space that could be doing something else. Multiply what one breakdown of the main fridge costs by the number of times it might break in a year. If that is bigger than the money and space the backup ties up, keep it; if it is much smaller, sell it.RedundancyResilience and AntifragilityWithstanding a shock is resilience, and coming out of it stronger is antifragility.An online shop's payment channel goes down briefly, and after switching to the backup channel it doesn't lose a single order. Redundancy's job ends there: everything is the same after the outage as before. Resilience and antifragility go on to ask which step of the switch-over this outage showed to be slow, and whether it's worth fixing now, treating the next small outage as a drill.RedundancyDiversification and CorrelationMixing things that don't move together keeps you steady, but in a crash they often fall together.You have two suppliers, and both bring their goods in through the same port. Redundancy sees two contracts; diversification and correlation sees one shipping route: if the port closes, both run out of stock together. Count how many upstream sources the two share. The more they share, the more the backup should be replaced with a supplier that ships through a different port.

You're organizing an outdoor music festival, and the stage and sound system need 6 kilowatts in total at night. There are two generators on site, each with a maximum of 4 kilowatts, and normally they share the load at 3 kilowatts each. The organizers say that if either one stops partway through, the show won't be affected.

However many machines you use to make it up, how many more kilowatts of output need to be connected for that statement to just hold?

A small rural health center has a backup diesel generator, which the person on duty starts by hand when the power goes out. It hasn't been run in three years, and the diesel in its tank was put in last year. The center wants to guarantee that power comes back to the operating room within five minutes of an outage.

To be sure the five-minute goal can be met, what is missing now?

A mountaintop weather station sends its data back over two links, satellite and radio. Each has a 20% chance of going down in a given night, and the equipment for the two links is completely independent. But both links run off the same set of batteries at the station, which has a 5% chance of failing in a night, and when it fails, both links go down at once.

What is the chance that in one night no data gets back at all?