Salvatore Sanfilippo
ff1b36c825
Merge pull request #5426 from soloestoy/feature-xstream
...
Bugfix data inconsistency after aof rewrite, and add XSTREAM command.
2018-10-16 13:10:36 +02:00
antirez
b10d99a13b
Fix propagation of consumer groups last ID.
...
Issue #5433 .
2018-10-10 12:51:02 +02:00
zhaozhao.zz
7e2c73d79b
Streams: add a new command XTREAM
...
XSTREAM CREATE <key> <id or *> -- Create a new empty stream.
XSTREAM SETID <key> <id or $> -- Set the current stream ID.
2018-10-09 13:11:04 +08:00
antirez
c58c884484
Fix printf type mismatch in genRedisInfoString().
2018-10-02 16:26:30 +02:00
Salvatore Sanfilippo
159531c1c9
Merge pull request #5242 from oranagra/script_mem
...
script cache memory in INFO and MEMORY includes both script code and overheads
2018-10-02 16:03:05 +02:00
Salvatore Sanfilippo
b111d8c5f9
Merge pull request #5398 from bmerry/fix-zrealloc-accounting
...
Fix incorrect memory usage accounting in zrealloc
2018-10-01 13:28:53 +02:00
Bruce Merry
84f851719b
Fix incorrect memory usage accounting in zrealloc
...
When HAVE_MALLOC_SIZE is false, each call to zrealloc causes used_memory
to increase by PREFIX_SIZE more than it should, due to mis-matched
accounting between the original zmalloc (which includes PREFIX size in
its increment) and zrealloc (which misses it from its decrement).
I've also supplied a command-line test to easily demonstrate the
problem. It's not wired into the test framework, because I don't know
TCL so I'm not sure how to automate it.
2018-09-30 11:49:03 +02:00
Oran Agra
65590b2c5c
fix #5024 - commandstats for multi-exec were logged as EXEC.
...
this was broken a while back by ba9154d7e7bf959b002533384319a1e90545447b
the purpose of which was to fix commandstats for GEOADD
2018-09-30 12:43:11 +03: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
55d85db425
LOLWUT: wrap it into a proper command.
2018-09-12 11:34:10 +02:00
antirez
706c5e8889
Slave removal: server.c logs fixed.
2018-09-11 15:32:28 +02:00
antirez
bdca5b9be5
Slave removal: SLAVEOF -> REPLICAOF. SLAVEOF is now an alias.
2018-09-11 15:32:28 +02:00
Salvatore Sanfilippo
d214436bc7
Merge pull request #5322 from youjiali1995/fix-sentinel-randomize
...
sentinel: fix randomized sentinelTimer.
2018-09-07 12:10:35 +02:00
antirez
39e09ea84c
Use commands (effects) replication by default in scripts.
...
See issue #5250 and issue #5292 for more info.
2018-09-05 19:33:56 +02:00
antirez
042ee28b09
Don't perform eviction when re-entering the event loop.
...
Related to #5250 .
2018-09-05 13:10:07 +02:00
youjiali1995
219c5fbb1b
sentinel: fix randomized sentinelTimer.
2018-09-05 10:32:18 +08:00
antirez
e789b562f3
While the slave is busy, just accumulate master input.
...
Processing command from the master while the slave is in busy state is
not correct, however we cannot, also, just reply -BUSY to the
replication stream commands from the master. The correct solution is to
stop processing data from the master, but just accumulate the stream
into the buffers and resume the processing later.
Related to #5297 .
2018-08-31 16:45:02 +02:00
antirez
15334f5355
Allow scripts to timeout on slaves as well.
...
See reasoning in #5297 .
2018-08-31 16:45:01 +02:00
zhaozhao.zz
5e47f656df
Supplement to PR #4835 , just take info/memory/command as random commands
2018-08-29 18:23:05 +08:00
Salvatore Sanfilippo
bc9de3b4cf
Merge pull request #4835 from soloestoy/command-script-flag
...
some commands' flags should be set correctly, issue #4834
2018-08-29 12:13:50 +02:00
zhaozhao.zz
ca3d37a4fe
some commands' flags should be set correctly, issue #4834
2018-08-29 18:07:01 +08:00
antirez
d85194c4e1
Introduce repl_slave_ignore_maxmemory flag internally.
...
Note: this breaks backward compatibility with Redis 4, since now slaves
by default are exact copies of masters and do not try to evict keys
independently.
2018-08-27 12:20:27 +02:00
antirez
b36fbe9c04
Better variable meaning in processCommand().
2018-08-27 12:17:34 +02:00
zhaozhao.zz
b448b16718
block: rewrite BRPOPLPUSH as RPOPLPUSH to propagate
2018-08-14 20:58:58 +08:00
Oran Agra
cdda01edef
script cache memory in INFO and MEMORY includes both script code and overheads
2018-08-13 17:36:54 +03:00
shenlongxing
7a184d7916
Fix stream command paras
2018-08-03 19:01:15 +08:00
antirez
f281d343a7
Refactoring: replace low-level checks with writeCommandsDeniedByDiskError().
2018-07-31 13:16:43 +02:00
antirez
0a64aa5ca6
Fix writeCommandsDeniedByDiskError() inverted return value.
2018-07-31 13:14:24 +02:00
antirez
7f155b781c
Better top comment for writeCommandsDeniedByDiskError().
2018-07-31 13:10:37 +02:00
antirez
8442c25722
Introduce writeCommandsDeniedByDiskError().
2018-07-31 13:09:38 +02:00
Pavel Rochnyack
a6f173525f
INFO CPU: higher precision of reported values
...
Closes : #5033
2018-07-30 18:06:22 +02:00
antirez
c49312cfda
Add year in log.
...
User: "is there a reason why redis server logs are missing the year in
the "date time"?"
Me: "I guess I did not imagine it would be stable enough to run for
several years".
2018-07-30 17:42:30 +02:00
antirez
1a722347b0
Control dynamic HZ via server configuration.
2018-07-30 13:37:30 +02:00
antirez
f3bf122c28
Merge branch 'dynamic-hz' into unstable
2018-07-30 13:31:23 +02:00
Salvatore Sanfilippo
63171b81b0
Merge pull request #4883 from itamarhaber/lua_scripts-in-info-memory
...
Adds memory information about the scripts' cache to INFO
2018-07-23 18:43:05 +02:00
antirez
89c6c7bd88
Dynamic HZ: adapt cron frequency to number of clients.
2018-07-23 14:21:04 +02:00
antirez
2f58f65ee8
Dynamic HZ: separate hz from the configured hz.
...
This way we can remember what the user configured HZ is, but change the
actual HZ dynamically if needed in the dynamic HZ feature
implementation.
2018-07-23 14:13:58 +02:00
antirez
b8e5d07583
Top comment clientsCron().
2018-07-20 09:46:18 +02:00
antirez
e345c28a3e
Clarify that clientsCronTrackExpansiveClients() indexes may jump ahead.
2018-07-20 09:36:48 +02:00
antirez
cb09197bd3
Rename INFO CLIENT max buffers field names for correctness.
...
They are actually delayed a few seconds, so let's call them "recent".
2018-07-19 17:38:20 +02:00
antirez
3e2ee92a9f
Fix wrong array index variable in getExpansiveClientsInfo().
2018-07-19 17:34:15 +02:00
antirez
2ee6381793
Change INFO CLIENTS sections to report pre-computed max/min client buffers.
2018-07-19 17:16:19 +02:00
antirez
3172451810
Rename var in clientsCronTrackExpansiveClients() for clarity.
2018-07-19 13:59:13 +02:00
antirez
d9eac8af47
Implement a function to retrieve the expansive clients mem usage.
2018-07-19 13:58:04 +02:00
antirez
e88cf71692
clientsCronTrackExpansiveClients() actual implementation.
2018-07-19 13:54:20 +02:00
antirez
f34e96cdeb
clientsCronTrackExpansiveClients() skeleton and ideas.
2018-07-19 13:49:00 +02:00
antirez
6a3e9a020f
Make vars used only by INFO CLIENTS local to the block.
...
Related to #4727 .
2018-07-19 12:23:05 +02:00
Salvatore Sanfilippo
479882adc4
Merge pull request #4727 from kingpeterpaule/redis-fix-info-cli
...
move getClientsMaxBuffers func into info clients command
2018-07-19 12:21:35 +02:00
Salvatore Sanfilippo
29701759cd
Merge pull request #5122 from trevor211/allowWritesWhenAofDisabled
...
Accept write commands if persisting is disabled
2018-07-17 18:08:46 +02:00