Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022599Openbravo ERPA. Platformpublic2012-12-17 13:192013-01-22 15:32
alostale 
alostale 
urgentminorN/A
closedfixed 
5
 
3.0MP20 
AugustoMauch
Core
No
0022599: Dual OB contexts: one for background processes another for regular operations
In some cases background processes can consume too much Java resources to be processed.

This could be improved by having two separate contexts in different machines. One of these contexts would be used for the standard Openbravo operation whereas the other one would be used for scheduling and executing background processes. A new preference in the first one should be set to prevent process execution.
-
Add a new property to Openbravo.properties: background.policy. When value for this preference is no-execute, background processes won't be executed in that context.

Notes/limitations:
-Context with this preference set will not execute any background process, including those set to be executed immediately.
-If a background process is scheduled in this context, process will not be scheduled in second context until tomcat is restarted in that one. In general, processes should be scheduled in the instance reserved for background process execution-.
Performance
? issue-22599.export (2,804) 2012-12-17 13:22
https://issues.openbravo.com/file_download.php?file_id=5848&type=bug
Issue History
2012-12-17 13:19alostaleNew Issue
2012-12-17 13:19alostaleAssigned To => alostale
2012-12-17 13:19alostaleModules => Core
2012-12-17 13:19alostaleTriggers an Emergency Pack => No
2012-12-17 13:22alostaleFile Added: issue-22599.export
2012-12-17 13:23alostaleNote Added: 0054981
2013-01-16 12:18alostaleTag Attached: Performance
2013-01-16 12:18alostaleReview Assigned To => AugustoMauch
2013-01-16 12:19alostaleIssue Monitored: AugustoMauch
2013-01-16 12:24alostaleNote Added: 0055541
2013-01-16 12:25hgbotCheckin
2013-01-16 12:25hgbotNote Added: 0055542
2013-01-16 12:25hgbotStatusnew => resolved
2013-01-16 12:25hgbotResolutionopen => fixed
2013-01-16 12:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7df2baff13d2036888e4acb8e8411d500f146b45 [^]
2013-01-18 09:55hgbotCheckin
2013-01-18 09:55hgbotNote Added: 0055596
2013-01-18 10:31AugustoMauchNote Added: 0055598
2013-01-18 10:31AugustoMauchStatusresolved => closed
2013-01-18 10:31AugustoMauchFixed in Version => 3.0MP20
2013-01-18 20:26hudsonbotCheckin
2013-01-18 20:26hudsonbotNote Added: 0055632
2013-01-22 15:32hudsonbotCheckin
2013-01-22 15:32hudsonbotNote Added: 0055714

Notes
(0054981)
alostale   
2012-12-17 13:23   
Attached fix for this.
(0055541)
alostale   
2013-01-16 12:24   
See documentation: http://wiki.openbravo.com/wiki/Openbravo.properties#Others [^]
(0055542)
hgbot   
2013-01-16 12:25   
Repository: erp/devel/pi
Changeset: 7df2baff13d2036888e4acb8e8411d500f146b45
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Dec 17 13:22:07 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7df2baff13d2036888e4acb8e8411d500f146b45 [^]

fixed issue 22599: Dual OB contexts: background and regular operations

Added a new property to Openbravo.properties: background.policy.
When value for this preference is no-execute, background processes won't be executed in that context.

Notes/limitations:
-Context with this preference set will not execute any background process, including those set to be executed immediately.
-If a background process is scheduled in this context, process will not be scheduled in second context until tomcat is restarted in th

---
M config/Openbravo.properties.template
M src/org/openbravo/scheduling/OBScheduler.java
---
(0055596)
hgbot   
2013-01-18 09:55   
Repository: erp/devel/pi
Changeset: 0ef32863375c4af2d08d699a1a061d455239282c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jan 18 09:54:25 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0ef32863375c4af2d08d699a1a061d455239282c [^]

related to issue 22599: cannot schedule process in non-executing instances

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_process/RescheduleProcess.java
M src/org/openbravo/erpCommon/ad_process/ScheduleProcess.java
M src/org/openbravo/erpCommon/ad_process/UnscheduleProcess.java
---
(0055598)
AugustoMauch   
2013-01-18 10:31   
Code reviewed and verified in pi@112c07c81e68
(0055632)
hudsonbot   
2013-01-18 20:26   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/4cd4a6cc38e0 [^]

Maturity status: Test
(0055714)
hudsonbot   
2013-01-22 15:32   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/449aae8be624 [^]

Maturity status: Test