Lessons Learned Running Presto at Meta Scale

Philip Bell · 2023年7月16日

AI 摘要 AI 生成,可能有误

Meta has used Presto, a free and open-source SQL query engine, for the past ten years and shares the lessons learned from scaling it to meet the company's demands. The article highlights four key lessons from this experience, noting that running tools, processes, and services at scale requires problem-solving to overcome unexpected challenges, and offers advice for others interested in running queries at scale.

Presto is a free, open source SQL query engine. We’ve been using it at Meta for the past ten years, and learned a lot while doing so. Running anything at scale - tools, processes, services - takes problem solving to overcome unexpected challenges. Here are four things we learned while scaling up Presto to Meta scale, and some advice if you’re interested in running your own queries at scale.

Scaling Presto rapidly to meet growing demands: What challenges did we face?

Deploying new Presto releases

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 High Scalability

The Swedbank Outage shows that Change Controls don't work

AI 摘要The article examines the April 2022 Swedbank outage, caused by an unapproved IT change that left nearly a million customers with incorrect balances, and the SEK850M fine issued by the Swedish FSA for failures in the bank's change management controls. The author argues that traditional change management processes such as CABs and manual approvals don't actually reduce risk, citing FCA research and the Accelerate study showing external approvals don't improve system stability and can even slow delivery. Instead, the author advocates for smaller, more frequent releases, agile delivery, automated change controls, and runtime monitoring as part of a DevSecOps approach to genuinely reduce IT risk.

Gossip Protocol Explained

AI 摘要The article introduces the gossip protocol in the context of distributed systems, where typical challenges include maintaining system state (such as node liveness) and enabling communication between nodes. It identifies two potential solutions to these problems: a centralized state management service or a peer-to-peer state management service. The article was originally published on systemdesign.one and promotes a system design newsletter for interview preparation.

Consistent hashing algorithm

AI 摘要The article explains how consistent hashing works by placing the output of a hash function onto a virtual ring structure called the hash ring. Nodes are assigned positions on the ring using their hashed IP addresses, and a data object's key is hashed with the same function to find its position on the ring. The ring is then traversed clockwise from the key's position until a node is found, and the data object is stored or retrieved from that node.

What is Cloud Computing? According to ChatGPT.

AI 摘要The author interviews ChatGPT about cloud computing topics and comes away both impressed and unimpressed—impressed by its polished, comprehensive answers, but unimpressed by their lack of depth, describing the AI as a 'zeitgeist oracle' rather than a source of genuine insight. ChatGPT provides textbook-style explanations of cloud computing and serverless computing, but repeatedly declines to make specific recommendations, such as which cloud provider to choose or whether HEY and Basecamp should leave the cloud, citing its limitations and the complexity of such decisions. The author concludes that tools like ChatGPT are meant to augment flawed humans rather than replace them, so tech professionals won't be unemployed soon.

Stuff The Internet Says On Scalability For December 2nd, 2022

AI 摘要This HighScalability post from December 2nd, 2022, opens with a historical comparison between an engineer wiring an early IBM computer in 1958 and one wiring an IBM quantum computer in 2021. The author announces a completely updated and expanded version of the book 'Explain the Cloud Like I'm 10!', which doubles the coverage and adds special sections on AWS, Azure, GCP, and Kubernetes, boasting 482 mostly 5-star reviews on Amazon. The post also asks readers to support the author's work through Patreon.