基础设施即拉可雷特芝士
Infrastructure as Raclette

原始链接: https://lois.postu.la/posts/infrastructure-as-a-raclette

作者在建造住宅时,在地面安装了专用的 20A 电路,并在电路图上特别标注了一个“奶酪图标”,以便在无需杂乱延长线的情况下为烤奶酪机供电。这一项目引发了一种更深远的理念:**基础设施应在成本低廉时提前部署,而不必考虑是否立即投入使用。** 尽管软件定义系统支持轻松的按需扩展,但物理基础设施遵循不同的经济规律。后期改造(例如切割已铺好的瓷砖或开挖沟渠)的成本极其高昂。因此,作者特意对其住宅和家庭办公室进行了“过度设计”,预埋了冗余光纤、大功率电源线和大型管道。 尽管大部分容量目前处于闲置状态,但作者认为他优化的并非利用率,而是**未来变革的成本**。通过慷慨地配置那些难以更改的建筑层级,他保留了选择权。他的经验很明确:云资源可以通过 API 调用随时调整,但物理基础设施是永久性的。当改造代价高昂时,“够用”永远是不够的——你必须为未知的需求而建设。

这篇 Hacker News 帖子讨论了文章《Infrastructure as Raclette》(即把基础设施比作瑞士干酪火锅),引发了从技术建议到轻松轶事等各类评论。 讨论涵盖了电气和网络安装的实用技巧,例如使用工业吸尘器将线缆穿过导管,以及基础设施超额配置的策略(例如多拉几根线以备未来使用)。参与者还分享了个人故事,包括一段回顾在儿时家中为了提升游戏性能而加装以太网的怀旧经历。 除了技术层面,帖子中还出现了关于举办干酪火锅派对社交动态的幽默插曲,用户们不仅比较了烤盘的大小,还讨论了使用延长线所带来的“不便”。总的来说,这场对话融合了专业的行业技巧与轻松、贴近生活方式的观察。
相关文章

原文

I have a dedicated 20A circuit for raclette. Not in the kitchen: a dedicated outlet embedded in the floor of my living room, exactly where we put the tables when we have people over. It even has its own cheese icon on the official electrical diagram.

I can explain.

It started with a perfectly reasonable problem #

When we were building the house, I thought about what happens when we have people over. We move the tables into the living room, we get out a few raclette machines, and then we do what everyone does: run extension cords across the room and connect an unreasonable amount of heating equipment to whatever outlet happens to be nearby.

That seemed stupid. The floor was open, the electrical panel was being installed, and adding another circuit cost almost nothing. Fixing it afterwards would mean breaking tiles.

So I asked the electrician to put a 20A outlet in the floor, right where the raclette tables go. At 230 V that is about 4.6 kW, or three to four raclette machines running flat out. He had apparently never been asked that before, and he found it hilarious enough that “Prise Raclette” ended up on the official electrical diagram.

With a cheese icon.

Circuit schedule from an electrical diagram. Row C.3 reads 20A, 2,5 mm², and is labelled with a cheese wedge icon and the text Prise Raclette, between C.2 Prises séjour and C.4 Éclairage séjour.
C.3, filed between the living room sockets and the living room lighting.

The annoying thing is that it worked #

People laugh when they first see it. Then we have a raclette, and there are no extension cords, no power strips, no cables crossing the room. You bring out the tables, open the floor outlet, plug in the machines and melt cheese.

My neighbour liked it enough that he eventually installed one too. Except his house was already finished.

He had to break three tiles.

Infrastructure is cheap before you need it #

I work with infrastructure for a living, and in the cloud, keeping options open is easy. Need more compute? Change a number. Need another network? Add one. Need more storage? API call.

Buildings are unfortunately not software-defined. If you discover five years later that you should have installed another conduit across your garden, the migration procedure involves a shovel. This changes the economics considerably.

When we built the house, and later when I started building a small detached office in the garden, I ended up applying a fairly simple rule:

If something is cheap to provision now and expensive to retrofit later, provision it now.

This has had consequences.

The new office #

The office is modest: roughly 12.5 m² at the edge of the garden, and it will contain a desk, a chair, a few displays and a laptop.

Naturally, it is connected to the house using eight single-mode fibres. Two are enough for a 10 Gbit/s link, another two could eventually provide a physically separate professional network, and the remaining four are there for a highly technical networking requirement known as “you never know”.

The building also has a 5G6 electrical feed, which in European cable notation means five conductors of 6 mm² each: three phases, neutral and earth. Plus a separate 5G2.5 alongside it. Then two 6 mm² DC cables ready for solar panels on the roof, a 10G PoE switch and a Wi-Fi 7 access point. For a desk, a chair, a few displays and a laptop.

This problem appears to be systemic #

Looking around the rest of the house didn’t help my case. It has a 3×400 V + N supply, split between private and professional circuits, Cat6 throughout, multiple access points, multiple cameras, 23 solar panels and 20 kWh of battery storage. My data lives on 16 TB of redundant local storage and is backed up to two different cloud providers.

And somewhere in the electrical panel is a dedicated 20A circuit whose officially documented purpose is melting cheese.

At some point you have to consider the possibility that this is not a collection of isolated decisions.

Capacity planning #

The funny thing is that I don’t particularly like wasting resources, and most of this infrastructure spends its life dramatically underutilised. The office electrical feed will probably spend most of its time powering a laptop, a few displays and an access point. Half of those fibres may never carry a photon. The raclette circuit spends approximately 99.9% of the year doing absolutely nothing.

That’s fine, because utilisation isn’t the metric I’m optimising for. Cost of future change is. An empty conduit is cheap when the trench is open, and a new trench isn’t. An additional electrical circuit during construction is trivial. Retrofitting a floor outlet apparently costs three tiles and a patchwork in your living room floor.

Ask my neighbour.

I did get one thing wrong #

Conduits.

When the house was built I installed 35 mm conduits, didn’t take enough pictures before everything was closed, and didn’t systematically leave redundant pull strings. At the time this seemed perfectly adequate. Years later, while trying to pull larger cables through them, I discovered that adequate and future-proof are very different engineering requirements.

I have since revised the standard. A pull string is infrastructure, therefore a second pull string is redundancy, and a conduit can apparently never be too large.

Infrastructure as Raclette #

My house is over-engineered, my 12.5 m² office has eight fibres, and my electrical panel contains a cheese icon. But I don’t think the lesson is that everything should be massively oversized. It’s that buildings have a very different cost-of-change curve from software: when something is inside a wall, underneath a floor or buried in the garden, optionality has value. Provision the difficult-to-change layer generously, and decide what actually uses it later.

It’s the same principle we apply in infrastructure engineering, except Terraform can’t fix your floor.

联系我们 contact @ memedata.com