Commit e82d416b authored by Vivek Naik's avatar Vivek Naik
Browse files

updating lazy interval time for corefdb

parent d29cb538
Branches
Tags
2 merge requests!11915 Oct MEP Merge Dev to Stg,!116feature of lazy append
Showing with 7 additions and 6 deletions
...@@ -22,10 +22,11 @@ var IndexLazyObjHolder cachemdl.FastCacheHelper ...@@ -22,10 +22,11 @@ var IndexLazyObjHolder cachemdl.FastCacheHelper
var AppendLazyObjHolder cachemdl.FastCacheHelper var AppendLazyObjHolder cachemdl.FastCacheHelper
const ( const (
maxObjetsCnt int = 100000 maxObjetsCnt int = 100000
maxRetryCnt int = 5 maxRetryCnt int = 5
intervalTime int = 5 intervalTimeForLazyIndexWrite int = 60
sleepTime int = 5 intervalTimeForLazyAppendWrite int = 60
sleepTime int = 5
// NoExpiration - // NoExpiration -
NoExpiration time.Duration = -1 NoExpiration time.Duration = -1
...@@ -36,13 +37,13 @@ const ( ...@@ -36,13 +37,13 @@ const (
func init() { func init() {
// loggermdl.LogError("init lazyIndex") // loggermdl.LogError("init lazyIndex")
// start process for lazy index file operations // start process for lazy index file operations
IndexMaster.StartProcess(maxObjetsCnt, lazyIndexProcessName, intervalTime, sleepTime, maxRetryCnt, false) IndexMaster.StartProcess(maxObjetsCnt, lazyIndexProcessName, intervalTimeForLazyIndexWrite, sleepTime, maxRetryCnt, false)
// loggermdl.LogError("Lazy writer process started") // loggermdl.LogError("Lazy writer process started")
// initialize a map to hold lazy writer objects for the index file data // initialize a map to hold lazy writer objects for the index file data
IndexLazyObjHolder.Setup(10000, NoExpiration, NoExpiration) IndexLazyObjHolder.Setup(10000, NoExpiration, NoExpiration)
// start process for lazy Append file operations // start process for lazy Append file operations
AppendMaster.StartProcess(maxObjetsCnt, lazyAppendProcessName, intervalTime, sleepTime, maxRetryCnt, false) AppendMaster.StartProcess(maxObjetsCnt, lazyAppendProcessName, intervalTimeForLazyAppendWrite, sleepTime, maxRetryCnt, false)
// initialize a map to hold lazy writer objects for the append file data // initialize a map to hold lazy writer objects for the append file data
AppendLazyObjHolder.Setup(10000, NoExpiration, NoExpiration) AppendLazyObjHolder.Setup(10000, NoExpiration, NoExpiration)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment