redis memory and cpu spikes

前端 未结 3 1522
说谎
说谎 2021-01-14 09:07

We use redis for some data in our app, and it\'s totally great. I noticed however occasional cpu and memory spikes on the redis-server process.

3条回答
  •  孤城傲影
    2021-01-14 09:50

    If I recall correctly, redis forks the process when it does a background save, but only duplicates the memory that is being changed while the save is in progress. So the bump in CPU/memory would depend heavily on how much of the data is being changed while the save is running. So it could certainly be a huge spike at times, and a much lesser spike other times (or none at all, depending on how your load looks).

提交回复
热议问题