hwware
12bb6b0f08
Fix not used marco in cluster.c
2020-04-30 13:02:58 +02:00
yanhui13
782d9f2ff9
optimize the output of cluster slots
2020-04-24 10:15:04 +02:00
antirez
f066273907
Tracking: NOLOOP internals implementation.
2020-04-24 10:14:48 +02:00
antirez
533fd1fe7b
RDB: load files faster avoiding useless free+realloc.
...
Reloading of the RDB generated by
DEBUG POPULATE 5000000
SAVE
is now 25% faster.
This commit also prepares the ability to have more flexibility when
loading stuff from the RDB, since we no longer use dbAdd() but can
control exactly how things are added in the database.
2020-04-15 16:03:16 +02:00
hwware
71f6e21cea
fix spelling in cluster.c
2020-04-07 16:52:04 +02:00
Yossi Gottlieb
1f1d642e01
Cluster: fix misleading accept errors.
2020-03-25 15:55:24 +01:00
hwware
04d838274f
add missing commands in cluster help
2020-03-25 15:55:24 +01:00
Itamar Haber
2eec521f8c
Adds keyspace notifications to migrate and restore
2020-03-25 15:54:34 +01:00
antirez
dff5370c8b
Simplify #6379 changes.
2020-01-17 10:47:38 +01:00
WuYunlong
1588f30ae2
Fix potential memory leak of clusterLoadConfig().
2020-01-17 10:47:38 +01:00
antirez
4eae0cdba7
Add some comment to PR #6144 changes.
2019-12-17 09:19:47 +01:00
Madelyn Olson
1ce271b9b4
Split error message so dependandent callers give a useful result
2019-12-16 23:34:37 -08:00
Madelyn Olson
d9c79ff75c
Add configuration option for allowing reads on cluster down
2019-12-16 23:33:16 -08:00
Oran Agra
86e1f73bd6
rename RN_SetLRUOrLFU -> RM_SetLRU and RN_SetLFU
...
- the API name was odd, separated to two apis one for LRU and one for LFU
- the LRU idle time was in 1 second resolution, which might be ok for RDB
and RESTORE, but i think modules may need higher resolution
- adding tests for LFU and for handling maxmemory policy mismatch
2019-11-10 09:27:01 +02:00
Yossi Gottlieb
85d7f38136
Merge remote-tracking branch 'upstream/unstable' into tls
2019-10-16 17:08:07 +03:00
Oran Agra
8704be6947
TLS: Implement support for write barrier.
2019-10-07 21:06:30 +03:00
Yossi Gottlieb
10ffeb03e4
TLS: Connections refactoring and TLS support.
...
* Introduce a connection abstraction layer for all socket operations and
integrate it across the code base.
* Provide an optional TLS connections implementation based on OpenSSL.
* Pull a newer version of hiredis with TLS support.
* Tests, redis-cli updates for TLS support.
2019-10-07 21:06:13 +03:00
Oran Agra
dd99293067
fix issues found by a static analyzer
...
cluster.c - stack buffer memory alignment
The pointer 'buf' is cast to a more strictly aligned pointer type
evict.c - lazyfree_lazy_eviction, lazyfree_lazy_eviction always called
defrag.c - bug in dead code
server.c - casting was missing parenthesis
rax.c - indentation / newline suggested an 'else if' was intended
2019-10-07 09:09:32 +03:00
antirez
2c96a98ed8
RESP3: Use verbatim in CLUSTER subcommands.
2019-09-18 18:51:15 +02:00
antirez
4ff08c8657
Cluster: abort loading nodes data if vars arguments are unbalanced.
...
See for reference PR #6337 . Thanks to @git-hulk for spotting this.
2019-09-02 11:41:20 +02:00
Madelyn Olson
dedbc9d4d2
Removed unecessary creation of Redis objects
2019-07-22 22:52:16 -07:00
Yossi Gottlieb
dd405d4026
Add RedisModule_GetKeyNameFromIO().
2019-03-15 10:23:27 +02:00
chendianqiang
934dbc25df
optimize cluster failover
2019-03-01 15:28:21 +08:00
antirez
c8304b099d
RESP3: most null replies converted.
2019-01-09 17:00:29 +01:00
antirez
43ee60204f
RESP3: Use new aggregate reply API in cluster.c.
2019-01-09 17:00:29 +01:00
antirez
63787d5cbc
Use guide comments to make changes in #5462 more obvious.
2018-10-22 17:43:48 +02:00
youjiali1995
e29c6573b9
migrate: fix mismatch of RESTORE reply when some keys have expired.
2018-10-18 18:57:51 +08:00
antirez
587db27252
Module cluster flags: add RM_SetClusterFlags() API.
2018-09-19 12:02:37 +02:00
antirez
6b30cb52da
Module cluster flags: add hooks for NO_FAILOVER flag.
2018-09-19 11:43:37 +02:00
antirez
ebf0968a38
Module cluster flags: add hooks for NO_REDIRECTION flag.
2018-09-19 11:31:22 +02:00
antirez
96ceafbe4d
Module cluster flags: initial vars / defines added.
2018-09-19 11:20:52 +02:00
antirez
3b87cad43d
Slave removal: Convert cluster.c log messages and command names.
2018-09-11 15:32:28 +02:00
antirez
b20e5b3aa3
Cluster cron announce IP minor refactoring.
2018-07-31 17:13:03 +02:00
shenlongxing
0497fb5a00
Fix cluster-announce-ip memory leak
2018-07-31 16:01:44 +08:00
antirez
de401f46fd
Example the magic +1 in migrateCommand().
...
Related to #5154 .
2018-07-24 17:31:43 +02:00
antirez
61ca1840f1
Make changes of PR #5154 hopefully simpler.
2018-07-24 17:27:43 +02:00
WuYunlong
eba8dbdce4
Do not migrate already expired keys.
2018-07-21 10:00:32 +08:00
Jack Drogon
bae1d36e5d
Fix typo
2018-07-03 18:19:46 +02:00
antirez
938d879c2a
addReplySubSyntaxError() renamed to addReplySubcommandSyntaxError().
2018-07-02 18:49:34 +02:00
Salvatore Sanfilippo
c44be0ab9b
Merge pull request #4998 from itamarhaber/module_command_help
...
Module command help
2018-07-02 18:46:56 +02:00
Guy Benoish
52e246cdb3
Fix compiler warning in restoreCommand
2018-06-24 16:53:01 +07:00
Guy Benoish
4330bc3e3a
Enhance RESTORE with RDBv9 new features
...
RESTORE now supports:
1. Setting LRU/LFU
2. Absolute-time TTL
Other related changes:
1. RDB loading will not override LRU bits when RDB file
does not contain the LRU opcode.
2. RDB loading will not set LRU/LFU bits if the server's
maxmemory-policy does not match.
2018-06-20 15:11:08 +07:00
antirez
d6cb53ee07
Modify clusterRedirectClient() to handle ZPOP and XREAD.
2018-06-19 15:53:32 +02:00
Itamar Haber
852a6b305e
Capitalizes subcommands & orders lexicographically
2018-06-09 21:03:52 +03:00
Itamar Haber
8f2e77dd23
Globally applies addReplySubSyntaxError
2018-06-07 18:39:36 +03:00
antirez
482a5dcefa
Typo: entires -> entries in several places.
2018-06-07 14:36:56 +02:00
shenlongxing
a35bf3f130
Fix write() errno error
2018-06-06 13:06:42 +02:00
antirez
055ab3623b
Modules Cluster API: make node IDs pointers constant.
2018-03-30 13:16:07 +02:00
antirez
72f11ded18
Modules Cluster API: message bus implementation.
2018-03-29 15:13:31 +02:00
Salvatore Sanfilippo
91030e4d18
Merge pull request #4722 from charsyam/feature/refactoring-call-aeDeleteFileEvent-twice-in-freeClusterLink
...
Refactoring to call aeDeleteFileEvent twice as once
2018-03-22 16:23:40 +01:00