Back

redis - 性能优化相关 optimization

发布时间: 2020-02-16 05:14:00

配置文件:   /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

Back