forked from distributedio/titan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move interval to config file from gc/expire work
- Loading branch information
zhs
committed
Feb 11, 2019
1 parent
4e1b941
commit 62d23d8
Showing
12 changed files
with
130 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package conf | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
func MockConf() *Titan { | ||
return &Titan{ | ||
Tikv: Tikv{ | ||
PdAddrs: "mocktikv://", | ||
GC: GC{ | ||
Interval: time.Second, | ||
LeaderLifeTime: 3 * time.Minute, | ||
BatchLimit: 256, | ||
}, | ||
Expire: Expire{ | ||
Interval: time.Second, | ||
LeaderLifeTime: 3 * time.Minute, | ||
BatchLimit: 256, | ||
}, | ||
ZT: ZT{ | ||
Wrokers: 5, | ||
BatchCount: 10, | ||
QueueDepth: 100, | ||
Interval: 1000 * time.Millisecond, | ||
}, | ||
TikvGC: TikvGC{ | ||
Interval: 20 * time.Minute, | ||
LeaderLifeTime: 30 * time.Minute, | ||
SafePointLifeTime: 10 * time.Minute, | ||
Concurrency: 2, | ||
}, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters