Mailinglist Archive: opensuse-buildservice (170 mails)

< Previous Next >
Re: [opensuse-buildservice] /monitor page shows wrong info about workers
On 20.03.2012 09:22, Adrian Schröter wrote:
Am Montag, 19. März 2012, 10:01:32 schrieb Srinidhi B:
On 3/19/2012 at 08:58 PM, Adrian Schröter<adrian@xxxxxxx> wrote:
Am Montag, 19. März 2012, 17:19:40 schrieb Ed Bartosh:
Hi,

I added 2 new worker hosts and stopped obs-worker service on old host
several days ago. However, OBS web UI /monitor page still shows my old host
and does not show two new ones. Builds are running just fine, which means
that obs server knows about new workers and uses them.

Any idea how to fix this? At least where to look in the code?

obsapidelayed job is not running/working.


Or if you're running memcached, restart it.

I found the same problem when I upgraded my local OBS instance from 2.0.5 to
2.3. The /monitor page would show that builds were running for more than 32+
hrs, whereas, on the backend, no real jobs were running -
/srv/obs/jobs/<arch>/ was empty.

I later found out that in
/srv/www/obs/api/app/controllers/status_controller.rb, "workerstatus" is
written to cache without any expiry timeout.

To solve this, in my local instance I changed the following code:

I think your problem is as well the not running delayed job. It feeds the
cache,
so it is not necessary for the webui to do it. Which can create quite some
load if many
people do it in parallel.

That's not exactly the reasoning. The delayed job will make the
statistics graphs work, without the minute tick from outside, you can't
have a plot over time. And as this statistics tick will put the worker
status in cache anyway, there is no need to have the webui bother the
backend on its own.

I commited a similiar patch now though so that people will get build
jobs at least once in a while if they do not care for the plots.

Greetings, Stephan

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups