Commit graph

36 commits

Author SHA1 Message Date
Sergey A. Osokin
951f6430ea Upgrade from 3.0.7 to the latest stable version 3.2.3. 2016-08-07 23:34:51 +00:00
Sergey A. Osokin
f14346f630 Enable profiles support.
Bump PORTREVISION.

PRs:	171372, 179551
2015-11-07 20:08:18 +00:00
Sergey A. Osokin
6d6485b556 Add rc script for sentinel.
Bump PORTREVISION.

PR:	204025
2015-10-29 01:34:53 +00:00
Sergey A. Osokin
ef7625e1f6 Fix rc.d script for allow to specify the config path in rc.conf.
Bump PORTREVISION.

PR:	199607
2015-05-06 01:24:13 +00:00
Sergey A. Osokin
0e736bceef Upgrade from 2.8.19 to 3.0.0.
Merge all changes from databases/redis-devel to databases/redis.

<ChangeLog>

Redis 3.0 release notes
=======================

--[ Redis 3.0.0 ] Release date: 1 Apr 2015

>> What's new in Redis 3.0 compared to Redis 2.8?

* Redis Cluster: a distributed implementation of a subset of Redis.
* New "embedded string" object encoding resulting in less cache
  misses. Big speed gain under certain work loads.
* AOF child -> parent final data transmission to minimize latency due
  to "last write" during AOF rewrites.
* Much improved LRU approximation algorithm for keys eviction.
* WAIT command to block waiting for a write to be transmitted to
  the specified number of slaves.
* MIGRATE connection caching. Much faster keys migraitons.
* MIGARTE new options COPY and REPLACE.
* CLIENT PAUSE command: stop processing client requests for a
  specified amount of time.
* BITCOUNT performance improvements.
* CONFIG SET accepts memory values in different units (for example
  you can use "CONFIG SET maxmemory 1gb").
* Redis log format slightly changed reporting in each line the role of the
  instance (master/slave) or if it's a saving child log.
* INCR performance improvements.

>> Refactoring changes (no new features nor bug fixes)

* Blocking operations full refactoring (blocked.c)
* Client output buffer memory tracking refactored.

</ChangeLog>
2015-04-07 22:28:20 +00:00
Sergey A. Osokin
a55f80ac6d Upgrade from 2.8.17 to 2.8.18.
<ChangeLog>

--[ Redis 2.8.18 ] Release date: 4 Dec 2014

# UPGRADE URGENCY: LOW for both Redis and Sentinel. This release mostly
                   adds new features to Redis, and contains non critical
                   fixes.

* [FIX] Linenoise updated to be more VT100 compatible. (Salvatore Sanfilippo)
* [FIX] A number of typos fixed inside comments. (Various authors)
* [FIX] redis-cli no longer quits after long timeouts. (Matt Stancliff)
* [FIX] Test framework improved to detect never terminating scripts, cleanup
        instances on crashes. (Salvatore Sanfilippo)
* [FIX] PFCOUNT can be used on slaves now. (Salvatore Sanfilippo)
* [FIX] ZSCAN no longer report very small scores as 0. (Matt Stancliff,
        Michael Grunder, Salvatore Sanfilippo)
* [FIX] Don't show the ASCII logo if syslog is enabled. Redis is now
        an Enterprise Grade product. (Salvatore Sanfilippo)

* [NEW] EXPERIMENTAL: Diskless replication, for more info check the doc at
        http://redis.io/topics/replication. (Salvatore Sanfilippo).
* [NEW] Transparent Huge Pages detection and reporting in logs and
        LATENCY DOCTOR output. (Salvatore Sanfilippo)
* [NEW] Many Lua scripting enhancements: Bitops API, cjson upgrade and tests,
        cmsgpack upgrade. (Matt Stancliff)
* [NEW] Total and instantaneous Network bandwidth tracking in INFO.
* [NEW] DEBUG POPULATE two args form implemented (old form still works).
        The second argument is the key prefix. Default is "key:" (Salvatore
        Sanfilippo)
* [NEW] Check that tcp-backlog is matched by /proc/sys/net/core/somaxconn, and
        warn about it if not. (Salvatore Sanfilippo)

</ChangeLog>
2014-12-12 04:27:33 +00:00
Bryan Drewery
0272bb88ae - Fix build on 8.x which does not have TCP_KEEPIDLE
Approved by:	maintainer
2014-09-17 15:56:18 +00:00
Sergey A. Osokin
a2e6c47b90 Upgrade from 2.8.11 to 2.8.14.
<ChangeLog>

--[ Redis 2.8.14 ] Release date: 1 Sep 2014

# UPGRADE URGENCY: HIGH for Lua scripting users, the server could crash because
                   of a bug introduced in Redis 2.8.10, otherwise LOW.
                   LOW for Redis Sentinel.

* [FIX] Don't prevent use of shared integers if maxmemory policy is non-LRU.
        (Salvatore Sanfilippo)
* [FIX] Fail SYNC if background save child aborted due to a signal.
        (Yossi Gottlieb)
* [FIX] Different small redis-cli fixes. (Dov Murik, Charsyam, cubicdaiya,
        Kashif Rasul, Jan-Erik Rediger, Matt Stancliff)
* [FIX] AIX compilation fixes. (Siah Lyimo)
* [FIX] A number of other smaller issues.
* [FIX] Improved SIGINT handling (Matt Stancliff, Salvatore Sanfilippo)
* [FIX] Use unsigned types in SDS header to raise limit to 4GB.
        (Matt Stancliff, Salvatore Sanfilippo)
* [FIX] Handle signed/unsigned comparisons with more care around the code.
        (Salvatore Sanfilippo)
* [FIX] Colorized test output fixed to don't change the background color.
        (Mariano Pérez Rodríguez)
* [FIX] More Sentinel IPv6 fixes. (Eiichi Sato)
* [FIX] Deny CLIENT command in scripts. (Matt Stancliff)
* [FIX] Allow datasets with more than 2 billion of keys, initial work.
* [FIX] Fix a Lua scripting crash by storing the length of the static
        argv when first allocated. (Paddy Byers)

* [NEW] Pub/Sub PING. (Salvatore Sanfilippo)
* [NEW] Much faster ZUNIONSTORE. (Kyle Hubert, Salvatore Sanfilippo)
* [NEW] Faster ll2string() implementation. (Salvatore Sanfilippo)
* [NEW] **WARNING, minor API change**: PUBSUB NUMSUB: return type modified
        to integer. (Matt Stancliff)
* [NEW] redis-benchmark support for AUTH. (CharSyam)

--[ Redis 2.8.13 ] Release date: 14 Jul 2014

# UPGRADE URGENCY: LOW for Redis and Sentinel, this is a features enhancement
                   release mostly. Since this release introduces the latency
                   monitoring feature, Redis 2.8 users experiencing latency
                   issues are strongly encouraged to upgrade.

* [FIX] CLIENT KILL minor backward compatibility fixes. (Salvatore Sanfilippo)
* [FIX] Enable HAVE_ATOMIC for PowerPC. (Matt Stancliff)
* [FIX] More robust PSYNC and AOF rewrites tests. (Salvatore Sanfilippo)
* [FIX] Solaris build fixed. (Matt Stancliff, Salvatore Sanfilippo)

* [NEW] The new latency monitoring feature, as documented at
        http://redis.io/topics/latency-monitor (Salvatore Sanfilippo)
* [NEW] The COMMAND command, exposing the Redis command table
        as an API. (Matt Stancliff)
* [NEW] Update used memory with C11 __atomic. (Matt Stancliff)

--[ Redis 2.8.12 ] Release date: 23 Jun 2014

# UPGRADE URGENCY: HIGH for Redis, CRITICAL for Sentinel.

# WARNING: This release contains a non backward compatible semantical change
           to Lua script that should affect an almost zero number of users.

* [FIX / BREAKS BACKWARD COMPATIBILITY] Using SELECT inside Lua scripts no
       longer makes the selected DB to be set in the calling client.
       So Lua can still use SELECT, but the client calling the script will
       remain set to the original DB. Thix fixes an issue with Redis
       replication of Lua scripts that called SELECT without reverting the
       selected DB to the original one. (Salvatore Sanfilippo)
* [FIX] Sentinel failover was instalbe if the master was detected as available
        during the failover (especially during manual failovers) because
        of an implementation error (lack of checking of
        SRI_PROMOTED flag). (Salvatore Sanfilippo)
* [FIX] Cancel SHUTDOWN if initial AOF is being written. (Matt Stancliff)
* [FIX] Sentinel: bind source address for outcoming connections. (Matt
        Stancliff).
* [FIX] Less timing sensitive Sentinel tests. (Salvatore Sanfilippo).

* [NEW] redis-cli --intrinsic-latency stopped with SIGINT still reports
        stats (Matt Stancliff)
* [NEW] Sentinels broadcast an HELLO message ASAP after a failover in order to
        reach a consistent state faster (before it relied for periodic HELLO
        messages). (Salvatore Sanfilippo).
* [NEW] Jemalloc updated to 3.6.0. (Salvatore Sanfilippo)
* [NEW] CLIENT LIST speedup. (Salvatore Sanfilippo)
* [NEW] CLIENT LIST new unique incremental ID to every client. (Salvatore
        Sanfilippo)
* [NEW] ROLE command added. (Salvatore Sanfilippo)
* [NEW] CLIENT KILL new form to kill by client type and ID (see doc at
        redis.io for more info). (Salvatore Sanfilippo)
* [NEW] Sentinel now disconnects clients when instances are reconfigured
        (see http://redis.io/topics/sentinel-clients). (Salvatore Sanfilippo)
* [NEW] Hiredis update to latest version. (Matt Stancliff)

</ChangeLog>
2014-09-09 22:18:39 +00:00
Matthias Andree
0da998d98d Make configuration file path configurable in rc.conf. [1]
Convert to stage support.  State which BSD license is meant. [2]

PR:		ports/181201 [1]
Submitted by:	Daniel Ylitalo <daniel@blodan.se> [1]
Approved by:	maintainer timeout (osa, 6 months) [1]
Approved by:	portmgr (blanket) [2]
2014-03-13 21:13:39 +00:00
Sergey A. Osokin
771437151f Upgrade from 2.8.3 to 2.8.4.
<ChangeLog>

# UPGRADE URGENCY: MODERATE for Redis and Sentinel.

* [FIX] Makefile compatibility with non common make variants improved.
* [FIX] SDIFF crash in very unlikely to trigger state fixed.
* [FIX] Config rewriting fixed: don't wipe options unknown to the rewrite
        process.
* [FIX] Set TCP port to 0 works again to disable TCP networking.
* [FIX] Fixed replication with old Redis instances as masters by not
        sending REPLCONF ACK to them.
* [FIX] Fix keyspace notifications rewrite and CONFIG GET output.
* [FIX] Fix RESTORE TTL handling in 32 bit systems (32 bit overflow).

* [NEW] Sentinel now has a run time configuration API.
* [NEW] Log when we lost connection with master or slave.
* [NEW] When instance is turned from slave to master now inherits the
        old master replication offset when possible. This improves the
        Sentinel failover procedure.

</ChangeLog>
2014-01-14 10:28:34 +00:00
Sergey A. Osokin
cc50e0274c Upgrade from 2.6.16 to 2.8.0.
Changelist: https://raw.github.com/antirez/redis/2.8/00-RELEASENOTES
2013-11-28 17:53:32 +00:00
Sergey A. Osokin
cd15dbdc5a Upgrade from 2.6.14 to 2.6.15.
Add support for lang/lua, disabled by default.

<ChangeLog>

UPGRADE URGENCY: MODERATE, upgrade ASAP only if you experience issues related to
                 the expired keys collection algorithm, or if you use the
                 ZUNIONSTORE command.

* [FIX] Improved expired keys collection algorithm. Even under heavy load keys
        to be expired can't accumulate because of lack of CPU time.
* [FIX] Fixed Issue #1240, ZUNIONSTORE could lead to wrong result.
* [NEW] redis-benchmark improvements.
* [NEW] dict.c API wrong usage detection.

WARNING: redis-benchmark released with 2.6.15 features non backward compatible
         change in the way the random arguments are specified, use the --help
         option for more information.

</ChangeLog>
2013-08-21 18:22:31 +00:00
Sergey A. Osokin
d5fd577271 Update from 2.6.10 to 2.6.11.
<ChangeLog>

UPGRADE URGENCY: LOW, however updating is encouraged if you have many instances
                 per server and you want to lower the CPU / energy usage.

* [BUGFIX]   Replication: more strict error checking for master PING reply.
* [BUGFIX]   redis-cli: use keepalive socket option for improved reliability.
* [BUGFIX]   Allow AUTH while loading the DB in memory.
* [BUGFIX]   Don't segfault on unbalanced quotes while parsing config file.
* [IMPROVED] serverCron() frequency is now a runtime parameter (was REDIS_HZ).
* [IMPROVED] Use a lot less CPU when idle, even with many configured DBs.

</ChangeLog>
2013-03-12 18:31:48 +00:00
Sergey A. Osokin
b9fc28c52b Update from 2.6.9 to 2.6.10.
<ChangeLog>

UPGRADE URGENCY: MODERATE, this release contains many non-critical fixes
                 and many small improvements.

* [BUGFIX]   redis-cli --rdb, fixed when the server sends newlines to ping.
* [BUGFIX]   redis-cli, minor fixes on connection handling, prompt.
* [BUGFIX]   Slow log: don't log EXEC, just executed commands.
* [BUGFIX]   On failed shutdown don't try again and again compulsively.
* [BUGFIX]   Fix build on sunos without backtrace().
* [BUGFIX]   UNSUBSCRIBE and PUNSUBSCRIBE: always provide a reply (see 742e580)
* [BUGFIX]   Lua struct library was broken, upgraded.
* [BUGFIX]   Fix a bug in srandmemberWithCountCommand() with count argument.
* [BUGFIX]   Test: disable clients timeout to prevent issues on slow systems.
* [BUGFIX]   Sentinel: don't advertise the promoted slave as master too early.
* [IMPROVED] Whitelist SIGUSR1, see http://redis.io/topics/signals.
* [IMPROVED] Simpler to understand redis-cli --bigkeys output.
* [IMPROVED] Test now works with tclsh > 8.5.
* [IMPROVED] Added option to turn of the Nagle algorithm in slave socket.
* [IMPROVED] Optionally use SO_KEEPALIVE to detect dead peers.

</ChangeLog>
2013-02-11 18:38:18 +00:00
Sergey A. Osokin
6b8771fe62 Update from 2.6.7 to 2.6.8.
Add experimental support for lang/luajit, disabled by default.

<ChangeLog>

UPGRADE URGENCY: MODERATE if you use Lua scripting. Otherwise LOW.

* [BUGFIX]   Multiple fixes for EVAL (issue #872).
* [BUGFIX]   Fix overflow in mstime() in redis-cli and benchmark.
* [BUGFIX]   Fix Linux / PPC64 behavior by correcting endianess detection.
* [BUGFIX]   Fix NetBSD build by defining _XOPEN_SOURCE appropriately.
* [BUGFIX]   Added missing license and copyright in a few places.
* [BUGFIX]   Better error reporting when fd event creation fails.

</ChangeLog>
2013-01-12 15:48:47 +00:00
Sergey A. Osokin
a00ccece1b Use more canonical names for patches.
No functionaly changes.
Don't bump PORTREVISION.

Feature safe: yes
2012-11-22 18:21:12 +00:00
Sergey A. Osokin
a3f0261fac Revert back changes for rc script.
Bump PORTREVISION.

Notice from:	crees

Feature safe:	yes
2012-10-29 16:44:40 +00:00
Sergey A. Osokin
1523dab051 Update from 2.4.17 to latest stable version 2.6.2.
Feature safe:	yes
2012-10-28 08:39:17 +00:00
Sergey A. Osokin
1983f961b1 Update from 2.4.15 to 2.4.16.
Submitted by:	Kubilay Kocak aka koobs dot freebsd at gmail dot com
Tests:		https://redports.org/buildarchive/20120802120704-7005/
PR:		170326
2012-08-02 18:20:11 +00:00
Sergey A. Osokin
928def84a1 Rename rc script template to more canonical name. 2012-07-18 06:10:17 +00:00
Sergey A. Osokin
0d32f8a129 Update from 2.4.13 to 2.4.14.
<ChangeLog>

UPGRADE URGENCY: high, many non trivial bugs fixed in this release.

* [BUGFIX] Fixed issue #518 (Redis 99% CPU when master down).
* [BUGFIX] Fixed issue #516 (ZINTERSTORE mixing sets and zsets).
* [BUGFIX] Fixed a bug in install_server.sh when using chkconfig
* [BUGFIX] Fixes to --test-memory implementation.
* [BUGFIX] Allow PREFIX to be overridden in Makefile.
* [BUGFIX] The test is now more reliable on slow computers.
* redis-cli --pipe mode, see http://redis.io/topics/mass-insert
* Much better expired keys collection algorithm that makes the server much
  more responsive when a lot of keys are expiring at the same time.

</ChangeLog>
2012-05-28 07:23:16 +00:00
Sergey A. Osokin
fd5f4b8224 Update from 2.4.7 to 2.4.8.
<ChangeLog>

UPGRADE URGENCY: moderate if you don't experience any of the fixed problems.

* [BUGFIX] Make install now uses cp -f to avoid 'text file busy' errors.
* [BUGFIX] redis-check-aof is now large files safe also on 32 bit systems.
* [BUGFIX] Issue #327 fixed: maxmemory and replication now work much better.
* [BUGFIX] Now HINCRBY can detect overflows too. Fix for issue #330.
* [BUGFIX] Fixed compilation with latest clang.
* [BUGFIX] Fixed handling of empty sorted sets produced in RDB by
           very old Redis versions (1.2.x).

</ChangeLog>
2012-02-24 13:04:14 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Sergey A. Osokin
b3606b8da2 Fix build on i386.
Feature safe:	yes

PR:	163004
2011-12-02 03:42:56 +00:00
Sergey A. Osokin
837c6a9247 Use backtrace()/backtrace_symbols() calls from devel/libexecinfo for
better diagnostics.

Bump PORTREVISION.

Feature safe:	yes
2011-11-30 12:46:19 +00:00
Sergey A. Osokin
31394c72f7 Update from 2.4.3 to 2.4.4.
Add quickfix for build.		[*]

Feature safe:	yes

Submitted by:	Alex Lyashkov <umka at sevcity dot net> [*]

<ChangeLog>

https://raw.github.com/antirez/redis/2.4/00-RELEASENOTES

</ChangeLog>
2011-11-30 10:57:45 +00:00
Sergey A. Osokin
449868b8a1 Add quick fix for fresh redis.
Also drop a note for UPDATING.

Feature safe:	yes
Pointy hat to:	osa
2011-11-23 11:56:53 +00:00
Sergey A. Osokin
59134b7c45 Update from 2.2.15 to 2.4.3.
Add fix for build with clang.	[*]

Submitted by:	vanilla		[*]

Feature safe:	yes

<ChangeLog>

https://raw.github.com/antirez/redis/2.4/00-RELEASENOTES

</ChangeLog>
2011-11-23 11:52:05 +00:00
Sergey A. Osokin
0b43809cb1 Update from 2.2.12 to latest bugfix release 2.2.13.
<ChangeLog>

* [BUGFIX] Fixed issue 593 (BRPOPLPUSH related crash).
* [BUGFIX] Fixed an issue with the networking layer that may
  prevent Redis from sending the whole reply back to client
  under extreme conditions.

</ChangeLog>
2011-09-14 06:39:19 +00:00
Doug Barton
29813d5397 Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""

These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.

In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.

In a few places, add $FreeBSD$

No functional changes, so no PORTREVISION bumps
2011-05-15 02:49:17 +00:00
Sergey A. Osokin
2dd10c1328 Update from 2.2.5 to 2.2.7.
Also update port infrastructure, remove needless script.

<ChangeLog>

What's new in Redis 2.2.7
=========================

* Fixed bug #543-2 (the issue was reopened with a completely different report)
  that caused Redis to randomly crash on list push performed against lists
  with other clients blocked with BLPOP (or variants).

What's new in Redis 2.2.6
=========================

* Fixed bug #543. If you saw Redis instances crashing on List operations
  (only happening with a non-default max entry size ziplist setting in
  redis.conf) it was almost certainly this problem.
* Fixed a bug with replication where SLAVEOF NO ONE caused a slave to close the
  connection with all its slaves.

</ChangeLog>
2011-05-11 15:20:59 +00:00
Sergey A. Osokin
69f903759a Update from 2.0.4 (after repocopy to databases/redis2) to latest
release candidate 2.2.rc4.

Add CONFLICTS with redis-2.0.
Add NO_LATEST_LINK, should be removed after 2.2 release.
2011-02-13 12:25:02 +00:00
Sergey A. Osokin
673fc573d7 Update to latest stable version 2.0.1.
Previous stable release redis-1.2.6 repocopied to databases/redis1.
2010-09-20 17:46:19 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Sergey A. Osokin
bca3d31f58 Update from 1.02 to 1.2.0.
Adopt patch for redis.conf.

Previously and by default redis was compiled with debugging
information, that didn't respect CFLAGS.  So, now its
possible to compile with debugging information by use
WITH_DEBUG knob.

Take maintainership.

Approved by:	maintainer (skv@)
2010-01-17 13:57:21 +00:00
Sergey Skvortsov
5ac4e507a5 Add redis 0.900, a persistent key-value database with built-in net
interface.
2009-07-27 16:53:25 +00:00