Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging to disk latency problem #428

Closed
rndmania opened this issue Jul 31, 2014 · 1 comment
Closed

logging to disk latency problem #428

rndmania opened this issue Jul 31, 2014 · 1 comment

Comments

@rndmania
Copy link

I use winston for logging access log of web server to file

if TPS of webserver lower than 3500 TPS, logging well without latency
but, TPS higher than about 3500 TPS,
logging latency increased and log is jumbled
for example,
2014-07-30T14:26:02.496Z - info:
2014-07-30T14:27:01.573Z - info:
2014-07-30T14:26:02.497Z - info:
2014-07-30T14:27:01.573Z - info:
2014-07-30T14:26:02.497Z - info:
2014-07-30T14:27:01.573Z - info:

so, i try logging synchronously using fs.AppendFIleSync()
then logging well over the 10k TPS

how to logging without jumble, latency using winston on high concurrency environment

Env : AWS EC2 (c3.2xlarge)
Node : 0.10.5
winstone : 0.7.3

@indexzero
Copy link
Member

Duplicate of #288.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants