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, make a list of installation steps:
1. Mount the installation package redis-3.0.6.tar.gz to the system root directory with WINSCP
2. Decompression: Tar zvxf redis-3.2.1.tar.gz
3. Access to directory: CD redis-3.2.1
4. Compile: Make
5. Enter
Python thread and Redis Simple read-write operation Application 1. Python Threads & thread pool Concepts Python uses threads in two ways: functions or wrapping thread object functions with classes: Tuning H generates new threads with the
Copyright NOTICE: This article is the original article of the blogger, without the permission of the blogger may not be reproduced.
Directory (?) [+]String [HTML]View plain copy 1, String common commands: In addition to operations such as GET, set,
1. redis.conf Configuration parameters:
#是否作为守护进程运行
Daemonize Yes
#如以后台进程运行, you need to specify a PID, which defaults to/var/run/redis.pid
Pidfile Redis.pid
#绑定主机IP, the default value is 127.0.0.1
#bind 127.0.0.1
#Redis默认监听端口
Port 6379
#客户端闲置多少秒后,
Redis more than 3.0 support clusters, because the cluster needs ruby support, you need to install the Ruby environment and download the Communication Management Pack
Ruby Environment Installation
Redis Command Reference:
on the difference and summary of memcache and Redis
Redis and memcached Overall comparison
1 Performance comparison: Because Redis only use a single core, and memcached can use multi-core, so on average each kernel Redis in storing small data than
Exception content:
Redis.clients.jedis.exceptions.JedisConnectionException:java.net.SocketTimeoutException:Read timed out at Redis.clients.jedis.Protocol.process (protocol.java:79) ~[jedis-2.1.0.jar:na] at Redis.clients.jedis.Protocol.read
Project to do separation, the previous operation of the project to do a separate processing, the original Redis cache naturally to separate, to avoid maximizing the impact of changes on the function, for caching the database is just a separate
1 release the comment of cluster-enabled Yes in Redis.config
2 Copy redis.conf files
Modify Port: 6380 6381 6382
3 Start Redis Service separately
4 using the Redis Client command: Cluster meet IP Port command to create a cluster
5 Using the Redis
Author: silenceper
Date: 2013-10-03
Original address: http://silenceper.com/archives/959.html
One of the biggest differences between Redis and memcached is the persistence of Redis support data, the ability to keep the in-memory data on disk, and
Using Redis as a cache in your project, the following error occurs after running for a period of time: Could not get a resource from the pool, and then look at the specific exception information is jedispool to get the Jedis object, This means that
1. Demand Analysis
The author's project has a check-in function: A user can only sign in once a day, but in the case of concurrency, a user may be able to check in several times a day, in this case, the first thing I think of is the use of Redis
Function Introduction
Most of the users like to use Redistemplate, and its corresponding package is org.springframework.data.redis.core. The template is actually the core class of the Redis module because of its rich functionality. Templates
Redis supports 5 types of data, which are described below:
Strings-String
The Redis string is a sequence of bytes. In Redis, strings are binary safe, which means they have a known length that is not determined by any special character
Follow the Redis Getting Started Guide to learn
Chapter III 5 Types of data----hash type
3.3 (hash type)
Redis uses several structures to store data in the form of a health-value pair, while the health value of a hash type (hash) is also a
In configuration file redis.conf, the default bind interface is 127.0.0.1, which is the local loopback address. In this case, access to the Redis service can only be connected through a native client, not through a remote connection,
This avoids
Starting with this article (called The Redis Analysis series), you will explore the internal implementation of Redis by analyzing its source code (with the Redis 2.2.0 RC1 as the standard). This article mainly introduces the Redis boot loading
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