Commit Graph

45 Commits

Author SHA1 Message Date
finley
b699918223 raft cluster core 2025-02-03 18:38:47 +08:00
文强
ff67ac3bb0 update: 解析RDB格式错误处理 2024-07-12 20:55:56 +08:00
GongHongjun
43c378cd45 优化MultiBulkReply.ToBytes中内存分配的方式(提前分配);避免使用concatstrings和slicebytetostring以提高性能; 2024-03-26 10:44:57 +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
226Charles
5c4e85c45a fix Error() 2023-04-15 21:30:44 +08:00
finley
0d96ad295d re-generate aof file during load database from replication master; Allow master-slave role switching 2022-12-20 23:05:07 +08:00
finley
a5908f5ea4 rewrite backlog 2022-12-05 22:00:01 +08:00
finley
ba7ea942cb replication master side 2022-11-30 21:22:03 +08:00
Tianyi Zheng
a7a3da6e49 perf: pooled connection`s instantiation
- pooled connection: reduce the pressure on the GC to process heap memory objects with high concurrent "connection"
2022-11-27 19:39:09 +08:00
finley
febb83cb5c improve replication; support partial sync 2022-11-18 21:37:34 +08:00
finley
72c263969c refactor redis protocol parser 2022-11-08 22:11:39 +08:00
zhengtianyi
624f7c7926 perf: slightly optimize the value`s type of map to save memory space in file redis/server/server.go
Limited ability, hope to make it better~
2022-11-02 11:45:58 +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
finley
894be52c31 bug fix: null bulk reply bytes 2022-10-02 15:50:14 +08:00
finley
f160dcfcc9 bug fix: null bulk reply bytes 2022-09-30 14:25:12 +08:00
finley
9da335811f tiny fixes 2022-08-20 23:25:26 +08:00
finley
e6d958716d quick list 2022-07-31 02:07:45 +08:00
finley
9e155a617c bug fix: do not client during closing 2022-07-04 20:50:16 +08:00
finley
45edbdd7c7 fix: client connection error 2022-07-03 17:56:30 +08:00
hdt3213
380d936ed5 replication slave side 2022-07-02 11:45:56 +08:00
hdt3213
3605f09def cluster test suite 2022-04-13 23:10:23 +08:00
hdt3213
37ef7d8a34 rename godis/redis/reply to godis/redis/protocol 2022-04-10 08:35:51 +08:00
hdt3213
e2a1bbbe7d tiny bug fix 2022-04-03 19:22:18 +08:00
hdt3213
38001a2d18 go lint 2021-11-08 23:24:43 +08:00
hdt3213
4163a45278 optimize project structure 2021-11-08 23:05:53 +08:00
hdt3213
e91294bcf4 multi database 2021-09-05 18:57:02 +08:00
hdt3213
ae25076689 support watch command 2021-06-20 16:37:10 +08:00
hdt3213
5d05e2e613 support multi commands transaction in cluster mode 2021-06-20 10:19:32 +08:00
youguanxinqing
37b0a34717 uniform code style 2021-06-15 01:05:06 +08:00
youguanxinqing
602acf4286 optimize trimming suffix '\r\n' of string 2021-06-15 01:04:28 +08:00
hdt3213
67c385ee4a support multi transaction 2021-06-15 01:03:13 +08:00
hdt3213
9d03314359 tiny fix 2021-06-15 01:03:13 +08:00
youguanxinqing
083d5b325e fix typo 2021-06-12 21:30:51 +08:00
hdt3213
f1455534d4 refactor command table 2021-05-27 21:54:33 +08:00
hdt3213
97d7b84276 go lint 2021-05-13 08:56:07 +08:00
hdt3213
721d9c31a7 refactor project structure 2021-05-09 22:12:47 +08:00
hdt3213
65fc1c3e62 support auth 2021-05-09 18:37:29 +08:00
hdt3213
18d2cbb29b add unittests and bug fix 2021-05-05 21:04:27 +08:00
hdt3213
f1ab47bd83 add unittest for cluster 2021-05-04 20:51:55 +08:00
hdt3213
eeebbbcccf bug fix 2021-05-02 19:00:44 +08:00
hdt3213
9f3ac88b36 add some unittests and bug fix 2021-05-02 18:48:44 +08:00
hdt3213
ab2cb554fa add travis.yml 2021-05-02 16:31:41 +08:00
hdt3213
f29298cc68 refactor project structure 2021-05-02 14:54:42 +08:00