- 11 Dec, 2020 1 commit
-
-
Yossi Gottlieb authored
This adds a new `tls-client-cert-file` and `tls-client-key-file` configuration directives which make it possible to use different certificates for the TLS-server and TLS-client functions of Redis. This is an optional directive. If it is not specified the `tls-cert-file` and `tls-key-file` directives are used for TLS client functions as well. Also, `utils/gen-test-certs.sh` now creates additional server-only and client-only certs and will skip intensive operations if target files already exist.
-
- 06 Dec, 2020 1 commit
-
-
Wang Yuan authored
As we know, redis may reject user's requests or evict some keys if used memory is over maxmemory. Dictionaries expanding may make things worse, some big dictionaries, such as main db and expires dict, may eat huge memory at once for allocating a new big hash table and be far more than maxmemory after expanding. There are related issues: #4213 #4583 More details, when expand dict in redis, we will allocate a new big ht[1] that generally is double of ht[0], The size of ht[1] will be very big if ht[0] already is big. For db dict, if we have more than 64 million keys, we need to cost 1GB for ht[1] when dict expands. If the sum of used memory and new hash table of dict needed exceeds maxmemory, we shouldn't allow the dict to expand. Because, if we enable keys eviction, we still couldn't add much more keys after eviction and rehashing, what's worse, redis will keep less keys when redis only remains a little memory for storing new hash table instead of users' data. Moreover users can't write data in redis if disable keys eviction. What this commit changed ? Add a new member function expandAllowed for dict type, it provide a way for caller to allow expand or not. We expose two parameters for this function: more memory needed for expanding and dict current load factor, users can implement a function to make a decision by them. For main db dict and expires dict type, these dictionaries may be very big and cost huge memory for expanding, so we implement a judgement function: we can stop dict to expand provisionally if used memory will be over maxmemory after dict expands, but to guarantee the performance of redis, we still allow dict to expand if dict load factor exceeds the safe load factor. Add test cases to verify we don't allow main db to expand when left memory is not enough, so that avoid keys eviction. Other changes: For new hash table size when expand. Before this commit, the size is that double used of dict and later _dictNextPower. Actually we aim to control a dict load factor between 0.5 and 1.0. Now we replace *2 with +1, since the first check is that used >= size, the outcome of before will usually be the same as _dictNextPower(used+1). The only case where it'll differ is when dict_can_resize is false during fork, so that later the _dictNextPower(used*2) will cause the dict to jump to *4 (i.e. _dictNextPower(1025*2) will return 4096). Fix rehash test cases due to changing algorithm of new hash table size when expand.
-
- 30 Nov, 2020 1 commit
-
-
Itamar Haber authored
See https://github.com/redis/redis-doc/pull/1443 Also allows nameless commands.
-
- 10 Sep, 2020 1 commit
-
-
Oran Agra authored
List of squashed commits or PRs =============================== commit 66801ea Author: hwware <wen.hui.ware@gmail.com> Date: Mon Jan 13 00:54:31 2020 -0500 typo fix in acl.c commit 46f55db Author: Itamar Haber <itamar@redislabs.com> Date: Sun Sep 6 18:24:11 2020 +0300 Updates a couple of comments Specifically: * RM_AutoMemory completed instead of pointing to docs * Updated link to custom type doc commit 61a2aa0 Author: xindoo <xindoo@qq.com> Date: Tue Sep 1 19:24:59 2020 +0800 Correct errors in code comments commit a5871d1 Author: yz1509 <pro-756@qq.com> Date: Tue Sep 1 18:36:06 2020 +0800 fix typos in module.c commit 41eede7 Author: bookug <bookug@qq.com> Date: Sat Aug 15 01:11:33 2020 +0800 docs: fix typos in comments commit c303c84 Author: lazy-snail <ws.niu@outlook.com> Date: Fri Aug 7 11:15:44 2020 +0800 fix spelling in redis.conf commit 1e...
-
- 11 Aug, 2020 1 commit
-
-
YoongHM authored
The two lines allow systemd to start redis.service after the network is online. Only after the network is online that Redis could bind to IP address other than 127.0.0.1 during initial boot up process.
-
- 05 Aug, 2020 1 commit
-
-
Frank Meier authored
-
- 21 Jul, 2020 1 commit
-
-
Oran Agra authored
-
- 16 Jul, 2020 1 commit
-
-
Itamar Haber authored
-
- 12 Jul, 2020 1 commit
-
-
Oran Agra authored
* update daily CI to include cluster and sentinel tests * update daily CI to run when creating a new release * update release scripts to work on the new redis.io hosts
-
- 10 Jul, 2020 1 commit
-
-
Oran Agra authored
-
- 28 Apr, 2020 1 commit
-
-
antirez authored
-
- 28 Feb, 2020 2 commits
-
-
Itamar Haber authored
-
Itamar Haber authored
Allows for setting the binaries path if used outside the upstream repo. Also documents `call` in usage clause (TODO: port to `redis-cli --cluster call` or just deprecate it).
-
- 11 Dec, 2019 1 commit
-
-
antirez authored
-
- 03 Dec, 2019 1 commit
-
-
antirez authored
-
- 19 Nov, 2019 2 commits
-
-
Johannes Truschnigg authored
Also, hint at example service unit files if systemd is detected. Thanks to @mika for spotting a bug in the original iteration of this patch.
-
Johannes Truschnigg authored
-
- 07 Oct, 2019 1 commit
-
-
Yossi Gottlieb authored
* 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.
-
- 26 Sep, 2019 1 commit
-
-
nikhilajayk authored
-
- 02 Aug, 2019 2 commits
- 09 Mar, 2019 1 commit
-
-
Brad Solomon authored
It will fail pretty quickly since there is no -f readlink flag there.
-
- 01 Mar, 2019 1 commit
-
-
varianfeng authored
-
- 19 Feb, 2019 2 commits
- 18 Feb, 2019 2 commits
- 10 Oct, 2018 1 commit
-
-
antirez authored
-
- 03 Jul, 2018 1 commit
-
-
Jack Drogon authored
-
- 07 Jun, 2018 1 commit
-
-
antirez authored
-
- 07 May, 2018 1 commit
-
-
artix authored
- Updated README
-
- 26 Mar, 2018 1 commit
-
-
antirez authored
-
- 16 Mar, 2018 1 commit
-
-
antirez authored
-
- 14 Jul, 2017 1 commit
-
-
antirez authored
-
- 16 Jun, 2017 1 commit
-
-
Aric Huang authored
Fix a few typos/adjust wording in `create-cluster` README
-
- 14 Apr, 2017 1 commit
-
-
antirez authored
-
- 09 Mar, 2017 1 commit
-
-
antirez authored
-
- 16 Dec, 2016 1 commit
-
-
antirez authored
The PFADD now takes an array and has mandatory two arguments.
-
- 28 Jul, 2016 1 commit
-
-
antirez authored
-
- 20 Jul, 2016 1 commit
-
-
antirez authored
-