-
Notifications
You must be signed in to change notification settings - Fork 135
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
generated log time skew #55
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NOTE: I'm not a 'go' programmer by trade and I love the diagrams python module you created...thanks for your contributions!
While using your tool to generate some logs while performance testing a log shipper setup, I noticed the timestamp in the emitted logs (while using the
-l
forever option), slowly became further and further behind the current time. This made it appear that the log shipper was lagging behind.A basic test I performed was as follows:
Run the flog generator
In another terminal, every few seconds compare the last log line with the current date:
What you'll notice is the timestamp in the last log line slowly gets behind from the current time.
I was able to make a minor modification to flog.go which corrected the problem:
EDIT: Your implementation allows for better precision (using delays less than 1ms), it's just the slow skew that I'm not sure can be completely accounted for since the load generator requires some wall time to execute as well.
The text was updated successfully, but these errors were encountered: