rubber 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +12 -0
- data/lib/rubber/version.rb +1 -1
- data/templates/redis/config/rubber/role/redis/redis.conf +46 -24
- data/templates/redis/config/rubber/rubber-redis.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7cbda283edc16bbe012a0ce56c5e92c20a8d8c21
|
|
4
|
+
data.tar.gz: 583d7334e295243b76624c609922856090bfb9c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 419841ea7f76f82175116bd718e7a043d4a060e55b984ee4e3f43c37cee5cbe090f976a3db61b7659f6f6886a69a7bb7c1ab61685f5a009561d5e20abc986b12
|
|
7
|
+
data.tar.gz: f4e86f0a43720d2b796c567f5fbbd477bf21001651c8551c078490941ea16eb51fd10643facbc5a266edf6186401d7c5b73478bc699fc016416c8a4e9f0c033a
|
data/CHANGELOG
CHANGED
data/lib/rubber/version.rb
CHANGED
|
@@ -20,6 +20,26 @@
|
|
|
20
20
|
#
|
|
21
21
|
# units are case insensitive so 1GB 1Gb 1gB are all the same.
|
|
22
22
|
|
|
23
|
+
################################## INCLUDES ###################################
|
|
24
|
+
|
|
25
|
+
# Include one or more other config files here. This is useful if you
|
|
26
|
+
# have a standard template that goes to all Redis server but also need
|
|
27
|
+
# to customize a few per-server settings. Include files can include
|
|
28
|
+
# other files, so use this wisely.
|
|
29
|
+
#
|
|
30
|
+
# Notice option "include" won't be rewritten by command "CONFIG REWRITE"
|
|
31
|
+
# from admin or Redis Sentinel. Since Redis always uses the last processed
|
|
32
|
+
# line as value of a configuration directive, you'd better put includes
|
|
33
|
+
# at the beginning of this file to avoid overwriting config change at runtime.
|
|
34
|
+
#
|
|
35
|
+
# If instead you are interested in using includes to override configuration
|
|
36
|
+
# options, it is better to use include as the last line.
|
|
37
|
+
#
|
|
38
|
+
# include /path/to/local.conf
|
|
39
|
+
# include /path/to/other.conf
|
|
40
|
+
|
|
41
|
+
################################ GENERAL #####################################
|
|
42
|
+
|
|
23
43
|
# By default Redis does not run as a daemon. Use 'yes' if you need it.
|
|
24
44
|
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
|
|
25
45
|
daemonize yes
|
|
@@ -32,6 +52,15 @@ pidfile /var/run/redis.pid
|
|
|
32
52
|
# If port 0 is specified Redis will not listen on a TCP socket.
|
|
33
53
|
port <%= rubber_env.redis_server_port %>
|
|
34
54
|
|
|
55
|
+
# TCP listen() backlog.
|
|
56
|
+
#
|
|
57
|
+
# In high requests-per-second environments you need an high backlog in order
|
|
58
|
+
# to avoid slow clients connections issues. Note that the Linux kernel
|
|
59
|
+
# will silently truncate it to the value of /proc/sys/net/core/somaxconn so
|
|
60
|
+
# make sure to raise both the value of somaxconn and tcp_max_syn_backlog
|
|
61
|
+
# in order to get the desired effect.
|
|
62
|
+
tcp-backlog 511
|
|
63
|
+
|
|
35
64
|
# By default Redis listens for connections from all the network interfaces
|
|
36
65
|
# available on the server. It is possible to listen to just one or multiple
|
|
37
66
|
# interfaces using the "bind" configuration directive, followed by one or
|
|
@@ -96,7 +125,7 @@ logfile <%= rubber_env.redis_server_log_file %>
|
|
|
96
125
|
# dbid is a number between 0 and 'databases'-1
|
|
97
126
|
databases 16
|
|
98
127
|
|
|
99
|
-
################################ SNAPSHOTTING
|
|
128
|
+
################################ SNAPSHOTTING ################################
|
|
100
129
|
#
|
|
101
130
|
# Save the DB on disk:
|
|
102
131
|
#
|
|
@@ -159,9 +188,9 @@ dbfilename dump.rdb
|
|
|
159
188
|
#
|
|
160
189
|
# The DB will be written inside this directory, with the filename specified
|
|
161
190
|
# above using the 'dbfilename' configuration directive.
|
|
162
|
-
#
|
|
191
|
+
#
|
|
163
192
|
# The Append Only File will also be created inside this directory.
|
|
164
|
-
#
|
|
193
|
+
#
|
|
165
194
|
# Note that you must specify a directory here, not a file name.
|
|
166
195
|
dir <%= rubber_env.redis_db_dir %>
|
|
167
196
|
|
|
@@ -318,7 +347,7 @@ slave-priority 100
|
|
|
318
347
|
#
|
|
319
348
|
# This should stay commented out for backward compatibility and because most
|
|
320
349
|
# people do not need auth (e.g. they run their own servers).
|
|
321
|
-
#
|
|
350
|
+
#
|
|
322
351
|
# Warning: since Redis is pretty fast an outside user can try up to
|
|
323
352
|
# 150k passwords per second against a good box. This means that you should
|
|
324
353
|
# use a very strong password otherwise it will be very easy to break.
|
|
@@ -384,14 +413,14 @@ slave-priority 100
|
|
|
384
413
|
|
|
385
414
|
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
|
|
386
415
|
# is reached. You can select among five behaviors:
|
|
387
|
-
#
|
|
416
|
+
#
|
|
388
417
|
# volatile-lru -> remove the key with an expire set using an LRU algorithm
|
|
389
418
|
# allkeys-lru -> remove any key accordingly to the LRU algorithm
|
|
390
419
|
# volatile-random -> remove a random key with an expire set
|
|
391
420
|
# allkeys-random -> remove a random key, any key
|
|
392
421
|
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
|
|
393
422
|
# noeviction -> don't expire at all, just return an error on write operations
|
|
394
|
-
#
|
|
423
|
+
#
|
|
395
424
|
# Note: with any of the above policies, Redis will return an error on write
|
|
396
425
|
# operations, when there are not suitable keys for eviction.
|
|
397
426
|
#
|
|
@@ -436,10 +465,11 @@ slave-priority 100
|
|
|
436
465
|
appendonly no
|
|
437
466
|
|
|
438
467
|
# The name of the append only file (default: "appendonly.aof")
|
|
439
|
-
|
|
468
|
+
|
|
469
|
+
appendfilename "appendonly.aof"
|
|
440
470
|
|
|
441
471
|
# The fsync() call tells the Operating System to actually write data on disk
|
|
442
|
-
# instead to wait for more data in the output buffer. Some OS will really flush
|
|
472
|
+
# instead to wait for more data in the output buffer. Some OS will really flush
|
|
443
473
|
# data on disk, some other OS will just try to do it ASAP.
|
|
444
474
|
#
|
|
445
475
|
# Redis supports three different modes:
|
|
@@ -480,15 +510,16 @@ appendfsync everysec
|
|
|
480
510
|
# the same as "appendfsync none". In practical terms, this means that it is
|
|
481
511
|
# possible to lose up to 30 seconds of log in the worst scenario (with the
|
|
482
512
|
# default Linux settings).
|
|
483
|
-
#
|
|
513
|
+
#
|
|
484
514
|
# If you have latency problems turn this to "yes". Otherwise leave it as
|
|
485
515
|
# "no" that is the safest pick from the point of view of durability.
|
|
516
|
+
|
|
486
517
|
no-appendfsync-on-rewrite no
|
|
487
518
|
|
|
488
519
|
# Automatic rewrite of the append only file.
|
|
489
520
|
# Redis is able to automatically rewrite the log file implicitly calling
|
|
490
521
|
# BGREWRITEAOF when the AOF log size grows by the specified percentage.
|
|
491
|
-
#
|
|
522
|
+
#
|
|
492
523
|
# This is how it works: Redis remembers the size of the AOF file after the
|
|
493
524
|
# latest rewrite (if no rewrite has happened since the restart, the size of
|
|
494
525
|
# the AOF at startup is used).
|
|
@@ -531,7 +562,7 @@ lua-time-limit 5000
|
|
|
531
562
|
# but just the time needed to actually execute the command (this is the only
|
|
532
563
|
# stage of command execution where the thread is blocked and can not serve
|
|
533
564
|
# other requests in the meantime).
|
|
534
|
-
#
|
|
565
|
+
#
|
|
535
566
|
# You can configure the slow log with two parameters: one tells Redis
|
|
536
567
|
# what is the execution time, in microseconds, to exceed in order for the
|
|
537
568
|
# command to get logged, and the other parameter is the length of the
|
|
@@ -545,13 +576,13 @@ slowlog-log-slower-than 10000
|
|
|
545
576
|
|
|
546
577
|
# There is no limit to this length. Just be aware that it will consume memory.
|
|
547
578
|
# You can reclaim memory used by the slow log with SLOWLOG RESET.
|
|
548
|
-
slowlog-max-len
|
|
579
|
+
slowlog-max-len 128
|
|
549
580
|
|
|
550
581
|
############################# Event notification ##############################
|
|
551
582
|
|
|
552
583
|
# Redis can notify Pub/Sub clients about events happening in the key space.
|
|
553
584
|
# This feature is documented at http://redis.io/topics/keyspace-events
|
|
554
|
-
#
|
|
585
|
+
#
|
|
555
586
|
# For instance if keyspace events notification is enabled, and a client
|
|
556
587
|
# performs a DEL operation on key "foo" stored in the Database 0, two
|
|
557
588
|
# messages will be published via Pub/Sub:
|
|
@@ -627,7 +658,7 @@ zset-max-ziplist-value 64
|
|
|
627
658
|
# that is rehashing, the more rehashing "steps" are performed, so if the
|
|
628
659
|
# server is idle the rehashing is never complete and some more memory is used
|
|
629
660
|
# by the hash table.
|
|
630
|
-
#
|
|
661
|
+
#
|
|
631
662
|
# The default is to use this millisecond 10 times every second in order to
|
|
632
663
|
# active rehashing the main dictionaries, freeing memory when possible.
|
|
633
664
|
#
|
|
@@ -649,7 +680,7 @@ activerehashing yes
|
|
|
649
680
|
#
|
|
650
681
|
# normal -> normal clients
|
|
651
682
|
# slave -> slave clients and MONITOR clients
|
|
652
|
-
# pubsub -> clients
|
|
683
|
+
# pubsub -> clients subscribed to at least one pubsub channel or pattern
|
|
653
684
|
#
|
|
654
685
|
# The syntax of every client-output-buffer-limit directive is the following:
|
|
655
686
|
#
|
|
@@ -700,12 +731,3 @@ hz 10
|
|
|
700
731
|
# big latency spikes.
|
|
701
732
|
aof-rewrite-incremental-fsync yes
|
|
702
733
|
|
|
703
|
-
################################## INCLUDES ###################################
|
|
704
|
-
|
|
705
|
-
# Include one or more other config files here. This is useful if you
|
|
706
|
-
# have a standard template that goes to all Redis server but also need
|
|
707
|
-
# to customize a few per-server settings. Include files can include
|
|
708
|
-
# other files, so use this wisely.
|
|
709
|
-
#
|
|
710
|
-
# include /path/to/local.conf
|
|
711
|
-
# include /path/to/other.conf
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubber
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.7.
|
|
4
|
+
version: 2.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Conway
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-02-
|
|
12
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|