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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Saving months of compute time with a single Grafana query

47 点作者 serverlessmom10 个月前

8 条评论

Ekrekr10 个月前
I really enjoyed this read!<p>One thing that wasn&#x27;t clear to me, is that if running NPM to install dependencies on pod startup is slow, why not pre build an image with dependencies already installed, and deploy that instead?
评论 #40944991 未加载
评论 #40945070 未加载
mrits10 个月前
Without proper telemetry and performance metrics you will get to do this in a few more months again
throwthrow564310 个月前
The &#x27;one weird trick&#x27; could&#x27;ve been spotted in a graphical bundle analyser. But are they not caching npm packages somewhere, seems like an awful waste downloading from the npm registry over and over? I would think it would be <i>parsing</i> four different versions of the AWS sdk that was so slow.
评论 #40945037 未加载
roboben10 个月前
Sadly Grafana (cloud) comes at a cost too. Anyone struggles with this horrible active metrics based pricing too? Not only Grafana Cloud but others do it like that too.<p>We moved shitloads to self hosted Thanos. While this comes with its own drawbacks obv, I think it was worth it.
评论 #40947300 未加载
zug_zug10 个月前
I&#x27;m really surprised that 300ms at startup would result in 25% fewer pods.... What % reduction in the total startup time is that?<p>Is it possible the prior measurement happened during a high traffic period and the post measurement happened in a low traffic period?
评论 #40945007 未加载
sebstefan10 个月前
I really don&#x27;t understand spinning up a whole pod just for a request<p>Wouldn&#x27;t it be cheaper to just keep a pod up with a service running?<p>If scaleability is an issue just plop a load balancer in front of it and scale them up with load but surely you can&#x27;t need a whole pod for every single one of those millions of requests right?<p>&gt; Checkly is a synthetic monitoring tool that lets teams monitor their API’s and sites <i>continually</i>, and find problems faster.<p>&gt;With some users sending *millions of request a day*, that 300ms added up to massive overall compute savings<p>No shit, right?
评论 #40945256 未加载
BobbyTables210 个月前
I do not understand how cloud proponents talk about the he costs of self hosting but then get into situations like this.<p>Spending serious engineering time to wrangle with the complexities of cloud orchestration is not something that should be taken lightly.<p>Cloud services should be required to have a black-box Surgeon’s General warning.
评论 #40945005 未加载
评论 #40945013 未加载
评论 #40945001 未加载
评论 #40945074 未加载
评论 #40945128 未加载
评论 #40944930 未加载
评论 #40945170 未加载
dxbydt10 个月前
many of the tricks we learned in the late 90s - 2000s can no longer be pulled off. We used to download jar files over the net. Running a major prop trading platform meant 1000s of dependencies. You’d have swing and friends for front end tables, sax xml parsers, various numerical libraries, logging modules- all of this shit downloaded in the jar when the customer impatiently waited to trade some 100MM worth of fx. We learned how to cut down on dependencies. Built tools to massively compress class files. Tradeoff 1 jar with lots of little jars that downloaded on demand. Better yet, cache most of these jars so they wouldn’t need to download every single time. It became a fine art at one point - the difference between a rookie and a professional was that the latter could not just write a spiffy java frontend, but actually deploy it in prod so customers wouldn’t even know there was a startup time - it would just start like instantly. then that whole industry just vanished overnight- poof!<p>now i write ml code and deploy it on a docker in gcp and the same issues all over again. you import pandas gbq and pretty much the entire google bq set of libraries is part of the build. throw in a few stadard ml libs and soon you are looking at upwards of 2 seconds in Cloud Run startup time. You pay premium for autoscaling, for keeping one instance warm at all times, for your monitoring and metrics, on and on. i am yet to see startup times below 500ms. you can slice the cake any which way, you still pay the startup cost penalty. quite sad.