summaryrefslogtreecommitdiff
path: root/trove/templates
diff options
context:
space:
mode:
authorPeter Stachowski <peter@tesora.com>2017-01-03 13:57:06 -0800
committeramrith <amrith.kumar@gmail.com>2017-02-16 17:10:06 +0000
commit55d8598d206cdfbc7cc7c07fdf9ba2f5fa59e81d (patch)
treea237620a5390694b1685711faf9158157a692379 /trove/templates
parent3d3181f56fd3137883ef166f5a8b46dbf23118c1 (diff)
downloadtrove-55d8598d206cdfbc7cc7c07fdf9ba2f5fa59e81d.tar.gz
Install Redis 3.2.6 by compilation
The version of Redis installed by the current elements uses a ppa that is stalled at 3.0.7. This seems to have some issues that are fixed in later versions. The recommended method of installing Redis is to compile the code yourself, so the elements have been changed to do this. The version was bumped to 3.2.6 (latest stable) however the Redis cluster tests were not reenabled as there still seems to be an issue with them. New config options were added to the template; these may need to be updated to make sure all the new ones are there. Change-Id: I1a604b15ade815cdb51c5484d4285e504508a6c4 Partial-Bug: 1652964
Diffstat (limited to 'trove/templates')
-rw-r--r--trove/templates/redis/config.template63
1 files changed, 62 insertions, 1 deletions
diff --git a/trove/templates/redis/config.template b/trove/templates/redis/config.template
index 71c6a26d..725700eb 100644
--- a/trove/templates/redis/config.template
+++ b/trove/templates/redis/config.template
@@ -58,6 +58,25 @@ port 6379
# in order to get the desired effect.
tcp-backlog 511
+# Protected mode is a layer of security protection, in order to avoid that
+# Redis instances left open on the internet are accessed and exploited.
+#
+# When protected mode is on and if:
+#
+# 1) The server is not binding explicitly to a set of addresses using the
+# "bind" directive.
+# 2) No password is configured.
+#
+# The server only accepts connections from clients connecting from the
+# IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain
+# sockets.
+#
+# By default protected mode is enabled. You should disable it only if
+# you are sure you want clients from other hosts to connect to Redis
+# even if no authentication is configured, nor a specific set of interfaces
+# are explicitly listed using the "bind" directive.
+protected-mode no
+
# By default Redis listens for connections from all the network interfaces
# available on the server. It is possible to listen to just one or multiple
# interfaces using the "bind" configuration directive, followed by one or
@@ -96,6 +115,17 @@ timeout 0
# A reasonable value for this option is 60 seconds.
tcp-keepalive 0
+# If you run Redis from upstart or systemd, Redis can interact with your
+# supervision tree. Options:
+# supervised no - no supervision interaction
+# supervised upstart - signal upstart by putting Redis into SIGSTOP mode
+# supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET
+# supervised auto - detect upstart or systemd method based on
+# UPSTART_JOB or NOTIFY_SOCKET environment variables
+# Note: these supervision methods only signal "process is ready."
+# They do not enable continuous liveness pings back to your supervisor.
+supervised systemd
+
# Specify the server verbosity level.
# This can be one of:
# debug (a lot of information, useful for development/testing)
@@ -844,6 +874,37 @@ hash-max-ziplist-value 64
list-max-ziplist-entries 512
list-max-ziplist-value 64
+# Lists are also encoded in a special way to save a lot of space.
+# The number of entries allowed per internal list node can be specified
+# as a fixed maximum size or a maximum number of elements.
+# For a fixed maximum size, use -5 through -1, meaning:
+# -5: max size: 64 Kb <-- not recommended for normal workloads
+# -4: max size: 32 Kb <-- not recommended
+# -3: max size: 16 Kb <-- probably not recommended
+# -2: max size: 8 Kb <-- good
+# -1: max size: 4 Kb <-- good
+# Positive numbers mean store up to _exactly_ that number of elements
+# per list node.
+# The highest performing option is usually -2 (8 Kb size) or -1 (4 Kb size),
+# but if your use case is unique, adjust the settings as necessary.
+list-max-ziplist-size -2
+#
+# Lists may also be compressed.
+# Compress depth is the number of quicklist ziplist nodes from *each* side of
+# the list to *exclude* from compression. The head and tail of the list
+# are always uncompressed for fast push/pop operations. Settings are:
+# 0: disable all list compression
+# 1: depth 1 means "don't start compressing until after 1 node into the list,
+# going from either the head or tail"
+# So: [head]->node->node->...->node->[tail]
+# [head], [tail] will always be uncompressed; inner nodes will compress.
+# 2: [head]->[next]->node->node->...->node->[prev]->[tail]
+# 2 here means: don't compress head or head->next or tail->prev or tail,
+# but compress all nodes between them.
+# 3: [head]->[next]->[next]->node->node->...->node->[prev]->[prev]->[tail]
+# etc.
+list-compress-depth 0
+
# Sets have a special encoding in just one case: when a set is composed
# of just strings that happen to be integers in radix 10 in the range
# of 64 bit signed integers.
@@ -951,4 +1012,4 @@ hz 10
# the file will be fsync-ed every 32 MB of data generated. This is useful
# in order to commit the file to the disk more incrementally and avoid
# big latency spikes.
-aof-rewrite-incremental-fsync yes \ No newline at end of file
+aof-rewrite-incremental-fsync yes