[#30] Rework logging in the container #39
Labels
No labels
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-aio#39
Loading…
Reference in a new issue
No description provided.
Delete branch "r.loginov/frostfs-aio:feature/30_rework_logging_in_the_container"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
close #30
I have considered several approaches to organizing logs, such as: using
tee
(current version) with storing logs inside a container, using docker volumes to store logs on a local computer, using logging drivers (syslog, fluentd, local...). Based on the ultimate goals of using frostfs-aio, it seems that the best choice would be a solution withtee
. This solution is quite minimalistic and at the same time ensures independence from external tools (not counting those that are used to work with frostfs-aio). Other solutions seem too redundant for this.Beautiful, I really like this solution. Requires couple minor changes but nothing else.
@ -99,0 +103,4 @@
@docker exec aio cat ${LOG_DIR}/$*
# Streaming of the frostFS service logs
stream-logs/%:
logs-stream
seems better thanstream-logs
.If the user doesn't know about this feature, they will write
make log
and then autocomplete will provide both available targets.@ -15,3 +15,3 @@
stage "Starting the blockchain"
/usr/bin/neo-go node --config-path /config --privnet &
/usr/bin/neo-go node --config-path /config --privnet |& tee -a ${LOG_DIR}/neo-go &
Please bump patch version of AIO in the
.env
file. We need to rebuild image that contains these changes.Do I understand correctly that the aio
version
needs to be rolled out 1.5.0 -> 1.5.1? If the answer is yes, then maybe it's worth correcting the version target in this case? Otherwise, at the moment, her conclusion may be a little misleading.Firstly, it seems that the frostfs version is node 1.5.0, although this is the aio version. Secondly, neo-go does not display a version at all. It may be worth displaying either only the aio version or also the versions of all components.
Yes.
Let's try to fix it. If it is possible to use
.env
variables here, let's do it (avoidgit describe
because we don't add tags in this repo, at least now). If there are any issues with that, just make an issue.Actually make an issue straight away. We define version components in docker files directly right now, we need to rework it.
Issue - #40
bb57a99b06
to89ecc28f2e