antirez
a7e66f8048
On crash suggest to give --test-memory a try.
2012-03-18 21:59:52 +01:00
antirez
9c3bc7529d
First implementation of --test-memory. Still a work in progress.
2012-03-18 21:58:24 +01:00
antirez
b3a86b8209
Fixed a few broken stuff introduced while merging issue #327 related code in 2.4
2012-02-15 15:30:29 +01:00
antirez
f27d38862d
debugging messages removed from freeMemoryIfNeeded()
2012-02-15 15:26:14 +01:00
antirez
4de73b7e0f
Fixes to c->reply_bytes computation, and debug messages to closely study the behavior of memory pressure + slaves + maxmemory + blocked slaves.
2012-02-15 15:26:08 +01:00
antirez
35a4761f1d
freeMemoryIfNeeded() minor refactoring
2012-02-15 15:22:57 +01:00
antirez
5a7999e66a
Also remove size of AOF buffers from used memory when doing the math for freeMemoryIfNeeded()
2012-02-15 15:20:46 +01:00
antirez
c63e1b83c4
This fixes issue #327 , is a very complex fix (unfortunately), details:
...
1) sendReplyToClient() now no longer stops transferring data to a single
client in the case we are out of memory (maxmemory-wise).
2) in processCommand() the idea of we being out of memory is no longer
the naive zmalloc_used_memory() > server.maxmemory. To say if we can
accept or not write queries is up to the return value of
freeMemoryIfNeeded(), that has full control about that.
3) freeMemoryIfNeeded() now does its math without considering output
buffers size. But at the same time it can't let the output buffers to
put us too much outside the max memory limit, so at the same time it
makes sure there is enough effort into delivering the output buffers to
the slaves, calling the write handler directly.
This three changes are the result of many tests, I found (partially
empirically) that is the best way to address the problem, but maybe
we'll find better solutions in the future.
2012-02-15 15:20:20 +01:00
antirez
1cd0cdd523
Set a 3.5 GB maxmemory limit with noeviction policy if a 32 bit instance without user-provided memory limits is detected.
2012-02-02 10:17:21 +01:00
antirez
f373061563
Added a server.arch_bits field instead of computing it at runtime for INFO.
2012-02-02 10:02:40 +01:00
antirez
fbfe656236
On crash print information about the current client (if any), command vector, and object associated to first argument assuming it is a key.
2012-01-12 16:16:23 +01:00
antirez
3b67a0f905
show GCC version in INFO output.
2012-01-10 18:39:32 +01:00
antirez
8b102e041a
List connected slaves with ip,port,state information in INFO, as requested by github issue #219
2012-01-07 12:44:27 +01:00
antirez
a675e5b171
two new AOF related INFO fields that can be interesting information for debugging.
2011-11-28 11:11:13 +01:00
antirez
8a82ee0f3c
better bug report info on crash (backported from unstable)
2011-11-24 15:53:35 +01:00
antirez
3852e2a831
last executed command in CLIENT LIST output.
2011-11-24 14:56:43 +01:00
antirez
a6e4627438
Close client connection and log the event when the client input buffer reaches 1GB.
2011-11-21 18:37:17 +01:00
Herbert G. Fischer
1fe4cd5de9
fixed source indenting
2011-10-18 19:03:18 -02:00
Herbert G. Fischer
7c6da7327f
Added repl_ping_slave_period and repl_timeout options support
2011-10-18 18:56:10 -02:00
antirez
a4f46f211c
Exit with Fatal error at startup if the RDB file signature or version is wrong.
...
Ref: issue #103
2011-10-14 17:04:24 +02:00
antirez
c7d23f3ed1
Fix for issue #132 . Now AUTH raises an error if no server password is configured.
2011-10-10 22:22:27 +02:00
Nathan Florea
09cefcfbb3
Added a config directive for a Unix socket mask
...
Added a configuration directive to allow a user to specify the
permissions to be granted to the Unix socket file. I followed
the format Pieter and Salvatore discusses in issue #85 (
https://github.com/antirez/redis/issues/85 ).
2011-10-10 22:08:11 +02:00
Nathan Florea
1ca8deebef
Unlink Unix socket file on shutdown
2011-10-10 22:08:03 +02:00
antirez
b7f667b553
Issue #131 . stime/utime reported in INFO was inverted. Fixed thanks to Didier Spezia.
2011-10-10 15:29:36 +02:00
antirez
b0fcf23304
hash zipmap max entries and entry size information removed from INFO command since we have this info and the equivalent info for sets, hashes, zset accessible via the CONFIG GET command.
2011-09-20 11:08:08 +02:00
vambo
57f611d953
Corrected typo in documentation for R_Zero, R_PosInf, R_NegInf, R_Nan;
2011-09-20 11:01:20 +02:00
Konstantin Tokarev
20c26321c2
Fixed compilation on Mac/PPC
...
Applied patch from Issue 119 provided by
pahowes@gmail.com
2011-09-20 10:59:47 +02:00
antirez
a511ce1b49
Include port number in error when can't bind lisetning port on startup.
2011-09-20 10:48:33 +02:00
antirez
4c2d5f0980
postpone the AOF fsync if policy is everysec and there is a background fsync already going.
2011-09-19 17:43:49 +02:00
antirez
b7bf29059e
Don't replicate/AOF SAVE
2011-09-14 13:08:19 +02:00
antirez
af14408e5c
add background jobs initialization to Redis main init function
2011-09-14 10:47:31 +02:00
antirez
2401c3eccb
added a newline for code readability
2011-09-13 12:26:38 +02:00
antirez
4a4f4cb5ff
Auto rewrite integer overflow fixed. Thanks to Gaurav for finding it (see issue 602 on google code), and Pieter Noordhuis for tracing it.
2011-08-09 11:45:57 +02:00
antirez
6c68df4f32
Close the listening sockets. Apparently this allows faster restarts.
2011-07-22 12:12:45 +02:00
antirez
8b58723eb2
prepareForShutdown() fixed for correctness regarding what to do with AOF and RDB persistence on exit.
2011-07-22 11:55:34 +02:00
antirez
3a4afb0473
Manual merge after cherry-pick
2011-07-12 10:03:22 +02:00
antirez
63aed54a27
Take a pointer to the relevant entry of the command table in the client structure. This is generally a more sounding design, simplifies a few functions prototype, and as a side effect fixes a bug related to the conversion of EXPIRE -1 to DEL: before of this fix Redis tried to convert it into an EXPIREAT in the AOF code, regardless of our rewrite of the command.
2011-07-12 10:00:12 +02:00
antirez
d229160e18
childrens -> children in INFO output field names. This is a backward incompatible change, but really a minimal one.
2011-07-02 10:51:35 +02:00
antirez
5dc2a4885d
no more allocation stats info in INFO, useless now that we have jemalloc.
2011-07-02 10:25:35 +02:00
antirez
99509ab257
slow log merged into 2.4
2011-07-02 00:24:11 +02:00
antirez
5d5fe340e0
new INFO filed master_link_down_since_seconds
2011-06-17 16:13:22 +02:00
Hampus Wessman
b90c72c86a
Fix automatic rewrite starting too early.
...
Slight adjustment in growth calculation.
2011-06-14 10:29:24 +02:00
antirez
61751a4dc4
AOF auto rewrite backported to 2.4
2011-06-10 18:31:27 +02:00
antirez
27c8f84c66
INFO now contains the time (in usecs) needed to fork() in order to persist. The info is available in the stats section of INFO.
2011-06-08 23:20:11 +02:00
antirez
0042a2d737
jemalloc support backported in 2.4 using part of the Pieter Noordhuis and Didier Spezia original implementations
2011-06-01 16:52:53 +02:00
antirez
45df42c9fe
Variadic ZADD
2011-05-31 20:37:08 +02:00
antirez
913090ec63
Variadic ZREM
2011-05-31 20:33:47 +02:00
Pieter Noordhuis
ecfc0583da
Configurable synchronous I/O timeout
2011-05-22 12:57:56 +02:00
antirez
deff2338fa
Merge remote branch 'pietern/2.4-misc' into 2.4
2011-05-05 16:50:28 +02:00
Pieter Noordhuis
a244985d1d
Show memory allocator in INFO output
2011-04-27 13:35:49 +02:00