Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

You can use CoreOne with Redis as the store for task data. That should offload MySQL instance and lead to better performance.

Configuration

To enable Redis you have to adjust the following settings in the moving_global.config_setting_value - you should be able to find possible values in the description column of this setting value.

SettingId, SettingCode

50, TaskProgressUpdaterType

Description

Allows to log task progress to Redis or to MySQL instance

Value for MySQL

iTsense.Moving.Backend.Services.TaskSchedulerService.ProgressUpdaters.TaskProgressUpdaterDatabase,iTsense.Moving.Backend.Services.TaskSchedulerService

Value for Redis

iTsense.Moving.Backend.Services.TaskSchedulerService.ProgressUpdaters.TaskProgressUpdaterRedis,iTsense.Moving.Backend.Services.TaskSchedulerService

SettingId, SettingCode

51, TaskLockItemHandlerType

Description

Allows to store worklock items in Redis or in MySQL instance

Value for MySQL

iTsense.Moving.Backend.Common.TaskScheduler.WorkItemLockHandler.WorkItemLockHandlerDataBase,iTsense.Moving.Backend.Common

Value for Redis

iTsense.Moving.Backend.Common.Redis.Tasks.WorkItemLockHandlerRedis,iTsense.Moving.Backend.Common.Redis

SettingId, SettingCode

52, RedisConfiguration

Description

Configuration of your Redis instance

Local Redis installation

If you want to run Redis locally on Windows machine you have a few options avaiable - Docker, virtual machine, paid solutions.

The easiest is to use Memurai (free for developer - not for production):

  1. Download Nuget https://www.nuget.org/packages/MemuraiDeveloper/

  2. Unzip it

  3. Go to tools folder

  4. Start memurai.exe (this is server process with Redis)

  5. Start memurai-cli.exe (this is command line interface you can use to communicate)

After that you should be able to use Redis with CoreOne (just change setting 50/51 to use redis implementation). No need for change in the 52 setting with configuration.

  • No labels