Lock Stores
These docs are for version 1.x of Rasa Open Source.
User Guide
- Installation
- Tutorial: Rasa Basics
- Tutorial: Building Assistants
- Command Line Interface
- Architecture
- Messaging and Voice Channels
- Testing Your Assistant
- Setting up CI/CD
- Validate Data
- Configuring the HTTP API
- Deploying Your Rasa Assistant
- Cloud Storage
NLU
- About
- Using NLU Only
- Training Data Format
- Language Support
- Choosing a Pipeline
- Components
- Entity Extraction
Core
- About
- Stories
- Domains
- Responses
- Actions
- Reminders and External Events
- Policies
- Slots
- Forms
- Retrieval Actions
- Interactive Learning
- Fallback Actions
- Knowledge Base Actions
Conversation Design
API Reference
- Action Server
- HTTP API
- Jupyter Notebooks
- Agent
- Custom NLU Components
- Rasa SDK
- Events
- Tracker
- Tracker Stores
- Event Brokers
- Lock Stores
- Training Data Importers
- Featurization of Conversations
- TensorFlow Configuration
- Migration Guide
- Rasa Open Source Change Log
Migrate from (beta)
Reference
Lock Stores
Rasa uses a ticket lock mechanism to ensure that incoming messages for a given conversation ID are processed in the right order, and locks conversations while messages are actively processed. This means multiple Rasa servers can be run in parallel as replicated services, and clients do not necessarily need to address the same node when sending messages for a given conversation ID.
InMemoryLockStore (default)
InMemoryLockStore is the default lock store. It maintains conversation locks
within a single process.
Configuration
To use the InMemoryTrackerStore no configuration is needed.
RedisLockStore
RedisLockStore maintains conversation locks using Redis as a persistence layer.
This is the recommended lock store for running a replicated set of Rasa servers.
Configuration
To set up Rasa with Redis the following steps are required:
Start your Redis instance
Add required configuration to your
endpoints.yml
lock_store:
type: "redis"
url: <url of the redis instance, e.g. localhost>
port: <port of your redis instance, usually 6379>
password: <password used for authentication>
db: <number of your database within redis, e.g. 0>
- To start the Rasa Core server using your Redis backend, add the
--endpointsflag, e.g.:
rasa run -m models --endpoints endpoints.yml
Parameters
url(default:localhost): The url of your redis instanceport(default:6379): The port which redis is running ondb(default:0): The number of your redis databasepassword(default:None): Password used for authenticationuse_ssl(default:False): Whether or not the communication is encrypted