r/codeprojects • • Dec 10 '10
Greg - A scalable distributed logger with a high-precision global time axis
It's a logger that allows you to have a millisecond(or better)-precise global picture of what's happening in your distributed system, independent on the nodes' clocks.
I wrote this thing at work for my employer and it proved so terrifically useful that I wrote the same in open source.
Judging by this, there exists demand for such a tool.
See Why not X for an explanation of how it is better than merging offline logs and using ntpd+syslog, etc. - basically, 1) you don't need to merge logs, 2) it's freaking fast (up to 400,000 messages/s), 3) it also works where ntpd is nearly useless (Windows), etc.
It's a server + a bunch of client language bindings.
Currently there's only a Java binding, but it's a matter of a couple of hours to write another one. I decided to "release early, release often" instead of writing several more bindings before releasing.
If you like the idea but write in C or Python or whatever, why don't you help and also have fun by contributing a binding?
View all comments
Show parent comment
1
u/[deleted] Dec 10 '10
No, no provision for structured data - it's more like a "time-ordered link layer". It would be easy to extract a library for transfering arbitrary binary data with global timestamps. No replication either - could be provided by a separate layer.