Graceful restarts & multiprocess logging #11
Labels
No Label
in progress
kind/breaking
kind/bug
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/security
kind/testing
kind/translation
kind/ui
lgtm/done
lgtm/need
lgtm/need
priority/critical
priority/low
priority/maybe
priority/medium
refactor
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
status/blocked
status/needs-feedback
status/wip
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/log#11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
When using log in a graceful restarting or multiprocess situation we will potentially suffer log corruption due to multiple processes logging to the same file at the same time.
To ameliorate this we should either:
I think sticking a pid in the filename is likely to be easiest - with the simplistic lock and the handoff being good additions.
Another possible method is to post log via http to server to resolve the multiprocess problem.
I think that's probably a good provider that we should have, but it's just pushing the problem to another place - which then suffers the same problem.
@zeripath I don't think so. After that, we will resolve multiple process write problem.
gitea serv
andgitea hooks
will run when every push or pull request via SSH. Butgitea web
always runs once for all the requests. It's not the same problem. I would not likegitea serv
andgitea hooks
to send log to a remote provider directly but send togitea web
viainternal
http request.