Home > database >  Ask a about Redis running for a few days can't write the problems of success
Ask a about Redis running for a few days can't write the problems of success

Time:10-03

Use redis realize save user login information and the function of the authentication code, but after running for a few days, redis will write failure, the generated verification code can't write redis and save the user information,
The current redis. Windows. Only modify the following a few parameters in the conf
The timeout 60
Loglevel notice
Logfile redis. Log
Stop - writes - on - bgsave - error no
64 server running on windows2008 above
Now only use a single redis, version 2.8 and 3.0 are tested, not the users, not more than 100 the number of connections,
Do you have the place to change?

CodePudding user response:

I also encountered this problem, don't know the building Lord solve,

CodePudding user response:

Pay attention to the service if there is a lot of close_wait state of network connection,
In general, redis timeout timeout (60) need is greater than your client connection pool timeout,
Otherwise it will produce a lot of close_wait lead to service not available file descriptor, further lead to network is not available, further lead to can't write redis,
  • Related