Hi all,
I met a problem. I have more than one instance running my application. When I schedules some services using runAsync, ofbiz auto create jobs. And when job is started, ofbiz pick one of my instances to process. But, in my case: when I made an request, I dedicated this to instance A, but after that, when job start, it run on another instance B. I just want to it running on A. Thanks! -- *THANG NGUYEN (Mr)* *OLBIUS DEVELOPER**Email:* [hidden email]| *Mobile:* (+84) 96 955 0905 *OLBIUS., JSC* *Tel:* (+84) 9 88 99 3333 *Address: *25th Fl., No 91, Nguyen Chi Thanh St., Ha Noi City, VietNam *Website:* http://olbius.com |
When a job is created by an instance, there are no information on who
will be run it. So if you generate a job form an async service by the instance A, the instance B can execute it. Check on GenericAsyncEngine.java:108 (trunk) the job creation. If you want to improve this, all contribution are welcome ;) Nicolas Le 02/01/2018 à 11:16, Trà Đá Một Mình a écrit : > Hi all, > > I met a problem. I have more than one instance running my application. When > I schedules some services using runAsync, ofbiz auto create jobs. And when > job is started, ofbiz pick one of my instances to process. But, in my case: > when I made an request, I dedicated this to instance A, but after that, > when job start, it run on another instance B. I just want to it running on > A. > > Thanks! > |
You can treat each instance as a separate pool in serviceengine.xml, so
that instance A sends jobs and runs jobs from poolA and instance B uses poolB. Regards Scott On 3/01/2018 03:04, "Nicolas Malin" <[hidden email]> wrote: When a job is created by an instance, there are no information on who will be run it. So if you generate a job form an async service by the instance A, the instance B can execute it. Check on GenericAsyncEngine.java:108 (trunk) the job creation. If you want to improve this, all contribution are welcome ;) Nicolas Le 02/01/2018 à 11:16, Trà Đá Một Mình a écrit : > Hi all, > > I met a problem. I have more than one instance running my application. When > I schedules some services using runAsync, ofbiz auto create jobs. And when > job is started, ofbiz pick one of my instances to process. But, in my case: > when I made an request, I dedicated this to instance A, but after that, > when job start, it run on another instance B. I just want to it running on > A. > > Thanks! > > |
Following article will help you
https://www.hotwaxsystems.com/ofbiz/ofbiz-tutorials/apache-ofbiz-performance/ Thanks & Regards -- Deepak Dixit www.hotwaxsystems.com www.hotwax.co On Tue, Jan 2, 2018 at 11:03 PM, Scott Gray <[hidden email]> wrote: > You can treat each instance as a separate pool in serviceengine.xml, so > that instance A sends jobs and runs jobs from poolA and instance B uses > poolB. > > Regards > Scott > > > > > On 3/01/2018 03:04, "Nicolas Malin" <[hidden email]> wrote: > > When a job is created by an instance, there are no information on who will > be run it. So if you generate a job form an async service by the instance > A, the instance B can execute it. > > Check on GenericAsyncEngine.java:108 (trunk) the job creation. If you want > to improve this, all contribution are welcome ;) > > Nicolas > > > > Le 02/01/2018 à 11:16, Trà Đá Một Mình a écrit : > > > Hi all, > > > > I met a problem. I have more than one instance running my application. > When > > I schedules some services using runAsync, ofbiz auto create jobs. And > when > > job is started, ofbiz pick one of my instances to process. But, in my > case: > > when I made an request, I dedicated this to instance A, but after that, > > when job start, it run on another instance B. I just want to it running > on > > A. > > > > Thanks! > > > > > |
In reply to this post by thangnguyen.Olbius
Hi Nguyen,
I think your requirement is same as mine, I posted a patch in https://issues.apache.org/jira/browse/OFBIZ-9233, please try if they work for you. Kind Regards, Shi Jinghai -----邮件原件----- 发件人: Trà Đá Một Mình [mailto:[hidden email]] 发送时间: 2018年1月2日 18:16 收件人: [hidden email] 主题: [OFBIZ] - Job schedules and Multi instance Hi all, I met a problem. I have more than one instance running my application. When I schedules some services using runAsync, ofbiz auto create jobs. And when job is started, ofbiz pick one of my instances to process. But, in my case: when I made an request, I dedicated this to instance A, but after that, when job start, it run on another instance B. I just want to it running on A. Thanks! -- *THANG NGUYEN (Mr)* *OLBIUS DEVELOPER**Email:* [hidden email]| *Mobile:* (+84) 96 955 0905 *OLBIUS., JSC* *Tel:* (+84) 9 88 99 3333 *Address: *25th Fl., No 91, Nguyen Chi Thanh St., Ha Noi City, VietNam *Website:* http://olbius.com |
Thanks all,
@Deepak, Your article help me to understand how it work, really helpful, thanks you. @Shi, I'll try with your patch, hope it work as expected ;), thanks you! Best regards! On Wed, Jan 3, 2018 at 8:15 AM, Shi Jinghai <[hidden email]> wrote: > Hi Nguyen, > > I think your requirement is same as mine, I posted a patch in > https://issues.apache.org/jira/browse/OFBIZ-9233, please try if they work > for you. > > Kind Regards, > > Shi Jinghai > > -----邮件原件----- > 发件人: Trà Đá Một Mình [mailto:[hidden email]] > 发送时间: 2018年1月2日 18:16 > 收件人: [hidden email] > 主题: [OFBIZ] - Job schedules and Multi instance > > Hi all, > > I met a problem. I have more than one instance running my application. > When I schedules some services using runAsync, ofbiz auto create jobs. And > when job is started, ofbiz pick one of my instances to process. But, in my > case: > when I made an request, I dedicated this to instance A, but after that, > when job start, it run on another instance B. I just want to it running on > A. > > Thanks! > > -- > *THANG NGUYEN (Mr)* > > *OLBIUS DEVELOPER**Email:* [hidden email]| *Mobile:* (+84) 96 > 955 0905 > > *OLBIUS., JSC* > *Tel:* (+84) 9 88 99 3333 > *Address: *25th Fl., No 91, Nguyen Chi Thanh St., Ha Noi City, VietNam > *Website:* http://olbius.com > -- *THANG NGUYEN (Mr)* *OLBIUS DEVELOPER**Email:* [hidden email]| *Mobile:* (+84) 96 955 0905 *OLBIUS., JSC* *Tel:* (+84) 9 88 99 3333 *Address: *25th Fl., No 91, Nguyen Chi Thanh St., Ha Noi City, VietNam *Website:* http://olbius.com |
Free forum by Nabble | Edit this page |