Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
PrivateStorageio
Commits
98183768
Unverified
Commit
98183768
authored
4 years ago
by
Jean-Paul Calderone
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #45 from PrivateStorageio/44.eliot-logging
Turn on Eliot logging on storage servers
parents
57151f9b
90ac9f2e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nixos/modules/tahoe.nix
+2
-1
2 additions, 1 deletion
nixos/modules/tahoe.nix
nixos/modules/tests/private-storage.nix
+3
-0
3 additions, 0 deletions
nixos/modules/tests/private-storage.nix
with
5 additions
and
1 deletion
nixos/modules/tahoe.nix
+
2
−
1
View file @
98183768
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
nixos/modules/tests/private-storage.nix
+
3
−
0
View file @
98183768
...
...
@@ -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.
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment