Azure Redis Cache (3) using Redis Benchmark in a Windows environment

Source: Internet
Author: User
Tags benchmark

Windows Azure Platform Family of articles Catalog

  Readers familiar with the Redis environment know that we can test the performance of Redis in a Linux environment using Redis Benchmark.

  Http://redis.io/topics/benchmarks

   

Today happens to be a situation, customer development is not very familiar with the Linux environment. I got the Redis Benchmark for Windows tool from other colleagues, here to share briefly.

Yes:Http://files.cnblogs.com/files/threestone/redis-benchmark.rar

  

The key steps are as follows:

1. To create the Redis Cache PAAs service on the Azure platform, be careful to turn on Nonssl

2. On the Windows platform, start using Redis Cache Benchmark

3. Using the benchmark tool

1. To create the Redis Cache PAAs service on the Azure platform, be careful to turn on Nonssl

We use Azure PowerShellto execute the following commands:

Add-azurermaccount-environmentname Azurechinacloud#pop-up interface enter user name passwordSelect-azurermsubscription–subscriptionname ' [Subscriptionname] ' | select-azurermsubscription#set the current subscription name#Create a new resource group in the East China data CenterNew-azurermresourcegroup-name ' [Yourresourcegroupname] '-Location ' China East '#in the Eastern China Data Center, the Redis Cache for 6GB is of type basic and there is no SLA guarantee. #Note that SSL is not turned onNew-azurermrediscache-resourcegroupname ' [yourresourcegroupname] '-name ' [rediscachename] '-Location ' China East '- SKU ' Basic '-size ' 6GB '-enablenonsslport$true

Because it is a test environment, we use a Redis type of basic and no SLA. Size is 6GB.

Execution results such as:

  

  

2. Note that the Azure PaaS Redis Cache is limited by the number of concurrent users. Specific connection reference:https://www.azure.cn/home/features/redis-cache/#price

Such as:

  

 In step 1, we created a size of 6GB for the Redis cache. From there, you can see that the number of client connections is 5000.

3. After execution, we create a Windows VM on the local PC machine (or in the same data center as the Redis cache, so the network IO overhead will be smaller)

  Open cmd, execute command: Redis-benchmark.exe--help

  

  

4. wait for the azure PaaS Redis cache to be created, and in local cmd, execute the following command

In the command line above,

  The parameter after-H, which represents the DNS address of the Redis cache

The parameter after-A, which represents the password for the Redis cache

-C after parameters, indicating the number of concurrent connection clients, here we can only be 5000

Additional parameters, you can find detailed instructions in step 3

5.Redis benchmark information is as follows:

  

As you can see, in the case of the concurrent connection values of 5000 and 100, the request per second is different.

Azure Redis Cache (3) using Redis Benchmark in a Windows environment

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.