TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Scaling Knative to 100K+ Webapps

141 点作者 anurag超过 1 年前

11 条评论

btown超过 1 年前
This is a case study in why there&#x27;s the word &quot;dev&quot; in devops. While Kubernetes gets really far towards giving you all the dials you need, at the end of the day those dials are the result of low-level code, and of people who made specific (and often well-documented) assumptions in tooling repository pull requests and RFC processes. Just like an application developer might debug or work around an issue with a library dependency by looking at its source code and understanding the nuance of the extension points that exist, and contribute documentation updates or new extension points upstream, a devops team should be empowered to do the same.<p>And from my experience devops is a really welcoming community - people take great pride in making sure their infrastructure tooling covers unorthodox use cases, and meeting them as a collaborator (not just an end user) can be incredibly fulfilling for all involved.<p>(That said, yak shaving is definitely a risk, especially since testing can be complicated with these systems when making low-level tweaks. But it&#x27;s still often useful to roll up one&#x27;s sleeves and read Go code rather than just restricting oneself to coloring within the existing configurability lines.)
NickHoff超过 1 年前
I clicked their link to Knative so I could read about it. On the Knative webpage, the cookie banner pops up. I don&#x27;t want to accept so I click &quot;learn more&quot;. That expands the cookie banner to include a button that says &quot;I understand how to opt out, hide this notice&quot; as well as a link to a lengthy explanation of cookies. Well I don&#x27;t want to click the button so I click the link to the cookie explanation. At the bottom of that page are more links to browser documentation that might eventually explain how to opt out, but I can&#x27;t click those links because everything on the page is disabled - because the same cookie popup is on this page too. It blocks interaction, including clicking on their links about how to opt out, until you opt in. This stuff is getting worse.
评论 #37818070 未加载
nijave超过 1 年前
It&#x27;d be nice if the CPU graphs contained the y axis. The proportion is a large drop but it&#x27;s unclear is that&#x27;s 1000m to 100m or 4000m to 250m (a much bigger cost reduction)<p>It also sounds like their knative solution is slowly getting flattened into a load balanced or &quot;smart&quot; L7 proxy.<p>Also curious is they submitted these changes upstream. Seems like a pretty clear use case with numbers behind it which usually helps with interest.<p>Finally, I really love a solution that net deletes code and makes everything faster (and simpler).
评论 #37815262 未加载
lbhdc超过 1 年前
Really interesting read.<p>&gt; With a little experimentation, we discovered that the activator could both wake Pods and reverse-proxy to a woke Pod, even though that behavior wasn’t documented! We just needed to set the right headers.<p>Are you setting those headers on call #2 (tell [knative] autoscaler to bring up pod) in the diagrams from y&#x27;alls other post?<p><a href="https:&#x2F;&#x2F;render.com&#x2F;blog&#x2F;knative-design-doc" rel="nofollow noreferrer">https:&#x2F;&#x2F;render.com&#x2F;blog&#x2F;knative-design-doc</a>
评论 #37815633 未加载
karakanb超过 1 年前
This is a really interesting read, thanks for the write up. I had no idea they were running these customer services on k8s, given that it is untrusted code and containers are not the best isolation layer. Are there any pointers on how Render approached running untrusted code in k8s?
评论 #37816140 未加载
评论 #37815501 未加载
评论 #37815686 未加载
xiwenc超过 1 年前
Really nice write up.<p>This reminds me of my time building a similar platform back in 2015-ish. It was also a free tier for back then 40k apps. Built on top of cloud foundry. Before k8s was GA.<p>We also suffered from scalability issues which required creative solutions.<p>Good times.
debarshri超过 1 年前
In my opinion the economics don&#x27;t workout that well when you building a hosting service on top of k8s especially when you have to compete with amazon on prices. It is tier that has the highest churn and lowest spending power that I feel they marketing too.<p>Would love to hear some thought. May be I am missing something.<p>On the tech side, IPAM can fail to assign IP in k8s. It could be of various reasons. What do you guys do in that case?
评论 #37814416 未加载
评论 #37814333 未加载
评论 #37814348 未加载
评论 #37818061 未加载
bittermandel超过 1 年前
Thank you so much for this write-up. Reminds me strongly of when we were exploring GKE container native routing. It really makes it so much efficient being able to route directly to the pods, rather than passing through all these Service layers.
ed_mercer超过 1 年前
Nice! I considered building a hosting service on Knative back in 2019. Happy to see it actually worked out for you.
skarlso超过 1 年前
Just a small remark that dog-autoscaler which is `cluster-autoscaler` supports scaling to and from 0 pretty nicely. I even implemented that functionality in cluster api provider aws using cluster autoscaler. Which probably why the native support isn’t going along so nicely.
评论 #37821014 未加载
pid-1超过 1 年前
I solved that by deleting services in every new deployment, during CD.<p>Not elegant, but we lost nothing of value.