I’ve created a Redis Stack server in local via below command:
docker run -d --name redis-stack-rdb-aof -e REDIS_ARGS=“–requirepass redis --save 300 100 --stop-writes-on-bgsave-error no --appendonly yes --appendfsync always --no-appendfsync-on-rewrite no --auto-aof-rewrite-percentage 100 --auto-aof-rewrite-min-size 64mb --aof-use-rdb-preamble yes” -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
After server startup, I created a vector index and inserted 2M vectors in it.
But after restarting the server, I find the warmup time of the server is dramatically long. Time passed 1 hour and it is sill printing " LOADING Redis is loading the dataset in memory" when executing “dbsize”.
Below is the log after restarting:
2023-04-20 13:20:26 9:M 20 Apr 2023 05:20:26.891 * Reading RDB preamble from AOF file…
2023-04-20 13:20:26 9:M 20 Apr 2023 05:20:26.891 * Loading RDB produced by version 6.2.11
2023-04-20 13:20:26 9:M 20 Apr 2023 05:20:26.891 * RDB age 52456 seconds
2023-04-20 13:20:26 9:M 20 Apr 2023 05:20:26.891 * RDB memory usage when created 5487.78 Mb
2023-04-20 13:20:26 9:M 20 Apr 2023 05:20:26.891 * RDB has an AOF tail
2023-04-20 13:20:26 9:M 20 Apr 2023 05:20:26.891 # creating vector index. Server memory limit: 32088838144B, required memory: 98300528B, available memory: 32087785128B
Is it normal in Redis or any mistakes I made?