limit the size of pending-querybuf in masterclient

This commit is contained in:
chendianqiang
2018-07-01 14:43:53 +08:00
parent 3d5e2c62e2
commit 7de1ada070
4 changed files with 48 additions and 0 deletions

View File

@ -184,6 +184,7 @@ typedef long long mstime_t; /* millisecond time type. */
#define PROTO_MBULK_BIG_ARG (1024*32)
#define LONG_STR_SIZE 21 /* Bytes needed for long -> str + '\0' */
#define AOF_AUTOSYNC_BYTES (1024*1024*32) /* fdatasync every 32MB */
#define LIMIT_PENDING_QUERYBUF (4*1024*1024) /* 4mb */
/* When configuring the server eventloop, we setup it so that the total number
* of file descriptors we can handle are server.maxclients + RESERVED_FDS +