Redis怎么扩展为多CPU(多核)
2016-09-23 19:40
302 查看
原文地址:http://redis.io/topics/faq
It's very unlikely that CPU becomes your bottleneck with Redis, as usually Redis is either memory or network bound. For instance, using pipelining Redis running on an average Linux system can deliver even 500k requests per second, so if your application mainly
uses O(N) or O(log(N)) commands, it is hardly going to use too much CPU.
However, to maximize CPU usage you can start multiple instances of Redis in the same box and treat them as different servers. At some point a single box may not be enough anyway, so if you want to use multiple CPUs you can start thinking of some way to shard
earlier.
You can find more information about using multiple Redis instances in the Partitioning page.
Redis is single threaded. How can I exploit multiple CPU / cores?
It's very unlikely that CPU becomes your bottleneck with Redis, as usually Redis is either memory or network bound. For instance, using pipelining Redis running on an average Linux system can deliver even 500k requests per second, so if your application mainlyuses O(N) or O(log(N)) commands, it is hardly going to use too much CPU.
However, to maximize CPU usage you can start multiple instances of Redis in the same box and treat them as different servers. At some point a single box may not be enough anyway, so if you want to use multiple CPUs you can start thinking of some way to shard
earlier.
You can find more information about using multiple Redis instances in the Partitioning page.
相关文章推荐
- Redis系列-php怎么通过redis扩展使用redis
- Redis系列-php怎么通过redis扩展使用redis
- osx上得php redis扩展怎么安装?
- Redis系列-php怎么通过redis扩展使用redis
- osx上得php redis扩展怎么安装?
- window下wamp扩展redis
- cenos 安装 phpredis 扩展
- Linux下php安装Redis扩展
- CentOS下安装Redis及Redis的PHP扩展
- 每日数十亿级业务下的计数器如何扩展Redis?
- YUM安装PHP5.5及phpredis扩展
- Redis+PHP扩展的安装和Redis集群的配置 与 PHP负载均衡开发方案
- linux 下 php 扩展redis支持
- redis-set扩展命令
- PHP7扩展无效怎么办
- Window下PHP 安装redis扩展
- Linux下php安装Redis扩展
- Redis复制与可扩展集群搭建(转)
- Redis集群方案应该怎么做
- 对于多线程程序,单核cpu与多核cpu是怎么工作的