Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

State of Redis on Windows in 2019?

I need to configure Redis in HA mode (in cluster) using Redis Sentinel with two Windows Server 2016. Searching around, there is a lot of material on how to install Redis on Windows and none of them seemed.... right to me.

I got to this page which lists most of them in an organized way: https://github.com/ServiceStack/redis-windows

I basically have problem with all of them and would like to understand some things and maybe even get the recommended way to guide me:

  • Install Redis on Ubuntu on Windows
    • This seems... cheaty. Will it have good performance? Will I be able to configure a cluster this way (without much headache), having a Ubuntu VM running on the Windows?
  • Vagrant
    • Basically the same as above
  • Microsoft Native Port
    • This seems less cheaty but on the other hand is rather out-dated. The version available is for Redis 3.0 (the last version is 5.0). So I'm afraid I will be missing out a lot of good features and improvements.
like image 864
João Menighin Avatar asked Jun 18 '19 15:06

João Menighin


People also ask

Will Redis work on Windows?

You can install Redis cache on Windows 10 using Windows Subsystem for Linux(a.k.a WSL2). WSL2 is a compatibility layer for running Linux binary executables natively on Windows 10 and Windows Server 2019.

How do I know if Redis is running on Windows?

start ms-windows-store: Then search for Ubuntu , or your preferred distribution of Linux, and download the latest version. Please note that the sudo command might or mightn't be required based on the user configuration of your system. Use the redis-cli command to test connectivity to the Redis database.

Where is Redis data stored in Windows?

The folder looks like this: folder: C:\Program Files\Redis\conf - there is some template conf file. folder: C:\Program Files\Redis\data - empty. folder: C:\Program Files\Redis\logs - empty.


2 Answers

If you are looking for a native port of Redis on Windows, I recommend www.Memurai.com It is on par with Redis 5.0.9 and has Windows EventLog integration.

like image 55
Rushvel Avatar answered Sep 28 '22 07:09

Rushvel


I'm not clear why you think running the native version of Redis on Linux on Windows either on WSL or in a VM "seems cheaty"? It's the only way to run a supported and recent version of Redis on Windows. I'd be more comfortable running the supported and tested official version of Redis via WSL or VM than I would running an unsupported abandoned fork with known issues.

WSL has disk performance issues, but since Redis mostly runs in memory (except for disk persistence) it runs fine, WSL2 has been optimized for performance so it should run faster, especially disk performance.

But if you've found performance to be an issue you'd just run it on Linux, running Redis on Ubuntu is about the easiest thing you can run on Linux.

like image 22
mythz Avatar answered Sep 28 '22 07:09

mythz