Reliable Windows Redis and Windows Redis

Source: Internet
Author: User

Reliable Windows Redis and Windows Redis

Subtitle: comments are more exciting. How can you solve the problem of 64-bit Windows version of Redis occupying the C disk.

MS Open Tech technical team recently spent a lot of time testing the latest build of Windows Redis (available in MS Open Tech Github repository ). when our test plan is about to be completed, we think we should share some exciting results.

In the first stage of stress testing, we asked Redis to perform various tests on Windows. The execution time ranges from 1 day to 16 days, as well as simple single master configuration, to the more complex configurations shown in, including one Master and four replicas. You can view the overall test policy and configuration on our wiki page.

The test results are exciting-we only found one BUG, and of course we have fixed it.

These completed tests are based on the Linux version of Redis2.6.8 and migrated to the Windows version. This version has completed all the goals we announced in January, such as supporting 64-bit systems. Our goal is to ensure that developers can safely use Redis on Windows, including high-performance business scenarios. we plan to continue testing in more "demanding" scenarios to ensure we have never missed anything.

If you have any comments or suggestions on business scenarios and test plans/strategies, please inform the authors. We are happy to use any app or scenario suitable for Redis developers.

Comments are more exciting on the first floor:

We are glad to see your progress. We like to use Redis in distributed projects, but we have been running an independent linux server or an exclusive Redis virtual machine. Of course, this is not a big deal. Let's decide based on the specific situation.

Good job! (Good work !)

Second floor:

Good work! It is really good to do development or simple testing on windows.

Third floor:

Redis 2.8.12 -- I have two versions of redis-server.exe: one is 32-bit, the other is 64-bit, And a RedisQFork will be created when both versions are started. dat file. When I run a 32-bit exe, the file size is 500 MB, And when I run a 64-bit exe, RedisQFork. the dat file is changed to 16 GB, which is the problem.

So is there any way (such as configuring some parameters) to prevent Redis from creating this 16 GB file? (By the way, my server is windows 2012, so I want to use a 64-bit exe... Is there any way for redis not to create this huge file, or if it is necessary to create this file, is there any way for Redis to be created on another disk or on the Network (unc path), for example, where there is a large storage space.

Can you explain the role of this file by the way.

Thank you!

4 floor:

I also encountered the same problem as Rushdeep, that is, the 64-bit version of The RedisQFork_nnnn.dat file occupies 16 GB of disk space. Is this a bug?

Fifth floor:

I encountered the same problem. I'm not sure whether the RedisQFork file is smaller, but I'm sure you can set the Redis startup parametersheapdirTo adjust the location of the file. For example:redis-server.exe -heapdir D:\redisdata

Tie an remarks:

Of course, it has been a long time since the tie anchor encountered this problem. I was directed to the boss tonight and learned the truth that life should not be mixed up. So I went home and started to solve this problem. Baidu searched RedisQFork and found this article. Of course, according to the solution on the 5th floor, this is a solution.

Onredis.windows.confSearch"heapdir", And then add a line under the content commented out by default to specify the storage path of the Redis memory ed file:

# Heapdir specifies the path name of the memory ing file, which cannot be the file name # heapdir <directory path (absolute or relative)> heapdir D:/temp/redis_heapdir/

Please specify the specific files and directories based on your own disk. My symptoms and situation are as follows: 16 GB memory, 64 bit Redis for Windows, started Redis and then on disk C.C:\Windows\ServiceProfiles\NetworkService\AppData\Local\RedisA 16 GB RedisQFork_8792.dat file is generated under the directory (8792 is the PID of the process started this time, and the file is automatically deleted when redis is disabled ). originally, in order to save money, I only got 64 gb ssd. As a result, 16 GB disk space is only 16 GB after I eat it. Since I set it to d disk and restarted it, I feel much better with obsessive-compulsive disorder.

Of course, you don't want to talk about this. Instead, you want to introduce two parameters:

# Maxheap specifies the maximum number of heap bytes, for example, 10000000 # maxheap <bytes> # maxmemory specifies the maximum memory usage, in bytes # maxmemory <bytes>

For specific parameters, please refer to the instructions in the configuration file and you will know when you search for them. (the two parameters are configured with iron anchor, but they cannot be started for half a day. Let's wait for the research to understand them .)

Original article: Redis on Windows-stable and reliable

Original Article Date:

Translation Date:

Iron anchor: http://blog.csdn.net/renfufei

Contents of CNCounter Translation: https://github.com/cncounter/translation

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.