Incubaid/arakoon — pull request #11 by blackmath86 (2013-02-25 10:37:13+00:00)
Title: Arakoon 347

# This branch till now ignores:

- The connecting dss command line utility also reports its version/revision information so that compatibility problems can be confirmed if necessary.
- DSS uses different unique ids for “manager” threads within the daemon process, so that the log lines they emit can also be correlated.
- Log fd, peer address

# Some logging sections were added
- paxos
- client_protocol
- tcp_messaging

The default behavior for the logger will be determied in server.ml#76, its set to debug as default.
It's user choice to set env_variable LWT_DEBUG as stated in README.

# These features were added to the current branch"

- Associate a unique connection id with each connection
- Use connection id as log prefix when working with it (see Lwt.new_key, Lwt.with_value
and Lwt.get to propagate the id through the lwt code using threadlocal
storage)
- Log fd, peer address and port and local address and port at connect, accept and at shutdown / disconnect, with the connection id as prefix
- expose the Arakoon decision process on consensus and election. Paxos
- Measure every write to disk and log the time it took if this writeoperation
takes more than 1 second
- When rebuilding a tc file from the tlf files, it's usefull to log what tlf file is being replayed

# The "milli-second(-like) " option is implemented in 1.5.0 where the current branch is based on.