Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
e82d416b
Commit
e82d416b
authored
5 years ago
by
Vivek Naik
Browse files
Options
Downloads
Patches
Plain Diff
updating lazy interval time for corefdb
parent
d29cb538
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!119
15 Oct MEP Merge Dev to Stg
,
!116
feature of lazy append
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dalmdl/corefdb/lazyIndex.go
+7
-6
dalmdl/corefdb/lazyIndex.go
with
7 additions
and
6 deletions
dalmdl/corefdb/lazyIndex.go
+
7
−
6
View file @
e82d416b
...
...
@@ -22,10 +22,11 @@ var IndexLazyObjHolder cachemdl.FastCacheHelper
var
AppendLazyObjHolder
cachemdl
.
FastCacheHelper
const
(
maxObjetsCnt
int
=
100000
maxRetryCnt
int
=
5
intervalTime
int
=
5
sleepTime
int
=
5
maxObjetsCnt
int
=
100000
maxRetryCnt
int
=
5
intervalTimeForLazyIndexWrite
int
=
60
intervalTimeForLazyAppendWrite
int
=
60
sleepTime
int
=
5
// NoExpiration -
NoExpiration
time
.
Duration
=
-
1
...
...
@@ -36,13 +37,13 @@ const (
func
init
()
{
// loggermdl.LogError("init lazyIndex")
// start process for lazy index file operations
IndexMaster
.
StartProcess
(
maxObjetsCnt
,
lazyIndexProcessName
,
intervalTime
,
sleepTime
,
maxRetryCnt
,
false
)
IndexMaster
.
StartProcess
(
maxObjetsCnt
,
lazyIndexProcessName
,
intervalTime
ForLazyIndexWrite
,
sleepTime
,
maxRetryCnt
,
false
)
// loggermdl.LogError("Lazy writer process started")
// initialize a map to hold lazy writer objects for the index file data
IndexLazyObjHolder
.
Setup
(
10000
,
NoExpiration
,
NoExpiration
)
// start process for lazy Append file operations
AppendMaster
.
StartProcess
(
maxObjetsCnt
,
lazyAppendProcessName
,
intervalTime
,
sleepTime
,
maxRetryCnt
,
false
)
AppendMaster
.
StartProcess
(
maxObjetsCnt
,
lazyAppendProcessName
,
intervalTime
ForLazyAppendWrite
,
sleepTime
,
maxRetryCnt
,
false
)
// initialize a map to hold lazy writer objects for the append file data
AppendLazyObjHolder
.
Setup
(
10000
,
NoExpiration
,
NoExpiration
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets