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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Improving testing by using real traffic from production

65 点作者 LeonidBugaev将近 12 年前

11 条评论

lazyjones将近 12 年前
Good idea to use tcpdump in order to record the requests as they happen (not as they're processed, i.e. from the logs as other replay tools), but perhaps using it in promiscuous mode is unnecessary if the listener runs on production servers. Oh, and bonus points for using Go.
评论 #5824512 未加载
评论 #5827627 未加载
lawl将近 12 年前
This is very cool. Could have needed than in my last project where in our load-testing with j-meter everything was fine and in production our nodes would fly out of the cluster like flies. I haven't looked deeply at it but I think session support would be very important, so that you don't just forward the requests but take care to maybe rewrite the session cookie to the server assigned one and when rate-limiting make sure to prefer to keep existing user sessions. From my expirience the problems we had on production were often because of some weird steps user took, which you might not catch if you don't make sure to exactly keep the users sessions in sync.
评论 #5825333 未加载
peterwwillis将近 12 年前
Does this tool include features not found in tcpreplay?
sparrovv_将近 12 年前
You wrote that staging should be the same as production env (and I agree), so how does it help with catching new errors if they were already caught and reported on production?<p>Of course we could run that against our test environment, but then I&#x27;d be afraid of getting to many errors, that were caused by changes that we want to release.<p>So is there something obvious that I&#x27;m missing?
kohlerm将近 12 年前
Is your application completely stateless? I'm asking because Load test tools, which are based on http replaying always support rewriting rules, because in stateful web applications the server may parse a cookie (or something similiar) to the browser, which is then used in the next requests.
jrochkind1将近 12 年前
Nice! This is something I've wanted to do for a while, but whenever I started down the path of hacking together my own tool, ended up giving up after a bit of work realizing it was a bit more complicated to do well than I anticipated and I didn't have time to do it right.
jondot将近 12 年前
Great tool. I was just about to do such a thing - thanks! I actually planned on a reverse proxy in Go, but seeing now that you've implemented with tcpdump - any insights on the two ways to do this?
评论 #5825241 未加载
psychometry将近 12 年前
This wouldn't be effective if the any of the changes you're trying to test involve changes to URLs.
rocco将近 12 年前
OT: Any idea of the software used for diagram? (seems embedded with javascript)
评论 #5825818 未加载
Swizec将近 12 年前
Is it just me or is the site down?
评论 #5825275 未加载
aetimmes将近 12 年前
s/Chief/Chef/g. :)