A false smoke alarm almost drowned Jane Street's only NYC datacenter

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

AI disclosure: this story was written entirely by human hands, with AI doing proof-reading and light edits. Some tasteful imperfections kept to heighten Wabi-Sabi effect.

AI 披露:本文完全由人工撰写,并由人工智能进行校对和轻微编辑。保留了一些有品位的瑕疵,以增强“侘寂”(Wabi-Sabi)效果。

Everyone’s heard of how awesome Jane Street is. Fewer people have heard about the times something stupid nearly put it out of business and it was saved by grit and dumb luck. I was on the systems team for some of those. Jane Street didn’t do titles, and we on the systems team weren’t above getting our hands dirty. You could think of us as the firm’s blue-collar OCaml programmers: when something broke, we were the ones running through the corridors to fix it. Call this story a Star Trek: Lower Decks view of Jane Street.

每个人都听说过 Jane Street 有多厉害。但很少有人听说过它曾几次因愚蠢的失误险些倒闭,却又靠着毅力和运气化险为夷。我曾是系统团队的一员,亲历过其中一些事件。Jane Street 不设职衔,我们系统团队的人也不介意亲自动手。你可以把我们看作是公司的蓝领 OCaml 程序员:一旦出了故障,我们就是那些在走廊里奔跑抢修的人。把这个故事看作是《星际迷航:下层甲板》视角的 Jane Street 吧。

For the longest time Jane Street insisted on having its machine room close to its trading floor. When it was 10 people it was cute. When it was 150 people it was starting to feel… odd. Part of the reason for this was intellectual property concern: they didn’t want to risk having their servers stolen by spies who would learn their precious trading strategies. Another reason was technology risk: they wanted to make sure out-of-control automated trading systems could always be shut down by running across the hall and pulling power cables.

很长一段时间里,Jane Street 坚持将机房设在交易大厅附近。当公司只有 10 个人时,这看起来还挺可爱。但当人数达到 150 人时,这就开始显得……有些奇怪了。部分原因是出于知识产权的考虑:他们不想冒服务器被间谍窃取并泄露其宝贵交易策略的风险。另一个原因是技术风险:他们希望确保在自动化交易系统失控时,能通过穿过走廊拔掉电源线的方式将其关闭。

Yes, tools existed to mitigate both of these fears. But Jane Street moved irritatingly slowly on this stuff, and they still wanted the last-resort option of yanking power cords. Their risk culture didn’t exclusively come from reading heady thinkpieces. A lot of it was instilled by a partner who’d served on a nuclear submarine, and it showed, mostly in a good way! On a sub, you don’t trust the automation unless there’s a big red-painted, mechanically connected lever you can pull to turn it off.

诚然,当时已有工具可以缓解这两种担忧。但 Jane Street 在这方面的行动慢得令人恼火,他们依然想要保留那种拔掉电源线的“最后手段”。他们的风险文化并非仅仅来自阅读深奥的理论文章。很大程度上,这种文化是由一位曾在核潜艇上服役的合伙人灌输的,而且效果显著,大多是积极的!在潜艇上,除非有一个涂成红色、机械连接的操纵杆可以随时拉下以关闭系统,否则你绝不会信任自动化设备。

As the company grew this humble machine room was built out into a respectably sizable datacenter, complete with an online UPS, Computer Room Air Conditioner (CRAC) units, refrigerator-sized network switches, a subterranean diesel backup generator and about 10 rows of server cabinets, 10 cabinets deep. Oh, and it was all crammed into the middle of a skyscraper called 1 New York Plaza, which was otherwise just a normal office building.

随着公司的发展,这个简陋的机房被扩建成了一个相当规模的数据中心,配备了在线 UPS、机房空调(CRAC)装置、冰箱大小的网络交换机、地下柴油备用发电机,以及大约 10 排、每排 10 个机柜的服务器阵列。哦,顺便提一下,这一切都被塞进了一座名为“纽约广场 1 号”的摩天大楼中心,而那原本只是一栋普通的办公楼。

When I first landed my job at Jane Street I was commuting to the southern tip of Manhattan all of the way from Queens, an hour or more each way. I’d gone to a magnet high school in the city, so I’d been doing commutes like that since I was a teenager, and I was tired of it.

刚在 Jane Street 找到工作时,我每天都要从皇后区通勤到曼哈顿南端,单程要花一个多小时。我曾就读于市里的一所重点高中,从青少年时期起就一直过着这样的通勤生活,我对此感到厌倦。

Now that I was making big Wall Street money I decided I’d get an apartment. A real estate agent kept trying to show me what they called “panty droppers”, but I was only interested in one thing: proximity to the office. I ended up in a 200 square foot studio that was a 9 minute commute on foot from my apartment door to my desk on the trading floor. I would weirdly boast about it to the rest of the systems team, but it also meant everyone at the office knew I was a stone’s throw away in case there was an emergency.

既然现在赚到了华尔街的大钱,我决定租一套公寓。房产中介一直试图向我展示他们所谓的“撩妹神器”,但我只关心一件事:离办公室近。最终,我住进了一间 200 平方英尺的单间公寓,从家门口走到交易大厅的工位只需 9 分钟。我曾奇怪地向系统团队的其他成员炫耀这一点,但这同时也意味着办公室里的每个人都知道,一旦发生紧急情况,我就在咫尺之遥。

And that day came soon enough. One evening after work, just as I was about to climb into the elevator at my apartment building, my phone rang. It was our Hong Kong office, and when Hong Kong had a New York problem, mine was (now) the number they called. The smoke alarm in our NYC datacenter had gone off.

那一天很快就来了。一天下班后,就在我准备走进公寓大楼的电梯时,电话响了。是我们的香港办公室打来的,当香港那边遇到纽约的问题时,我的号码(现在)就是他们拨打的首选。我们纽约数据中心的烟雾报警器响了。

We had contractors working on a prep room next to the datacenter. While cutting into stuff, some dust was kicked up and it set off the smoke alarm. This is bad, but not for the reason you might think. Office buildings have sprinklers in them for fire suppression. You may have seen it go off in movies where someone just holds a lit cigarette up to the sprinkler on the ceiling and it floods the entire room. In reality they’re not quite that dumb, but it’s close.

当时有承包商在数据中心旁边的准备室施工。在切割材料时,扬起的灰尘触发了烟雾报警器。这很糟糕,但原因并非你想象的那样。办公楼里装有用于灭火的喷淋系统。你可能在电影里见过这样的场景:有人把点燃的香烟靠近天花板上的喷头,整个房间就被淹没了。现实中它们没那么蠢,但也差不多。

Firstly, the sprinklers over a machine room like ours usually aren’t kept full of water all of the time. This saves you from having to deal with any leaks that might develop overhead over the years. Secondly, the sprinkler heads don’t have smoke sensors. Instead, a different system detects the smoke, and that’s when the pipes fill with pressurized water, but they don’t spray yet. What triggers the spray is heat: each sprinkler head has its own heat-sensitive plug, which opens once the air around it becomes hot enough. The logic is that the smoke alarm must be real, whatever fire triggered it hasn’t been brought under control since it’s gotten very hot, and the sprinklers should douse it with water.

首先,像我们机房上方这样的喷淋系统通常不会一直充满水。这可以避免处理多年来可能出现的头顶漏水问题。其次,喷头本身没有烟雾传感器。相反,是由另一套系统来探测烟雾,此时管道会充满加压水,但还不会喷洒。触发喷洒的是热量:每个喷头都有一个热敏塞,一旦周围空气足够热,它就会打开。其逻辑是:烟雾报警必然是真实的,引发火灾的火源因未得到控制而导致温度升高,因此喷淋系统应喷水灭火。

Of course, the ceiling of our datacenter was full of sprinklers set up exactly this way. We’re still fine because even though contractors might have set the smoke detector off by kicking up dust, there’s no actual fire producing heat, so the sprinklers wouldn’t spray, right? Well, no. One final piece of this contraption is that if the smoke alarm detects smoke, it would be absolutely terrible to keep circulating air through the room since that would help feed any fires, so the smoke alarm is wired to shut down the CRAC units(!)

当然,我们数据中心的天花板上布满了以这种方式设置的喷头。我们本该没事,因为尽管承包商扬起的灰尘触发了烟雾探测器,但并没有真正的火源产生热量,所以喷淋系统不会喷水,对吧?嗯,并非如此。这套装置的最后一个环节是:如果烟雾报警器探测到烟雾,继续在房间内循环空气将是极其糟糕的,因为这会助长火势,所以烟雾报警器被连接到机房空调(CRAC)装置上,会自动将其关闭(!)

Can you see the problem now? Rooms full of computer racks have high cooling demands. If you shut down the cooling, the temperature starts climbing. If you have a bunch of sprinklers that have just become pressurized because of a smoke alarm, you now have a serious, potentially business-ending problem on your hands.

现在你看出问题所在了吗?堆满计算机机架的房间对冷却需求极高。如果你关闭了冷却系统,温度就会开始攀升。如果你有一堆因为烟雾报警而刚刚充满加压水的喷头,那么你现在就面临着一个严重的、可能导致业务终结的问题。

And so my mission was made clear: as fast as I possibly could, get back to Jane Street, get into the machine room, and pull the power cord on every device in that room before the temperature climbed past 150 F and the sprinklers destroyed everything.

因此,我的任务明确了:以最快的速度赶回 Jane Street,进入机房,在温度升至华氏 150 度(约 65 摄氏度)导致喷淋系统喷水摧毁一切之前,拔掉房间里每一台设备的电源线。

I ran down the (ironically named) Water Street in the Financial District faster than probably anyone has ever run down it, mashed the elevator button in the lobby of 1 NYP, waited very impatiently for the elevator to climb the 33 floors, slammed my keycard against the reader, booked through the main office door, took a hard right turn to the machine room door, slammed my keycard against that, stepped into what felt like a sauna and w

我沿着金融区那条(名字极具讽刺意味的)“水街”(Water Street)飞奔,速度可能超过了以往任何跑过这条街的人。我疯狂地按着纽约广场 1 号大堂的电梯按钮,极不耐烦地等待电梯爬上 33 层,猛地将门禁卡拍在读卡器上,冲过主办公室大门,向右急转弯冲向机房门,再次猛拍门禁卡,踏入了一个感觉像桑拿房的地方,然后……