summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Note that install_server.sh is not for Mac OSXBrad Solomon2019-03-091-0/+3
| | | | | It will fail pretty quickly since there is no -f readlink flag there.
* fix corrupt_rdb.c bug.Let the name of input rdb file name be valid.varianfeng2019-03-011-1/+2
|
* showfreq.rb: collect more data for better graphs.antirez2019-02-191-1/+1
|
* Improve README of better-random-member directory.better-random-memberantirez2019-02-191-2/+14
|
* Add showfreq.rb to SRANDMEMBER analysis tools.antirez2019-02-181-0/+23
|
* showdist.rb utility for SRANDMEMBER analysis added.antirez2019-02-182-0/+35
|
* changelog.tcl: get optional argument for number of commits.antirez2018-10-101-3/+8
|
* Fix typoJack Drogon2018-07-031-1/+1
|
* Add the stream group to the script generating the help.antirez2018-06-071-1/+2
|
* - Updated create-cluster with redis-cliartix2018-05-072-3/+3
| | | | - Updated README
* Add INIT INFO to the provided init script.antirez2018-03-261-0/+8
|
* Fix HyperLogLog test script for new redis-rb API.antirez2018-03-161-1/+1
|
* Merge pull request #1934 from badboy/install-script-1922Salvatore Sanfilippo2017-07-241-6/+6
|\ | | | | Don't use extended Regexp Syntax
| * Don't use extended Regexp SyntaxJan-Erik Rediger2014-08-131-6/+6
| | | | | | | | | | | | It's not POSIX (BSD systems have -E instead) and we don't actually need it. Closes #1922
* | changelog.tcl: output 100 lines.antirez2017-07-141-1/+1
| |
* | (fix) Update create-cluster READMEAric Huang2017-06-161-4/+4
| | | | | | Fix a few typos/adjust wording in `create-cluster` README
* | Cluster: add clean-logs command to create-cluster script.antirez2017-04-141-0/+7
| |
* | Use sha256 instead of sha1 to generate tarball hashes.antirez2017-03-091-2/+2
| |
* | Fix HLL gnuplot graph generator script for new redis-rb versions.antirez2016-12-161-1/+1
| | | | | | | | The PFADD now takes an array and has mandatory two arguments.
* | Changelog format modified to be less verbose.antirez2016-07-281-1/+5
| |
* | test-lru.rb: support for testing volatile-ttl policy.antirez2016-07-201-14/+49
| |
* | LFU simulator: remove dead code.antirez2016-07-141-5/+0
| |
* | LRU simulator: fix new entry creation decr time.antirez2016-07-141-1/+1
| |
* | LRU simulator: fix new entry creation.antirez2016-07-141-2/+2
| |
* | LFU: Simulation of the algorithm planned for Redis.antirez2016-07-141-0/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have 24 total bits of space in each object in order to implement an LFU (Least Frequently Used) eviction policy. We split the 24 bits into two fields: 8 bits 16 bits +--------+----------------+ | LOG_C | Last decr time | +--------+----------------+ LOG_C is a logarithmic counter that provides an indication of the access frequency. However this field must also be deceremented otherwise what used to be a frequently accessed key in the past, will remain ranked like that forever, while we want the algorithm to adapt to access pattern changes. So the remaining 16 bits are used in order to store the "decrement time", a reduced-precision unix time (we take 16 bits of the time converted in minutes since we don't care about wrapping around) where the LOG_C counter is halved if it has an high value, or just decremented if it has a low value. New keys don't start at zero, in order to have the ability to collect some accesses before being trashed away, so they start at COUNTER_INIT_VAL. The logaritmic increment performed on LOG_C takes care of COUNTER_INIT_VAL when incrementing the key, so that keys starting at COUNTER_INIT_VAL (or having a smaller value) have a very high chance of being incremented on access. The simulation starts with a power-law access pattern, and later converts into a flat access pattern in order to see how the algorithm adapts. Currenty the decrement operation period is 1 minute, however note that it is not guaranteed that each key will be scanned 1 time every minute, so the actual frequency can be lower. However under high load, we access 3/5 keys every newly inserted key (because of how Redis eviction works). This is a work in progress at this point to evaluate if this works well.
* | LRU: Fix output fixes to new test-lru.rb.antirez2016-07-111-6/+6
| |
* | LRU: test-lru.rb improved in different ways.antirez2016-07-112-98/+180
| | | | | | | | | | | | | | | | | | | | 1. Scan keys with pause to account for actual LRU precision. 2. Test cross-DB with 100 keys allocated in DB1. 3. Output results that don't fluctuate depending on number of keys. 4. Output results in percentage to make more sense. 5. Save file instead of outputting to STDOUT. 6. Support running multiple times with average of outputs. 7. Label each square (DIV) with its ID as HTML title.
* | Added a trivial program to randomly corrupt RDB files in /utils.antirez2016-07-011-0/+44
| |
* | Added documentation for non-interactive install procedureMichiel De Mey2016-06-101-3/+19
| |
* | Allow non-interactive execution of install_serverMichiel De Mey2016-05-131-28/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR adds the ability to execute the installation script non-interactively, useful for automated provisioning scripts such as Chef, Puppet, Ansible, Salt, etc. Simply feed the environment variables into the install script to skip the prompts. For debug and verification purposes, the script will still output the selected config variables. The plus side is that the environment variables also support command substitution (see REDIS_EXECUTABLE). ``` sudo REDIS_PORT=1234 REDIS_CONFIG_FILE=/etc/redis/1234.conf REDIS_LOG_FILE=/var/log/redis_1234.log REDIS_DATA_DIR=/var/lib/redis/1234 REDIS_EXECUTABLE=`command -v redis-server` ./utils/install_server.sh Welcome to the redis service installer This script will help you easily set up a running redis server Selected config: Port : 1234 Config file : /etc/redis/1234.conf Log file : /var/log/redis_1234.log Data dir : /var/lib/redis/1234 Executable : /usr/local/bin/redis-server Cli Executable : /usr/local/bin/redis-cli Copied /tmp/1234.conf => /etc/init.d/redis_1234 Installing service... Successfully added to chkconfig! Successfully added to runlevels 345! Starting Redis server... Installation successful! ```
* | Added a tool for generating changelogs automatically.antirez2016-05-041-0/+26
| | | | | | | | | | | | | | | | | | | | Sometimes Redis patch releases are released in a matter of weeks or days one after the other. In order to have less release friction the idea is to stop writing changelogs by hand, in order to also cover everything interesting there is to say. Useless things can be deleted manually by the changelog. Also this gives more credits to contributors since often in the commit message involved people are cited even when they are not the authors of the commit.
* | 03_test_release.sh: proper cleanup before testing.antirez2016-01-281-0/+2
| |
* | Added Tcl program to show commits graphicaly.antirez2015-11-202-0/+112
| | | | | | | | Used to generate http://antirez.com/news/98.
* | Update redis-cli help and the script to generate it.antirez2015-11-171-1/+3
| |
* | Fix order of release scripts.antirez2015-05-052-0/+0
| |
* | create-cluster fix for stop and watch commandssuperlogical2015-03-241-2/+2
| |
* | Cluster: ignore various node files in create-cluster dir.antirez2015-03-131-0/+4
| |
* | utils/hashtable/rehashing.c test updated to use new API.antirez2015-02-251-12/+22
| |
* | rehashing.c: Fix compile error originating from SPOP rewriteSisir Koppaka2015-02-181-1/+1
| |
* | dict.c Rehashing visualization code snippet added to utils.antirez2015-02-112-0/+145
| |
* | Ignore config.sh inside create-cluster script dir.antirez2015-02-031-0/+1
| |
* | Cluster: Tcl script to check avg pfail->fail time.antirez2015-01-301-0/+50
| |
* | Cluster: create-cluster script improved.antirez2015-01-302-15/+43
| |
* | create-cluster script: sane default timeout.antirez2015-01-291-1/+2
| |
* | create-cluster script added.antirez2015-01-282-0/+93
| | | | | | | | | | Simple shell script to create / destroy Redis clusters for manual testing.
* | Merge pull request #2103 from coderholic/unstableSalvatore Sanfilippo2014-12-111-2/+3
|\ \ | | | | | | Update redis_init_script.tpl
| * | Update redis_init_script.tplBen Dowling2014-10-261-2/+3
| | | | | | | | | status command currently reports success when redis has crashed and the pid file still exists. Changing to check the actual process is running.
* | | Mark whatisdoing.sh as deprecated in top-comment.antirez2014-12-091-0/+6
| | |
* | | Update whatisdoing.shSerghei Iakovlev2014-12-051-1/+1
| | | | | | | | | Improved getting pid
* | | getting pid fixesSerghei Iakovlev2014-12-051-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | ```sh $ ~ pidof redis-server # nothing $ ~ ps aux | grep [r]edis redis 593 0.0 0.0 36900 5564 ? Ssl Dec02 1:37 /usr/bin/redis-server 127.0.0.1:6379 klay 15927 0.0 0.0 16772 6068 pts/6 S+ 13:58 0:00 redis-cli $ ~ uname -a Linux edge 3.17.4-1-ARCH #1 SMP PREEMPT Fri Nov 21 21:14:42 CET 2014 x86_64 GNU/Linux ```