summaryrefslogtreecommitdiff
path: root/nms_sync/conf
diff options
context:
space:
mode:
Diffstat (limited to 'nms_sync/conf')
-rw-r--r--nms_sync/conf/config.properties4
-rw-r--r--nms_sync/conf/log4j.properties4
-rw-r--r--nms_sync/conf/quartz.properties28
3 files changed, 32 insertions, 4 deletions
diff --git a/nms_sync/conf/config.properties b/nms_sync/conf/config.properties
index 33a36dd..70d23fa 100644
--- a/nms_sync/conf/config.properties
+++ b/nms_sync/conf/config.properties
@@ -1,7 +1,7 @@
#\u4e3b\u5e93\u540c\u6b65\u5206\u5e93\u6570\u636e\u7ebf\u7a0b\u65f6\u95f4\u5dee
-syncMaterToSlaveTime=30000
+syncMaterToSlaveTime=10
#\u4e3b\u5e93\u540c\u6b65\u5206\u5e93\u6570\u636e\u7ebf\u7a0b\u65f6\u95f4\u5dee
-syncSlaveToMaterTime=60000
+syncSlaveToMaterTime=15
#从库向主库同步的线程池数量
slave.to.master.pool.num=3
#主库向从库同步的线程池数量
diff --git a/nms_sync/conf/log4j.properties b/nms_sync/conf/log4j.properties
index 10f0a91..b27d393 100644
--- a/nms_sync/conf/log4j.properties
+++ b/nms_sync/conf/log4j.properties
@@ -1,10 +1,10 @@
-log4j.rootLogger=DEBUG, stdout, file
+log4j.rootLogger=INFO, stdout, file
#log4j.rootLogger=ERROR, stdout, file
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%n%-d{yyyy-MM-dd HH:mm:ss}%n[%p]-[Thread: %t]-[%C.%M()]: %m%n
log4j.appender.stdout.layout.ConversionPattern=%d %p (%F:%L) [%t] - <%m>%n
-
+log4j.logger.com.nms=debug
# Output to the File
#log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.file.DatePattern='_'yyyy-MM-dd'.log'
diff --git a/nms_sync/conf/quartz.properties b/nms_sync/conf/quartz.properties
new file mode 100644
index 0000000..426960d
--- /dev/null
+++ b/nms_sync/conf/quartz.properties
@@ -0,0 +1,28 @@
+#################### quartz 相关配置文件 #########################
+
+#Main Scheduler Settings
+org.quartz.scheduler.instanceName=NMSSync
+org.quartz.scheduler.instanceId=AUTO
+org.quartz.scheduler.threadsInheritContextClassLoaderOfInitializer=true
+org.quartz.scheduler.skipUpdateCheck=true
+org.quartz.scheduler.batchTriggerAcquisitionMaxCount=100
+org.quartz.threadPool.threadCount=10
+
+#Configure JDBC-JobStoreTX
+org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
+org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
+org.quartz.jobStore.tablePrefix=QRTZ_
+org.quartz.jobStore.isClustered=true
+org.quartz.jobStore.acquireTriggersWithinLock=true
+org.quartz.jobStore.clusterCheckinInterval = 30000
+org.quartz.jobStore.dataSource=qzDS
+
+#============================================================================
+# Configure Datasources
+#============================================================================
+#JDBC驱动
+org.quartz.dataSource.qzDS.driver=com.mysql.jdbc.Driver
+#在程序里赋值
+#org.quartz.dataSource.qzDS.URL=jdbc:mysql://localhost:3306/quartz
+#org.quartz.dataSource.qzDS.user=root
+#org.quartz.dataSource.qzDS.password=christmas258@ \ No newline at end of file