Welcome! Log In Create A New Profile

Advanced

Re: Nginx tail module

Maxim Dounin
February 18, 2020 11:16AM
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@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/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Nginx tail module

Maksim Yevmenkin 91 February 12, 2020 09:50PM

RE: Nginx tail module

erankor 20 February 13, 2020 02:08AM

Re: Nginx tail module

Maksim Yevmenkin 22 February 13, 2020 08:20AM

Re: Nginx tail module

Maxim Dounin 26 February 18, 2020 11:16AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready