Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 内存中的key没有持久化到rocksdb #285

Open
safuel0759 opened this issue Jun 11, 2024 · 0 comments
Open

[BUG] 内存中的key没有持久化到rocksdb #285

safuel0759 opened this issue Jun 11, 2024 · 0 comments

Comments

@safuel0759
Copy link

复现步骤:
1、使用redis-shake通过restore rdb file导入key
2、导入完成后执行info keyspace查看key信息,直到evicts值不再增加
#Keyspace
db0:keys=34897,evicts=142868,metas=0,expires=0,avg_ttl=0
3、shutdown save
4、重新启动xredis-ror
5、执行info keyspace查看key信息
#Keyspace
db0:keys=0,evicts=142868,metas=0,expires=0,avg_ttl=0

redis.conf参数
######################
swap-mode disk
swap-threads 4
swap-max-db-size 0
swap-evict-inprogress-growth-rate 5mb
swap-evict-inprogress-limit 128
swap-evict-step-max-subkeys 1024
swap-evict-step-max-memory 1mb
swap-ratelimit-policy pause
swap-ratelimit-maxmemory-percentage 200
swap-persist-enabled yes
swap-ratelimit-maxmemory-pause-growth-rate 20mb
#####################
gtid-enable yes
gtid-enabled-config-sync-with-master yes
gtid-uuid-gap-max-memory 10mb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant