Commit Graph

4 Commits

Author SHA1 Message Date
yangjun289519474 cf4944894d
Add sqlite, miniredis as mysql, redis mock suite, to f… (#293)
* test(manager): add sqlite, miniredis as mysql, redis mock suite, to fix manager unit test

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

* fix(manager): add sync.Mutex when get/set leaseid

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

* feat(manager): modify manager store config, add yaml config exaple

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

* feat(manager): modify manager store config, add yaml config exaple

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

* fix(manager): add comment for StoreSource

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

Co-authored-by: hanson.yj <hanson.yj@alibaba-inc.com>
2023-06-28 17:22:41 +08:00
yangjun289519474 1fb834edc2
refactor(manager): modify mysql table schema, orm json tag. (#283)
Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

Co-authored-by: hanson.yj <hanson.yj@alibaba-inc.com>
2023-06-28 17:22:40 +08:00
yangjun289519474 badd1ef73c
Add go-cache as local cache, add redis as distributed (#272)
* feat(manager): add go-cache as local cache, add redis as distributed cache, add lease based on mysql as manager keepalive owner

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

* feat(manager): delete mock config

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

* feat(manager): modify sch to scheduler, and replace with GetWithExpiration when call Get method of go-cache

Signed-off-by: hanson.yj <hanson.yj@alibaba-inc.com>

Co-authored-by: hanson.yj <hanson.yj@alibaba-inc.com>
2023-06-28 17:22:39 +08:00
sunwp a89e915aee
feature: remove redundant configurations (#216)
* feature: remove redundant configurations

Signed-off-by: santong <weipeng.swp@alibaba-inc.com>
2023-06-28 17:22:29 +08:00