Jump to content

Recommended Posts

Posted

I am getting below error ...  wondering how can I configure it correctly using Redis Socket?  Trying to block the ports and such so that it server only listens to localhost.  Any thoughts? 

 

image.png.badd4a51833bb2dd1364196a7c117cac.png

Posted

Is their anyway to fix Redi or IPS configuration? Every few hours, site complains cache not working.

 

21048:C 28 Jun 2020 07:28:41.430 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 07:28:41.462 * Background saving terminated with success
17991:M 28 Jun 2020 07:31:40.572 * 10000 changes in 60 seconds. Saving...
17991:M 28 Jun 2020 07:31:40.573 * Background saving started by pid 21144
21144:C 28 Jun 2020 07:31:40.676 * DB saved on disk
21144:C 28 Jun 2020 07:31:40.676 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 07:31:40.773 * Background saving terminated with success
17991:M 28 Jun 2020 07:36:41.081 * 10 changes in 300 seconds. Saving...
17991:M 28 Jun 2020 07:36:41.081 * Background saving started by pid 21288
21288:C 28 Jun 2020 07:36:41.156 * DB saved on disk
21288:C 28 Jun 2020 07:36:41.157 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 07:36:41.182 * Background saving terminated with success
17991:M 28 Jun 2020 07:41:42.060 * 10 changes in 300 seconds. Saving...
17991:M 28 Jun 2020 07:41:42.061 * Background saving started by pid 21506
21506:C 28 Jun 2020 07:41:42.128 * DB saved on disk
21506:C 28 Jun 2020 07:41:42.129 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 07:41:42.161 * Background saving terminated with success
17991:M 28 Jun 2020 07:45:53.407 * 10000 changes in 60 seconds. Saving...
17991:M 28 Jun 2020 07:45:53.407 * Background saving started by pid 21641
21641:C 28 Jun 2020 07:45:53.477 * DB saved on disk
21641:C 28 Jun 2020 07:45:53.478 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 07:45:53.507 * Background saving terminated with success
17991:M 28 Jun 2020 07:50:54.006 * 10 changes in 300 seconds. Saving...
17991:M 28 Jun 2020 07:50:54.006 * Background saving started by pid 21872
21872:C 28 Jun 2020 07:50:54.070 * DB saved on disk
21872:C 28 Jun 2020 07:50:54.071 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 07:50:54.106 * Background saving terminated with success
17991:M 28 Jun 2020 07:54:54.522 * 10000 changes in 60 seconds. Saving...
17991:M 28 Jun 2020 07:54:54.522 * Background saving started by pid 21984
21984:C 28 Jun 2020 07:54:54.595 * DB saved on disk
21984:C 28 Jun 2020 07:54:54.596 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 07:54:54.622 * Background saving terminated with success
17991:M 28 Jun 2020 07:57:47.016 * 10000 changes in 60 seconds. Saving...
17991:M 28 Jun 2020 07:57:47.016 * Background saving started by pid 22032
22032:C 28 Jun 2020 07:57:47.095 * DB saved on disk
22032:C 28 Jun 2020 07:57:47.096 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 07:57:47.116 * Background saving terminated with success
17991:M 28 Jun 2020 08:00:28.576 * 10000 changes in 60 seconds. Saving...
17991:M 28 Jun 2020 08:00:28.577 * Background saving started by pid 22145
22145:C 28 Jun 2020 08:00:28.661 * DB saved on disk
22145:C 28 Jun 2020 08:00:28.662 * RDB: 1 MB of memory used by copy-on-write
17991:M 28 Jun 2020 08:00:28.677 * Background saving terminated with success

 

Posted (edited)
18 hours ago, AlexJ said:

I am getting below error ...  wondering how can I configure it correctly using Redis Socket?  Trying to block the ports and such so that it server only listens to localhost.  Any thoughts? 

 

image.png.badd4a51833bb2dd1364196a7c117cac.png

Here is my redis configuration, it works like a charm 

564081392_screen2020-06-2900_37_27.thumb.png.8fc94de96cc01f84fbb21f4c0f0d88c3.png

Of course, you have to configure redis to listen on the socket instead of network port in /etc/redis/redis.conf :

# Accept connections on the specified port, default is 6379 (IANA #815344).
# If port 0 is specified Redis will not listen on a TCP socket.
port 0

# Unix socket.
#
# Specify the path for the Unix socket that will be used to listen for
# incoming connections. There is no default, so Redis will not listen
# on a unix socket when not specified.
#
unixsocket /run/redis/redis-server.sock
unixsocketperm 766

 

 

Edited by b416
Posted (edited)

@b416  Thank you. I will give it a try.  Is 30 mins cache for Guest good time? Isn't it too long?

Also Q: Why mine always shows 1MB. I have increased the RAM usage to 2GB but somehow it still uses 1MB max. Any idea?

Edited by AlexJ
Posted

I am using this version:

 redis-server --version
Redis server v=5.0.3 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=afa0decbb6de285f

 

  • 1 month later...
Posted
On 6/29/2020 at 3:38 AM, b416 said:

Something does not seem to work right then.

1570237647_screen2020-06-2904_34_47.thumb.png.eb6696c892fc9ff2e335bb1241dcf168.png

 

Which version of redis are you using ? I am on 6.0.5 from this repository

 

 

How do you get to this page shown in the screenshot?

Thanks for sharing how to get Redis up and working with IPS.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...