Skip to content
Snippets Groups Projects
Unverified Commit 98183768 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone Committed by GitHub
Browse files

Merge pull request #45 from PrivateStorageio/44.eliot-logging

Turn on Eliot logging on storage servers
parents 57151f9b 90ac9f2e
No related branches found
No related tags found
No related merge requests found
......@@ -184,6 +184,7 @@ in
# This is a directory, but it has no trailing slash. Tahoe commands
# get antsy when there's a trailing slash.
nodedir = "/var/db/tahoe-lafs/${lib.escapeShellArg node}";
eliotLog = "file:${nodedir}/logs/eliot.json,rotate_length=${toString (1024 * 1024 * 32)},max_rotated_files=32";
in nameValuePair "tahoe.${node}" {
description = "Tahoe LAFS node ${node}";
wantedBy = [ "multi-user.target" ];
......@@ -197,7 +198,7 @@ in
# arguments to $(tahoe run). The node directory must come first,
# and arguments which alter Twisted's behavior come afterwards.
ExecStart = ''
${settings.package}/bin/tahoe run ${nodedir} -n -l- --pidfile=${pidfile}
${settings.package}/bin/tahoe --eliot-destination ${eliotLog} run ${nodedir} -n -l- --pidfile=${pidfile}
'';
# The rlimit on number of open files controls how many
# connections a particular storage server can accept (factoring
......
......@@ -224,6 +224,9 @@ in {
# status from the node if it is really working.
$storage->succeed('tahoe -d /var/db/tahoe-lafs/storage status');
# It should have Eliot logging turned on as well.
$storage->succeed('[ -e /var/db/tahoe-lafs/storage/logs/eliot.json ]');
#
# Storage appears to be working so try to get a client to speak with it.
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment