Michael Kublin has uploaded a new change for review.

Change subject: engine: Adding quartz configuration to standalone.xml
......................................................................

engine: Adding quartz configuration to standalone.xml

In order to configure a quartz scheduler his configuration values should be
inside standalone.xml
Removing old configuration file, which is not needed anymore

Change-Id: I3e6f881ff7a8f080de5f18d295b72ceb0d478347
Signed-off-by: Michael Kublin <[email protected]>
---
M backend/manager/conf/standalone.xml
D backend/manager/modules/utils/src/main/resources/quartz.properties
M packaging/services/ovirt-engine.xml.in
3 files changed, 12 insertions(+), 22 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/04/14504/1

diff --git a/backend/manager/conf/standalone.xml 
b/backend/manager/conf/standalone.xml
index f573019..15bc5c5 100644
--- a/backend/manager/conf/standalone.xml
+++ b/backend/manager/conf/standalone.xml
@@ -32,6 +32,12 @@
 
       <!-- Don't let quartz call home to check for updates: -->
       <property name="org.quartz.scheduler.skipUpdateCheck" value="true"/>
+      
+      <!-- Configure quartz thread pool: -->
+      <property name="org.quartz.threadPool.class" 
value="org.quartz.simpl.SimpleThreadPool"/>
+      <property name="org.quartz.threadPool.threadCount" value="100"/>
+      <property name="org.quartz.jobStore.misfireThreshold" value="60000"/>
+      <property name="org.quartz.jobStore.class" 
value="org.quartz.simpl.RAMJobStore"/>
 
       <!-- Enable compression for html content and REST API: -->
       <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" 
value="on"/>
diff --git a/backend/manager/modules/utils/src/main/resources/quartz.properties 
b/backend/manager/modules/utils/src/main/resources/quartz.properties
deleted file mode 100644
index d2f74ec..0000000
--- a/backend/manager/modules/utils/src/main/resources/quartz.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-#===============================================================
-# Configure Main Scheduler Properties
-#===============================================================
-
-org.quartz.scheduler.instanceName = QuartzScheduler
-org.quartz.scheduler.instanceId = AUTO
-org.quartz.scheduler.skipUpdateCheck = true
-
-#===============================================================
-# Configure ThreadPool
-#===============================================================
-
-org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
-org.quartz.threadPool.threadCount =  100
-org.quartz.threadPool.threadPriority = 5
-
-#===============================================================
-# Configure JobStore
-#===============================================================
-
-org.quartz.jobStore.misfireThreshold = 60000
-org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
\ No newline at end of file
diff --git a/packaging/services/ovirt-engine.xml.in 
b/packaging/services/ovirt-engine.xml.in
index 26805ed..6d02750 100644
--- a/packaging/services/ovirt-engine.xml.in
+++ b/packaging/services/ovirt-engine.xml.in
@@ -23,6 +23,12 @@
     <!-- Don't let quartz call home to check for updates: -->
     <property name="org.quartz.scheduler.skipUpdateCheck" value="true"/>
 
+    <!-- Configure quartz thread pool: -->
+    <property name="org.quartz.threadPool.class" 
value="org.quartz.simpl.SimpleThreadPool"/>
+    <property name="org.quartz.threadPool.threadCount" value="100"/>
+    <property name="org.quartz.jobStore.misfireThreshold" value="60000"/>
+    <property name="org.quartz.jobStore.class" 
value="org.quartz.simpl.RAMJobStore"/>
+
     <!-- Enable compression for html content and REST api -->
     <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" 
value="on"/>
     <property 
name="org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPES" 
value="text/javascript,text/css,text/html,text/xml,text/json,application/x-yaml,application/xml,application/json"/>


--
To view, visit http://gerrit.ovirt.org/14504
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3e6f881ff7a8f080de5f18d295b72ceb0d478347
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Michael Kublin <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to