bluesky / bluesky-queueserver

Server for queueing plans
https://blueskyproject.io/bluesky-queueserver/
BSD 3-Clause "New" or "Revised" License
11 stars 20 forks source link

Add custom prefix to Redis keys #298

Closed dmgav closed 4 months ago

dmgav commented 4 months ago

Description

After the code changes in this PR, RE Manager is adding an identical prefix to each Redis key. The default prefix is qs_default (the parameter name plan_queue becomes qs_default_plan_queue, etc.) A custom prefix can be passed using --redis-name-prefix CLI parameter or the redis_name_prefix parameter in the network section of the YML config file. A properly chosen prefix allows to easily distinguish between parameters created by the queue server and other applications using the same Redis server. Two instance of RE Manager using different prefix can share the same Redis server. (It is still recommended that the Redis server is running on the same machine as RE Manager).

RE Manager can still used old names without prefix. Do configure RE Manager to key names without prefix, pass "" (empty string) to the --redis-name-prefix CLI parameter or set network/redis_name_prefix key in the YML config file.

Motivation and Context

The motivations for the change:

Summary of Changes for Release Notes

Fixed

Added

Changed

Removed

How Has This Been Tested?

Unit tests were added. The existing unit tests were modified.