Commit Graph

20 Commits

Author SHA1 Message Date
finley
d6bbf0315c refactor code structure for gnet 2025-05-25 21:06:50 +08:00
finley
f4a2c92fc1 Support failover in cluster (experimental) 2025-05-05 18:26:10 +08:00
finley
0bf068f51c other cluster codes 2025-02-03 18:38:54 +08:00
finley
b699918223 raft cluster core 2025-02-03 18:38:47 +08:00
finley
74421ba3f2 Merge branch 'feat/raft'
# Conflicts:
#	cluster/cluster.go
#	cluster/router.go
#	config/config.go
#	database/database.go
#	database/server.go
2023-06-11 13:25:41 +08:00
finley
bf7f628810 raft cluster
wip: raft does not care about migrating

wip: optimize code

wip: raft election

wip

wip: fix raft leader missing log entries

wip

fix a dead lock

batch set slot route

wip: raft persist

wip

refactor cluster suite

remove relay

rename relay2

refactor: allow customizing client factory

test raft

refactor re-balance

avoid errors caused by inconsistent status on follower nodes during raft commits

test raft election
2023-06-10 22:48:24 +08:00
xing-you-ji
1e767b6797 add aof-use-rdb-preamble 2023-04-29 20:49:42 +08:00
bijingrui
d0a7a215ba Add info command 2023-04-08 16:08:39 +08:00
bjr
d7f6420f69 Add info command (#141)
* Generate a new runid for each start of godis

* Add info command

* Add info command

* Generate a new runid for each start of godis

* Add unittests for the info command
2023-03-19 16:17:40 +08:00
finley
d399353394 add AppendFsync 2022-12-25 22:50:57 +08:00
tianyi
55fd1d399d perf: slightly optimize config/config.go
- Exclude the struct tag is space
 - Exclude configuration file comment, which is starting with space

fix: in the case of panic unexpected happened in the method parse0 of parser/parser.go, closing of the channel is needed to prevent the program from getting stuck~
  - fine-tune the coding of parser/parser.go

Limited ability, hope to make it better~
2022-11-01 22:40:20 +08:00
冯光泳
9af52bc419 bug fix: Extra double quotes 2022-10-09 20:53:56 +08:00
hdt3213
380d936ed5 replication slave side 2022-07-02 11:45:56 +08:00
hdt3213
e8891f8386 load RDB file 2022-04-18 21:00:42 +08:00
hdt3213
e91294bcf4 multi database 2021-09-05 18:57:02 +08:00
hdt3213
97d7b84276 go lint 2021-05-13 08:56:07 +08:00
hdt3213
65fc1c3e62 support auth 2021-05-09 18:37:29 +08:00
hdt3213
f1ab47bd83 add unittest for cluster 2021-05-04 20:51:55 +08:00
hdt3213
9f3ac88b36 add some unittests and bug fix 2021-05-02 18:48:44 +08:00
hdt3213
f29298cc68 refactor project structure 2021-05-02 14:54:42 +08:00