Want more timely Centmin Mod News Updates?
Become a Member

Redis Installing Redis on CentOS 7?

Discussion in 'Centmin Mod Insights' started by rdan, Sep 25, 2015.

  1. Xon

    Xon Active Member

    169
    61
    28
    Nov 16, 2015
    Ratings:
    +223
    Local Time:
    12:15 AM
    1.15.x
    MariaDB 10.3.x
    I've mostly seen this occur when Redis is stalling due to disk IO in a contested virtual environment.

    Changing from RDB to AOF helps, but you can still get unpredictable latancy during peak-times.

    You can use the AOF (change log) persistence rather than the RDB (dump) persistence.
    Code:
    appendonly yes
    aof-rewrite-incremental-fsync yes
    appendfsync everysec
    
    Alternatively, just disable persistence all together or periodically do RDB snapshots when you know the site isn't as busy (ie use cron & redis-cli).

    Another alternative if the contents of Redis is important(which for Xenforo it really isn't); is to use a slave todo disk-less replication to and do backup snapshots from that redis instance.
     
    • Informative Informative x 2
  2. eva2000

    eva2000 Administrator Staff Member

    43,505
    9,873
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,248
    Local Time:
    2:15 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. Sunka

    Sunka Well-Known Member

    1,126
    311
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +504
    Local Time:
    6:15 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    That settings are allready in conf.
    This error shows for first time today, it is first error from redis.
    I will leave it as it is, so will shall see is this something that is going to happen more and more, or just was today case.

    Thanks @Xon
     
  4. Sunka

    Sunka Well-Known Member

    1,126
    311
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +504
    Local Time:
    6:15 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Redis updated to 3.2.0 version.
    I have updated and everything seems OK
     
    • Like Like x 1
  5. rdan

    rdan Well-Known Member

    4,873
    1,161
    113
    May 25, 2014
    Ratings:
    +1,743
    Local Time:
    12:15 AM
    Mainline
    10.2
    Mine too (y)
     
    • Like Like x 2
  6. Sunka

    Sunka Well-Known Member

    1,126
    311
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +504
    Local Time:
    6:15 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Redis is updated to 3.2.2 version
    Updated and looks good

    Code:
    [[email protected] ~]# yum list updates --disableplugin=priorities --enablerepo=remi
    Loaded plugins: fastestmirror
    base                                                    | 3.6 kB     00:00     
    elasticsearch-2.x                                       | 2.9 kB     00:00     
    epel/x86_64/metalink                                    |  24 kB     00:00     
    extras                                                  | 3.4 kB     00:00     
    mariadb                                                 | 2.9 kB     00:00     
    remi                                                    | 2.9 kB     00:00     
    updates                                                 | 3.4 kB     00:00     
    remi/primary_db                                           | 1.4 MB   00:00     
    Loading mirror speeds from cached hostfile
    * base: mirror.de.leaseweb.net
    * epel: mirror.de.leaseweb.net
    * extras: mirror.imt-systems.com
    * remi: mirror.23media.de
    * updates: mirror.de.leaseweb.net
    Updated Packages
    ImageMagick-last.x86_64                      6.9.5.4-1.el7.remi            remi
    ImageMagick-last-c++.x86_64                  6.9.5.4-1.el7.remi            remi
    ImageMagick-last-c++-devel.x86_64            6.9.5.4-1.el7.remi            remi
    ImageMagick-last-devel.x86_64                6.9.5.4-1.el7.remi            remi
    ImageMagick-last-libs.x86_64                 6.9.5.4-1.el7.remi            remi
    redis.x86_64                                 3.2.2-1.el7.remi              remi
    
    
    
    [[email protected] ~]# redis-cli save
    OK
    
    
    [[email protected] ~]# yum update --disableplugin=priorities --enablerepo=remi
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirror.de.leaseweb.net
    * epel: mirror.de.leaseweb.net
    * extras: mirror.imt-systems.com
    * remi: mirror.23media.de
    * updates: mirror.de.leaseweb.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package ImageMagick-last.x86_64 0:6.9.5.3-1.el7.remi will be updated
    ---> Package ImageMagick-last.x86_64 0:6.9.5.4-1.el7.remi will be an update
    ---> Package ImageMagick-last-c++.x86_64 0:6.9.5.3-1.el7.remi will be updated
    ---> Package ImageMagick-last-c++.x86_64 0:6.9.5.4-1.el7.remi will be an update
    ---> Package ImageMagick-last-c++-devel.x86_64 0:6.9.5.3-1.el7.remi will be updated
    ---> Package ImageMagick-last-c++-devel.x86_64 0:6.9.5.4-1.el7.remi will be an update
    ---> Package ImageMagick-last-devel.x86_64 0:6.9.5.3-1.el7.remi will be updated
    ---> Package ImageMagick-last-devel.x86_64 0:6.9.5.4-1.el7.remi will be an update
    ---> Package ImageMagick-last-libs.x86_64 0:6.9.5.3-1.el7.remi will be updated
    ---> Package ImageMagick-last-libs.x86_64 0:6.9.5.4-1.el7.remi will be an update
    ---> Package redis.x86_64 0:3.2.1-2.el7.remi will be updated
    ---> Package redis.x86_64 0:3.2.2-1.el7.remi will be an update
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ===============================================================================
    Package                       Arch      Version                 Repository
                                                                              Size
    ===============================================================================
    Updating:
    ImageMagick-last              x86_64    6.9.5.4-1.el7.remi      remi     70 k
    ImageMagick-last-c++          x86_64    6.9.5.4-1.el7.remi      remi    167 k
    ImageMagick-last-c++-devel    x86_64    6.9.5.4-1.el7.remi      remi    105 k
    ImageMagick-last-devel        x86_64    6.9.5.4-1.el7.remi      remi    105 k
    ImageMagick-last-libs         x86_64    6.9.5.4-1.el7.remi      remi    2.2 M
    redis                         x86_64    3.2.2-1.el7.remi        remi    528 k
    
    Transaction Summary
    ===============================================================================
    Upgrade  6 Packages
    
    Total download size: 3.2 M
    Is this ok [y/d/N]: y
    Downloading packages:
    No Presto metadata available for remi
    (1/6): ImageMagick-last-6.9.5.4-1.el7.remi.x86_64.rpm     |  70 kB   00:00     
    (2/6): ImageMagick-last-devel-6.9.5.4-1.el7.remi.x86_64.r | 105 kB   00:00     
    (3/6): ImageMagick-last-c++-devel-6.9.5.4-1.el7.remi.x86_ | 105 kB   00:00     
    (4/6): ImageMagick-last-c++-6.9.5.4-1.el7.remi.x86_64.rpm | 167 kB   00:00     
    (5/6): redis-3.2.2-1.el7.remi.x86_64.rpm                  | 528 kB   00:00     
    (6/6): ImageMagick-last-libs-6.9.5.4-1.el7.remi.x86_64.rp | 2.2 MB   00:00     
    -------------------------------------------------------------------------------
    Total                                             9.2 MB/s | 3.2 MB  00:00     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Updating   : ImageMagick-last-libs-6.9.5.4-1.el7.remi.x86_64            1/12
      Updating   : ImageMagick-last-6.9.5.4-1.el7.remi.x86_64                 2/12
      Updating   : ImageMagick-last-devel-6.9.5.4-1.el7.remi.x86_64           3/12
      Updating   : ImageMagick-last-c++-6.9.5.4-1.el7.remi.x86_64             4/12
      Updating   : ImageMagick-last-c++-devel-6.9.5.4-1.el7.remi.x86_64       5/12
      Updating   : redis-3.2.2-1.el7.remi.x86_64                              6/12
    warning: /etc/redis.conf created as /etc/redis.conf.rpmnew
      Cleanup    : ImageMagick-last-c++-devel-6.9.5.3-1.el7.remi.x86_64       7/12
      Cleanup    : ImageMagick-last-devel-6.9.5.3-1.el7.remi.x86_64           8/12
      Cleanup    : ImageMagick-last-6.9.5.3-1.el7.remi.x86_64                 9/12
      Cleanup    : ImageMagick-last-c++-6.9.5.3-1.el7.remi.x86_64            10/12
      Cleanup    : ImageMagick-last-libs-6.9.5.3-1.el7.remi.x86_64           11/12
      Cleanup    : redis-3.2.1-2.el7.remi.x86_64                             12/12
      Verifying  : ImageMagick-last-c++-devel-6.9.5.4-1.el7.remi.x86_64       1/12
      Verifying  : redis-3.2.2-1.el7.remi.x86_64                              2/12
      Verifying  : ImageMagick-last-6.9.5.4-1.el7.remi.x86_64                 3/12
      Verifying  : ImageMagick-last-c++-6.9.5.4-1.el7.remi.x86_64             4/12
      Verifying  : ImageMagick-last-devel-6.9.5.4-1.el7.remi.x86_64           5/12
      Verifying  : ImageMagick-last-libs-6.9.5.4-1.el7.remi.x86_64            6/12
      Verifying  : ImageMagick-last-6.9.5.3-1.el7.remi.x86_64                 7/12
      Verifying  : ImageMagick-last-libs-6.9.5.3-1.el7.remi.x86_64            8/12
      Verifying  : ImageMagick-last-devel-6.9.5.3-1.el7.remi.x86_64           9/12
      Verifying  : ImageMagick-last-c++-6.9.5.3-1.el7.remi.x86_64            10/12
      Verifying  : ImageMagick-last-c++-devel-6.9.5.3-1.el7.remi.x86_64      11/12
      Verifying  : redis-3.2.1-2.el7.remi.x86_64                             12/12
    
    Updated:
      ImageMagick-last.x86_64 0:6.9.5.4-1.el7.remi                                 
      ImageMagick-last-c++.x86_64 0:6.9.5.4-1.el7.remi                             
      ImageMagick-last-c++-devel.x86_64 0:6.9.5.4-1.el7.remi                       
      ImageMagick-last-devel.x86_64 0:6.9.5.4-1.el7.remi                           
      ImageMagick-last-libs.x86_64 0:6.9.5.4-1.el7.remi                           
      redis.x86_64 0:3.2.2-1.el7.remi                                             
    
    Complete!
    
    [[email protected] ~]# service redis restart
    Redirecting to /bin/systemctl restart  redis.service
    
    
     
    • Informative Informative x 1
  7. eva2000

    eva2000 Administrator Staff Member

    43,505
    9,873
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,248
    Local Time:
    2:15 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    FYI Redis 3.2.3 is out :)
    Code (Text):
    yum update --disableplugin=priorities --enablerepo=remi -y
    Loaded plugins: fastestmirror, security
    Setting up Update Process
    Loading mirror speeds from cached hostfile
    * base: linux.mirrors.es.net
    * extras: mirrors.linode.com
    * remi: mirrors.mediatemple.net
    * rpmforge: mirror.hmc.edu
    * updates: linux.mirrors.es.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package redis.x86_64 0:3.2.2-1.el6.remi will be updated
    ---> Package redis.x86_64 0:3.2.3-1.el6.remi will be an update
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ==========================================================================================================================================================================================================================================================
    Package                                                   Arch                                                       Version                                                              Repository                                                Size
    ==========================================================================================================================================================================================================================================================
    Updating:
    redis                                                     x86_64                                                     3.2.3-1.el6.remi                                                     remi                                                     882 k
    
    Transaction Summary
    ==========================================================================================================================================================================================================================================================
    Upgrade       1 Package(s)
    
    Total download size: 882 k
    Downloading Packages:
    redis-3.2.3-1.el6.remi.x86_64.rpm                                                                                                                                                                                                  | 882 kB     00:00     
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating   : redis-3.2.3-1.el6.remi.x86_64                                                                                                                                                                                                          1/2
      Cleanup    : redis-3.2.2-1.el6.remi.x86_64                                                                                                                                                                                                          2/2
      Verifying  : redis-3.2.3-1.el6.remi.x86_64                                                                                                                                                                                                          1/2
      Verifying  : redis-3.2.2-1.el6.remi.x86_64                                                                                                                                                                                                          2/2
    
    Updated:
      redis.x86_64 0:3.2.3-1.el6.remi                                                                                                                                                                                                                         
    
    Complete!
     
    • Informative Informative x 2
  8. rdan

    rdan Well-Known Member

    4,873
    1,161
    113
    May 25, 2014
    Ratings:
    +1,743
    Local Time:
    12:15 AM
    Mainline
    10.2
    yum clean all && yum update -y

    All my servers don't have it yet :|.
     
  9. Sunka

    Sunka Well-Known Member

    1,126
    311
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +504
    Local Time:
    6:15 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Updated. Fast release, 3.2.2 released few days ago
     
  10. eva2000

    eva2000 Administrator Staff Member

    43,505
    9,873
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,248
    Local Time:
    2:15 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    https://raw.githubusercontent.com/antirez/redis/3.2/00-RELEASENOTES
    Code (Text):
    ================================================================================
    Redis 3.2.3     Released Tue Aug 02 10:55:24 CEST 2016
    ================================================================================
    
    Upgrade urgency MODERATE: Fix replication delay and redis-cli security issue.
    
    Hello,
    
    this is a minor release of Redis addressing two bugs:
    
    1. There was an inverted if statement logic problem in replication.c causing
       a replication delay. This is not an actual problem since things work
       as expected, but worth to fix ASAP anyway.
    
    2. Redis-cli created the history file with insecure permissions, allowing
       reding from the file. This was actually a bug in linenoise which is
       now fixed. The applied fix is from Chris Lamb.
    
    List of commits:
    
    Qu Chen in commit e67ad1d:
    Fix a bug to delay bgsave while AOF rewrite in progress for replication
    1 file changed, 1 insertion(+), 1 deletion(-)
    
    antirez in commit 7153668:
    Update linenoise to fix insecure redis-cli history file creation.
    1 file changed, 6 insertions(+), 1 deletion(-)
    
     
    • Like Like x 1
  11. narji

    narji Member

    69
    6
    8
    Feb 4, 2016
    Ratings:
    +12
    Local Time:
    11:15 PM
    installing redis at nginx level with centmin.sh menu 22 add wordpress
    123.09beta01 centos 7
    from intruction here

    and how to add /openresty-srcache-nginx-module-ffa9ab7 ?
    is the module still needed for redis fully working at nginx level ?

    Code:
    nginx -V
    nginx version: nginx/1.11.5
    built by gcc 5.2.1 20150902 (Red Hat 5.2.1-2) (GCC)
    built with LibreSSL 2.4.3
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=native -g -O3 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module --with-http_secure_link_module --add-module=../nginx-module-vts --with-libatomic --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0 --add-module=../set-misc-nginx-module-0.31 --add-module=../echo-nginx-module-0.60 --add-module=../redis2-nginx-module-0.13 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.17 --add-module=../srcache-nginx-module-0.31 --add-module=../headers-more-nginx-module-0.31 --with-pcre=../pcre-8.39 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.4.3
    Code:
    custom_config_inc
    LETSENCRYPT_DETECT='y'
    LIBRESSL_SWITCH='y'
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    CLANG='n'
    PHP_PGO='y'
    NGINX_DEVTOOLSETGCC='y'
    GENERAL_DEVTOOLSETGCC='y'
    RCLONE_ENABLE='y'
    regards
     
    Last edited: Nov 9, 2016
  12. eva2000

    eva2000 Administrator Staff Member

    43,505
    9,873
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,248
    Local Time:
    2:15 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yes it's needed an already enabled
     
  13. narji

    narji Member

    69
    6
    8
    Feb 4, 2016
    Ratings:
    +12
    Local Time:
    11:15 PM
    you mean this module
    --add-module=../srcache-nginx-module-0.31

    its same module with
    openresty-srcache-nginx-module-ffa9ab7 ?
     
  14. eva2000

    eva2000 Administrator Staff Member

    43,505
    9,873
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,248
    Local Time:
    2:15 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yup the directory name changed that's all - updated the original text now too