Home>Article>Database> What are the two types of nodes in the Redis cluster?

What are the two types of nodes in the Redis cluster?

王林
王林 Original
2020-06-24 13:42:04 2139browse

What are the two types of nodes in the Redis cluster?

Nodes in the Redis cluster are divided into master nodes (master) and slave nodes (slave). The master node is used to process slots, while the slave node is used to copy certain nodes. A master node, and when the replicated master node goes offline, it will continue to process command requests on behalf of the offline master node.

(Recommended tutorial:redis tutorial)

Redis cluster is a distributed database solution provided by Redis. The cluster shares databases through sharding. , and provide replication and failover capabilities.

Redis cluster sacrifices some fault tolerance in order to ensure consistency. The system maintains data consistency as much as possible while ensuring limited resistance to network short-term and node failures.

Redis is a high-performance key-value database. The emergence of redis has largely compensated for the shortcomings of key/value storage such as memcached, and can play a very good supplementary role to relational databases in some situations. It provides Java, C/C, C#, PHP, JavaScript, Perl, Object-C, Python, Ruby, Erlang and other clients, which is very convenient to use.

The above is the detailed content of What are the two types of nodes in the Redis cluster?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn