Personal experience the operation and maintenance of the interview - redis part

Rdis face questions

1. What is redis

Redis is an open source high-level key-value data storage and caching. It is also a data structure called a server, which includes not only the key string, further comprising a hash, sets, lists and ordered sets.

What data structures 2. redis have

String String, Dictionary Hash, List List, a collection of Set, an ordered set of SortedSet.

3. redis memcache What are the advantages compared to

1. redis data types supported by more than memcache

2. redis memory faster than memcache

3. redis can do persist

Redis memcached What are the advantages compared to?

Author: mark 99
links: http: //www.imooc.com/article/36399
Source: Mu class network
Redis memcached What are the advantages compared to?

Author: mark 99
links: http: //www.imooc.com/article/36399
Source: Mu class network

4. redis which provides several ways persistence

RDB enabled by default, it will be configured in accordance with the specified time snapshot of the data in memory to disk, create a dump.rdb file and then restore the memory when Redis start.

AOF record recovery data for each write operation (read operation is not recorded), simply append the file but not overwrite the file, it will execute from start to finish all over again according to the log when Redis start to finish in the form of logs

5. Modify the configuration does not restart redis immediate effect will it?

config set command can be modified without rebooting

6. redis sentinel works

1. sentinel PING command sent once per second to another node

2. If the actual column PING recovery time than the specified time is defined as the subjective offline

3. Other sentinel confirm that you really into the subjective offline, will be marked as objective offline

4. vote for the new master node and the remaining nodes from the master node to the new data replication

Guess you like

Origin www.cnblogs.com/Wshile/p/12566216.html