<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Chris Pinkham wrote:
<blockquote cite="mid:20070925011643.GA11183@panther.bc2va.org"
type="cite">
<pre wrap="">* On Mon Sep 24, 2007 at 05:48:23PM -0700, Jon Larson wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I've got 3 backends that are supposed to share UserJobs, with each
backend limited to 2 maximum simultaneous jobs. I've also set MythTV to
allow jobs to run on any server--not just the recording server.
In the past this has worked perfectly, but I just queued up 4 jobs in
quick succession and I noticed that one backend has claimed all 4 jobs:
it started 2 of the jobs, and has the other 2 jobs in it's queue.
How can I force each backend to only 'claim' as many jobs as it can
execute and leave other pending jobs for the remaining servers?
</pre>
</blockquote>
<pre wrap=""><!---->
The JobQueue does not claim a job until it tries to run that job, so
either it tried to run the other two and failed or they were put in
the jobqueue table with the hostname field already filled in.
Run your frontend and backend with "-v database" and see which case is
occurring.
It sounds like it may be a settings issue, so check for duplicate entries
in your settings table for the JobsRunOnRecordHost and
JobQueueMaxSimultaneousJobs settings.
select *
        from jobqueue
        where value in ( 'JobsRunOnRecordHost', 'JobQueueMaxSimultaneousJobs');
Both of those are global settings, so there should only be one row
for each setting and the hostname should be NULL on those rows.
</pre>
</blockquote>
Thanks Chris--'JobsRunOnRecordHost' is set correctly; however I can see
that there are 3 'JobQueueMaxSimultaneousJobs'--each one bears the
hostname of one of the servers--so that's probably the problem. I am
at a loss to explain how they got there since I run a fairly basic
setup on Knoppmyth R5F1. Could setting this value via mythtv-setup do
this?<br>
<br>
There are also duplicate entries (for each host) for:
'JobQueueCheckFrequency' 'JobQueueWindowStart' 'JobQueueWindowEnd' and
'JobQueueCPU'---Does anyone know if these should be there?<br>
<br>
Jon<br>
<br>
</body>
</html>