Bug#949547: find a nicer way than `tail -c +0 -f` to autoscroll build logs

Mattia Rizzolo mattia at debian.org
Tue Jan 21 20:42:35 GMT 2020


Package: jenkins.debian.org

/cgi-bin/nph-logwatch basically just runs `tail -c +0 -f` to pass a log
in real time to apache.
That keeps an apache worker busy as long as the user has it connected,
and has tail take a while CPU for it for the whole duration of the
thing.

I.e., it's highly inefficient and causes us to be subject to DoS if
anybody wanted it.
For example, right now there are 6 such proceses running.  It really
means 6 busy vCPUs that can't do anything else.

We should find a better way to do it…

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-dev/attachments/20200121/10013f56/attachment.sig>


More information about the Qa-jenkins-dev mailing list