Mike,

I posted a similar question a while ago on this topic.  The subject
was "How to assign JobSandbox jobs to specific application server?"

In the posting I asked if different app servers could be configured to
run against different job pools in the service engine.

Here is a copy of what I posted.

"For Example we could configure our service engine to have a worker1
pool for app server 1 and worker2 pool for app server 2:

        <thread-pool send-to-pool="worker1"
                     purge-job-days="4"
                     failed-retry-min="3"
                     ttl="18000000"
                     wait-millis="750"
                     jobs="10"
                     min-threads="5"
                     max-threads="15"
                     poll-enabled="true"
                     poll-db-millis="20000">
            <run-from-pool name="worker1"/>
        </thread-pool>

        <thread-pool send-to-pool="worker2"
                     purge-job-days="4"
                     failed-retry-min="3"
                     ttl="18000000"
                     wait-millis="750"
                     jobs="10"
                     min-threads="5"
                     max-threads="15"
                     poll-enabled="true"
                     poll-db-millis="20000">
            <run-from-pool name="worker2"/>
        </thread-pool>
"

I believe the service engine still works the same way.  You can also
have multiple app servers hitting the same jobPool in the jobSandbox.
The only time I have run into problems with multiple servers is when
the jobSandbox has a lot of records 50k+ and the different app servers
start to see locks on the JobSandbox table.


Brett

On Wed, Mar 21, 2012 at 12:02 AM, Mike <[email protected]> wrote:
>
> Playing around with running multiple instances of OFBiz in it's own VM, in
> a cloud environment, to the same DB.
>
> I ran across this on the OpenTaps docs:
>
> Service engine job pool:
> Modify the file framework/service/config/serviceengine.xml for each of your
> instances and edit the thread-pool's send-to-pool and run-from-pool to be
> different for each instance. For example:
>
> <thread-pool send-to-pool="opentaps1"> . . . <run-from-pool
> name="opentaps1"/></thread-pool>
>
> What is the purpose of this?  Is this so that jobs originated on each
> instance are tracked separately on the DB?  Is there anything else that
> needs to be tweaked config-wise so the multiple instances don't collide?

Reply via email to