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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How do you meter execution duration for billing?

2 点作者 hekike将近 2 年前
I&#x27;m researching the best ways to collect the execution duration of containers&#x2F;serverless workloads for billing and chargeback use cases. Per second granularity, like AWS CPU-Hours. I&#x27;m finding that most engineers&#x27; journeys start with listening to start&#x2F;stop events and calculating the delta between those lifecycle events. But over time, they find it challenging to handle lost events or long-running processes. It&#x27;s also not always fair to customers when a container takes longer to start (cold start) or stop.<p>So far, I have heard two primary ways: 1. Lifecycle events like start&#x2F;stop, 2. Heartbeat-style pinging. I summarized them in this blog post: https:&#x2F;&#x2F;openmeter.io&#x2F;blog&#x2F;how-to-meter-workload-execution-duration<p>I would love to iterate on the post based on your thoughts and include other ways if any. How do you meter container&#x2F;serverless execution duration for billing?

暂无评论

暂无评论