Or, How to Run Multiple Instances of Redis on One Machine.

Why would you even want to do something like this? Well Redis is a single threaded application. So if you have a server with 8 cores and it runs Redis, only 1 of those cores will ever be used by Redis.

By running multiple instances on the same machine and pinning each instance to specific CPU core you can better utilize the Cores to more quickly serve data.

To accomplish this I use :

Here is an example from my init.d file that I use to run Redis on my Ubuntu 16.04 machine:

Its pretty simple, instead of calling redis-server directly you first call /usr/bin/tasket and then pass in the proper arguments. If you were to type the full command out it would look like this:

The full file is below