Nginx tail module
Maxim Dounin
mdounin at mdounin.ru
Tue Feb 18 16:14:35 UTC 2020
Hello!
On Thu, Feb 13, 2020 at 05:18:15AM -0800, Maksim Yevmenkin wrote:
> On Wed, Feb 12, 2020, 11:07 PM Eran Kornblau <eran.kornblau at kaltura.com>
> wrote:
>
> > I don’t know what you’re trying to solve… but maybe you can just send a
> > range request relative to the end,
> > without any custom module.
> > For example, ‘Range: bytes=-1024’ will return the last 1k of the resource.
> >
>
> Thanks but this is not what I was hoping for. The idea is to have Nginx
> return new data as soon as it is available in the tailed file.
>
> A client would issue one request and simply wait for the data to arrive in
> chunked transfer encoding.
The tricky part is to be notified on file modifications. It
should be possible to do so with low overhead using EVFILT_VNODE
on FreeBSD and inotify on Linux, but infrastructure in nginx for
this isn't yet complete. Some EVFILT_VNODE code is there though,
you may try using it.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx-devel
mailing list