Redis Performance Test
Redis performance testing is accomplished by executing multiple commands at the same time. Grammar
The basic commands for Redis performance testing are as follows:
Redis-benchmark [option] [option value]
instance
The
First, overview:
Redis added a hyperloglog structure in version 2.8.9.
Redishyperloglog is the algorithm used to do cardinality statistics, the advantage of Hyperloglog is that when the number or volume of input elements is very large, the space
1 What is Redis
Redis is a key-value storage system. Like memcached, it supports a relatively larger number of stored value types, including string (string), list (linked list), set (set), and Zset (ordered set). These data types support Push/pop,
Redis offers two persistence modes, RDB and aof; unlike an RDB, aof can completely record an entire database, unlike an RDB that is just a snapshot of a database at a time;
So why does the aof pattern completely record the entire database?
Persistence: Storing data in a device that is not lost after a power outage, usually a hard diskHow the RDB works:After every n minutes or N writes, an RDB file is formed from the memory dump data, compressed , and placed in the backup directory
Today in Redis, execute the setrange name 1 Chun command times with the following error message:(Error) Misconf Redis is configured to save the RDB snapshots, but was currently not able to persist on disk. Commands that may modify the data set is
Database: 1. Relational database
Table structure
2. Non-relational database NoSQL (k-v speed), commonly used when the following three kinds:
Memcache exists in memory
Redis exists in memory
Mangodb data is
The default port for Redis is 6379, you can use a maximum of 16 databases, and the database is independent from one another.Different databases can be accessed by select NumThe following commands can be used to switch to different databases, each
The Redis database is also known as the data structure database because the storage is based on key-value mode.Where value can be a string (String), a hash (map), a list , a collection (set), and an ordered set (Zset).Under the Redis installation
。The first is to build Redis, which is relatively simple.1. Check the installation dependent programinstall gcc-c++yum install -y tclyum install wget2. Get the installation fileswget http://download.redis.io/releases/这里面有很多版本,自己选择需要的下载3. Unzip the
1. Data structureMemccached only supports key-value typesThe Reids supports String hash list set SortedSet, which are internally represented by Reidsobject. 2. Memory ManagementMemcached uses the slab allocation mechanism, which divides the memory
01Redis IntroductionREmote DIctionary Server (Redis) is a Key-value storage system written by Salvatore Sanfilippo.Redis is an open source API that is written in ANSI C, adheres to the BSD protocol, supports networks, can be persisted in memory, key-
One, single-threading modelEach invocation of the Redis client to the server undergoes the sending of a command, which executes the command and returns the result in three processes. Where the command stage is executed, since Redis is
In one of my previous articles, I wrote "Celery+django+redis Asynchronous execution Task"Blog: http://blog.csdn.net/apple9005/article/details/54236212You will find that the code does not rely on the Django framework and can be easily executed in a
First turn on Redis's external connection[Email protected]:~$ sudo vim/etc/redis/redis.confComment out the bind 127.0.0.1.Then restart RedisSudo/etc/init.d/redis-server restartThis way, the Ubuntu Redis machine can be connectedConnect and manipulate#
Using the underlying API: RedisConnection operation of Redis requires manual conversion of data ( String byte ), which requires most repetitive work and is inefficient; org.springframework.data.redis.core.RedisTemplate classes provide a high level
Understand Strictredis Object ? MethodStrictredis Object ? Method
create an object from init , specify the parameter host,Port with the specified server and end ? Connection, Host default is localhost , Port default is 6379 , DB default is 0 sr =
Pure memory access, Redis puts all of the data in memory, and memory response time is approximately 100 nanoseconds, which is an important foundation for Redis's access to universal levels per second.
Non-blocking Io,redis uses epoll as the
Built-in features (only part of the functionality is listed)1. User management: The user is the system operator, this function mainly completes the system User Configuration.2. Organization Management: Configuration system Organization (company,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service