F21 Self Contained Change: Remote Journal Logging

Miloslav Trmač mitr at volny.cz
Thu Apr 17 21:50:37 UTC 2014


2014-04-17 23:34 GMT+02:00 Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>:

> On Thu, Apr 17, 2014 at 10:17:28PM +0200, Miloslav Trmač wrote:
> > 2014-04-16 19:08 GMT+02:00 Chris Adams <linux at cmadams.net>:
> >
> > > It would be good if systemd could
> > > use or extend an existing logging protocol, rather than invent yet
> > > another method.
> > >
> >
> > Yes.  Going by the feature page and from what I can see from
> > journal-remote.c, because Transfer-Encoding: chunked does not require
> > application-level acknowledgment from the recipient, and there is no
> other
> > mechanism to synchronize state, the proposed use of HTTP will be *losing
> > data*!
> There's another mechanism to synchronize state: the server replies with
> 202 accepted after it has successfully parsed and saved the transmission to
> disk. The client can send each journal entry as a single POST upload
> (using the same connection, so it's not terrible inefficient).
>

Sure, single POST per entry, or even per batch, would work (AFAICS
equivalently with a 200 OK)—note that the data really needs to be on disk
before the acknowledgment is sent.
    Mirek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20140417/7168b26a/attachment.html>


More information about the devel mailing list