SHA256
1
0
forked from pool/redis
Martin Pluskal 12510c2879 Accepting request 629656 from home:13ilya:branches:server:database
- Refresh spec-file.
- Update to 4.0.11
  * https://raw.githubusercontent.com/antirez/redis/4.0.11/00-RELEASENOTES
  * The disconnection time between the master and slave was reset
    in an incorrect place, sometimes a good slave will not be able
    to failover because it claims it was disconnected for too much
    time from the master.
  * A replication bug, rare to trigger but non impossible, is in
    Redis for years. It was lately discovered at Redis Labs and
    fixed by Oran Agra. It may cause disconnections,
    desynchronizations and other issues.
  * RANDOMKEY may go in infinite loop on rare situations. Now fixed.
  * EXISTS now works in a more consistent way on slaves.
  * Sentinel: backport of an option to deny a potential security
    problem when the SENTINEL command is used to configure an
    arbitrary script to execute.

OBS-URL: https://build.opensuse.org/request/show/629656
OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=117
2018-08-17 07:30:30 +00:00

 README.SUSE
-------------

1. copy /etc/redis/default.conf.example to /etc/redis/default.conf (or
   /etc/redis/otherapp.conf and so on) For the example we will use
   otherapp.conf

2. change at least pidfile, logfile and dir setting
# the pid file *has* to match your config filename without the ".conf"
pidfile /var/run/redis/otherapp.pid
logfile /var/log/redis/otherapp.log
dir /var/lib/redis/otherapp/

If you want to run more than one instance you also have to change the
socket path and/or the ip:port combination.
 e.g. /var/run/redis/otherapp.sock

If you plan to use redis in combination with apache, then you should
add 'redis' to apache group and set 'unixsocketperm 770':
$ usermod -a -G redis wwwrun
$ systemctl restart apache2
then apache is able to connect to redis socket

Also make sure if you copy configurations from somewhere, that "daemonize"
should be set to "no".

3a. create the database dir:
$ install -d -o redis -g redis -m 0750 /var/lib/redis/otherapp/

3b. add limits (ulimit) to each service
$ install -d -m 0755 /etc/systemd/system/redis@otherapp.service.d
$ echo "[Service]
LimitNOFILE=10240" > /etc/systemd/system/redis@otherapp.service.d/limits.conf

4. systemctl start redis@otherapp
5. systemctl enable redis@otherapp

6. to interact with all instances at the same time use:

systemctl restart redis.target
systemctl stop redis.target
Description
No description provided
Readme 7.1 MiB
Languages
Makefile 100%