PanelSimulator Academy

System Design and Integration, lesson 10 of 12

Designing for growth and failure

A design that exactly fits today's building is already too small, and a design that assumes nothing will break is already wrong. This lesson shows you how much spare capacity to leave and where, and how to ask of every part: what happens when this fails, and is that acceptable?

About 15 minutes. Read Choosing an architecture and Device and cable counts first.

Break a part and see what stops

Click the mains power, the server, the recorder, a switch or a controller to make it fail. Click it again to repair it. Then switch to the hardened design and break the same part.

powers the server, recorder and all three switches no battery memory card in eachmemory card in each spare switchon the shelf

working normallyworking in a reduced waynot working

The everyday picture

When you buy a child a winter coat, you buy it a size large. You know the child will grow, and a coat that fits perfectly in October is too small by March.

When you drive a long way, you carry a spare tire. You do not expect a puncture today. You simply know that one will come eventually, and you would like it to cost twenty minutes at the roadside and not a night in the car.

A good design does both. It leaves room to grow, and it decides in advance what each breakdown will cost.

Designing for growth

Almost every system grows. The customer adds a door after a theft, a camera after a complaint, a whole wing after a good year. Adding a device is cheap when there is somewhere to connect it. It is expensive when the cabinet is full, the power supply is at its limit and the conduit is packed solid.

Capacity left unused on purpose is called spare capacity. A common rule of thumb is 20 to 25 percent spare on anything that is hard to enlarge later. If the customer has told you about a planned expansion, design for that plan and then add the spare on top.

Leave spare inBecause adding it later meansTypical allowance
Switch ports and power budgetAnother switch, another uplink, perhaps another cabinetAbout a quarter of the ports and of the watts
Controller door ports and panel zonesAnother controller or expander, and more powerAt least one spare port for each controller
Power supply current and batteryA second supply and a second mains outletThe quarter already added in Power supplies and batteries, plus known growth
Recording storageShorter retention the day a camera is addedEmpty drive bays, or space sized for the planned cameras
Cabinet and wall spaceEquipment mounted wherever it fitsRoom for one more of the largest item
Conduit and cable pathsOpening finished ceilings and wallsA pull string in every conduit, and a spare conduit between floors
LicensesUsually nothing. Most can be bought when needed.Check that the software edition allows the count you may reach

Notice the last row. Spare capacity is worth paying for where growth is hard: things buried in walls, bolted in cabinets or sized once. It is not worth paying for where growth is a purchase order. And in every case, write the spare onto the drawings. Spare ports that nobody knows about are found only by accident.

Size a switch with room to grow

A network switch that powers cameras has two limits: its number of ports and its total power budget in watts. Either one can run out first. The lesson Power over Ethernet in the Networking course covers the budget in detail.

Ports and watts

Use the maximum power figure from each device's data sheet, not the typical one.

ports in use once the plan is built
ports to provide, with spare
power budget to provide, with spare
smallest common switch size

Designing for failure

Every part will fail one day. Drives wear out, power supplies age, somebody unplugs the wrong cable. You cannot prevent all of it. What you can do is decide, part by part, how much stops when it happens.

A part whose failure stops the whole system is called a single point of failure. In the basic design at the top, the core switch is one. So is the mains supply. Find them by doing on paper what the panel lets you do with a click: point at each part in the riser diagram and ask three questions.

  1. What stops working if this fails?
  2. How long until someone notices, and how long to repair?
  3. Can the customer live with that?

Only the customer can answer the third question, and the answer comes from the requirements. A shop may accept a day without recording. A hospital pharmacy will not accept an hour with an unlocked door.

The aim is not that nothing ever stops. The aim is graceful degradation: when a part fails, the system loses a little, not everything. The door controllers in the Access Control course are the model. Each one holds its own copy of the card list, so doors keep working when the server or the network is down.

Check yourself

In the basic design at the top, the server fails. What happens at the doors?

Four levels of protection

For each part, you can choose how much protection to buy. Think of a ladder. Each rung costs more than the one below and shortens the outage.

LevelWhat you doOutage when the part failsExample
1. Accept itNothing, on purpose, and tell the customerUntil a replacement is ordered and fitted: daysOne camera on a low-risk corridor
2. Spare on the shelfKeep a replacement on site, with its settings savedUntil a technician swaps it: hoursA spare switch, a spare controller, a spare power supply
3. Automatic fallbackLet a second, simpler mechanism carry onLittle or none, with reduced functionControllers deciding from memory, cameras recording to a memory card, a battery or UPS
4. RedundancyInstall two, so that either can do the whole jobNone that users noticeTwo recorders, two network paths, mirrored drives

A few of these deserve a sentence more.

  • Power. An uninterruptible power supply, or UPS, is a battery unit that carries the equipment plugged into it when the mains fail. Size it for the load and the hours the requirements ask for, using its data sheet.
  • Drives. Recorders can arrange their drives so that one can fail without losing recordings. The failed drive must then be replaced promptly, because the protection is gone until it is.
  • Backups. A backup of the server's database, kept somewhere other than the server, turns a dead server from a rebuild of every card and schedule into a restore. A backup that has never been restored as a test is only a hope.
  • Spreading the load. If two cameras cover the same entrance, connect them to different switches. One failure then dims the view and does not blind it.
  • Locks. Whether a door fails locked or unlocked was settled in Electric locks and Getting out. Check that every door's choice still makes sense when you imagine its controller dead.

Noticing the failure

Fallbacks have a hidden danger. They work so quietly that nobody knows the main part has died. The UPS carries the rack for an hour, and then everything stops at once. The recorder lost a drive in March, and the second one fails in June.

So every fallback needs an alert that reaches a person: mains failure, low battery, drive failure, camera offline, controller offline, recording stopped. Decide who receives each alert and what they are expected to do. Then test it at handover by pulling the plug.

Three examples

Simple: the ninth door

An office is fitted with eight controlled doors on two four-door controllers. Every port is used. A year later the customer asks for one more door, expecting a small price. It needs a third controller, a larger enclosure, a bigger power supply and a new network connection, and costs several times what the customer expected.

Had the designer left one spare port on each controller by using three controllers for eight doors, or a larger model, the ninth door would have been a reader, a lock and a cable.

Medium: the power cut that erased the evidence

A warehouse has 24 cameras on one switch and one recorder, all plugged into an ordinary outlet. A storm cuts the power for forty minutes at night. During those forty minutes a side door is forced. The door controller, on its own battery, logs the forced door. There is no video at all, because the cameras, the switch and the recorder were dark.

The fix is a UPS sized to carry the switch and recorder for the outage the customer wants to ride through, with an alert when it goes onto battery. The designer had asked "what if the recorder fails?" but never "what if the power does?"

Advanced: the fallback nobody was watching

A hospital's video system has two recorders set up so that the second takes over if the first fails. It works as designed: the first recorder dies and the second carries on without a gap. Nobody notices, because nothing looks wrong. Four months later the second recorder fails too, and the site has no recording.

The redundancy was real, and it was wasted. The takeover raised an alert that went to an inbox nobody read. The fix is partly technical and mostly human: the alert goes to a named role, appears on the operators' screen, and a monthly check confirms both recorders are healthy.

From the field

  • Label spare ports, spare conduits and spare cable as spare, on the drawings and on the equipment.
  • Save every device's settings after commissioning and keep the files with the record documents. A spare switch with no saved settings is a paperweight.
  • Pull the plug at handover. Test the battery, the UPS and each fallback while the customer watches.
  • Ask about the building's generator. If there is one, find out which outlets it feeds before choosing where the cabinet goes.
  • Write the accepted risks down. "No recording during a power cut longer than 30 minutes" should be the customer's informed choice, on paper.

Common mistakes

  • Filling every port, amp and drive bay on day one.
  • Counting ports and forgetting the switch's power budget.
  • Protecting the server and forgetting the switch it depends on.
  • Adding redundancy that shares one power outlet, one switch or one cable path.
  • Fallbacks with no alert, and backups that have never been restored.

Summary

  • Leave spare capacity where growth is hard: ports, power, space and cable paths.
  • For each part ask what stops, for how long, and whether the customer can live with it.
  • Find single points of failure on the riser diagram.
  • Choose a level of protection for each part: accept, spare, fallback or redundancy.
  • Every fallback needs an alert that reaches a person, and a test.

Exercises

Answer each one yourself first, then open the answer. The panel at the top will help with the first two.

Exercise 1. In the basic design, which single failures stop all recording?

Show answer
Three: the mains power, the core switch and the recorder. Each one either removes power from the cameras and recorder or cuts the path between them. An edge switch stops recording only for its own eight cameras.

Exercise 2. In the hardened design, break switch A. What is still lost, and why did the extra protection not prevent it?

Show answer
Cameras 1 to 8 are dark, because they take their power from that switch, so their memory cards cannot help. Controller 1 keeps its doors working from memory. The hardened design shortens the outage with a spare switch on the shelf, and limits the damage by making sure each entrance is also seen by a camera on switch B.

Exercise 3. A design has 10 cameras at 8 watts each, with 2 more planned, plus 2 ports for a recorder and an uplink. With 25 percent spare, how many ports and how many watts should the switch provide?

Show answer
Ports in use: 10 + 2 + 2 = 14. With a quarter spare, 17.5, so 18 ports, which means a 24-port switch. Power: 12 cameras × 8 watts = 96 watts, and with a quarter spare, 120 watts. Check that figure against the switch's total power budget on its data sheet.

Exercise 4 (think, don't memorize). A customer says, "I want a system that never goes down." How do you answer?

Show answer
No system can promise that, and a design that tries costs far more than most customers will pay. Turn the wish into requirements. Which functions matter most: locked doors, recording, live view? For each one, how long an outage is tolerable? Then show the ladder: what accepting the risk costs, what a spare on the shelf costs, what a fallback or full redundancy costs. Most customers choose strong protection for one or two functions and a spare part for the rest, and are happier for having chosen.