redis cluster continuously print log WSA_IO_PENDING

前端 未结 3 2023
醉话见心
醉话见心 2021-02-19 03:22

When I start up all the redis-server of the redis cluster, all these servers continuously print logs like WSA_IO_PENDING clusterWriteDone

[9956] 03 Feb 18:17:25.         


        
相关标签:
3条回答
  • 2021-02-19 03:29
    1. Go on this location C:\Program Files\Redis

    2. Open file redis.windows-service.conf in Notepad.

    You will find a section like below:

    # Specify the server verbosity level.
    # This can be one of:
    # debug (a lot of information, useful for development/testing)
    # verbose (many rarely useful info, but not a mess like the debug level)
    # notice (moderately verbose, what you want in production probably)
    # warning (only very important / critical messages are logged)
    loglevel notice
    
    # Specify the log file name. Also 'stdout' can be used to force
    # Redis to log on the standard output.
    logfile "Logs/redis_log.txt"
    

    Here, you can change the value of loglevel as per your requirement. I think changing it to warning will solve this issue because it will log only essential errors.

    0 讨论(0)
  • 2021-02-19 03:31

    An issue was open in the official redis repo 10 months ago about that problem. Unfortunately it seems to be abandoned, and it hasn't been solved yet:

    Redis cluster print "WSA_IO_PENDING writing to socket..." continuously, does it matter?

    However, that issue may not be related to redis itself, but to the Windows Sockets API, as pointed out by Cy Rossignol in the comments. It's the winsock API that returns that status to the application, as seen in the documentation:

    WSA_IO_PENDING (997)

    Overlapped operations will complete later.

    The application has initiated an overlapped operation that cannot be completed immediately. A completion indication will be given later when the operation has been completed. Note that this error is returned by the operating system, so the error number may change in future releases of Windows.

    Maybe it didn't get much attention because it's not a bug, although it's indeed an inconvenience that floods the system logs. In that case, you may not get help there.

    Seems like there's no temporary fix. The Windows Redis fork is archived and I don't know if you could get any help there either.

    0 讨论(0)
  • 2021-02-19 03:54

    There is no way to specifically turn those "warnings" off in 3.2.x port of Redis for Windows as the logging statements use highest LL_WARNING level. This issue has been reported in my fork of that unmaintained MSOpenTech's repo (which I updated to Redis 4.0.2) and has been fixed by decreasing that level to LL_DEBUG. More details: https://github.com/tporadowski/redis/issues/14

    This change will be included in the next release (4.0.2.3) or you can get the latest source code and build it for yourself.

    Current releases can be found here: https://github.com/tporadowski/redis/releases

    0 讨论(0)
提交回复
热议问题