Home Redis 性能优化相关optimization
Post
Cancel

Redis 性能优化相关optimization

配置文件:   /etc/redis/redis.conf

最大连接数: maxclients  1000000

允许访问: bind 0.0.0.0

查看slow log: 

showslowlog get 10 查看最近10个慢操作

查看当前连接: client list

查看链接信息: info clients

使用连接池:  https://stackoverflow.com/questions/28113940/what-is-the-best-way-to-use-redis-in-a-multi-threaded-rails-environment-puma

This post is licensed under CC BY 4.0 by the author.