Skip to content

Commit b60f8bc

Browse files
update naming to query performance factor (#603)
* update naming to query performance factor * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Update content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md Co-authored-by: Rachel Elledge <[email protected]> * Apply remaining suggestions from code review --------- Co-authored-by: Rachel Elledge <[email protected]>
1 parent 918d4dc commit b60f8bc

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

content/operate/oss_and_stack/stack-with-enterprise/search/scalable-search.md renamed to content/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
---
2-
Title: Enable scalable Redis Query Engine in Redis Enterprise
2+
Title: Configure the query performance factor for Redis Query Engine in Redis Enterprise
33
alwaysopen: false
44
categories:
55
- docs
66
- operate
77
- stack
8-
description: Enable the scalable Redis Query Engine in Redis Enterprise to increase the performance of queries.
9-
linkTitle: Enable scalable Redis Query Engine
8+
description: Configure the query performance factor for Redis Query Engine in Redis Enterprise to increase the performance of queries.
9+
linkTitle: Configure query performance factor
1010
weight: 20
1111
aliases: /operate/oss_and_stack/stack-with-enterprise/search/scalable-search/
12+
/operate/oss_and_stack/stack-with-enterprise/search/query-performance-factor/
1213
---
1314

14-
Redis Query Engine is a capability intended to increase the performance of queries, including [vector search]({{<relref "/develop/interact/search-and-query/query/vector-search">}}). When enabled, it allows you to increase a database's compute capacity and throughput by allocating more virtual CPUs per shard in addition to horizontal scaling with more shards. This document describes how to configure the Redis Query Engine.
15+
Query performance factors are intended to increase the performance of queries, including [vector search]({{<relref "/develop/interact/search-and-query/query/vector-search">}}). When enabled, it allows you to increase a database's compute capacity and throughput by allocating more virtual CPUs per shard in addition to horizontal scaling with more shards. This document describes how to configure the query performance factor.
1516

1617
{{<note>}}
1718
Some use cases might not scale effectively. Redis experts can help determine if vertical scaling with the Redis Query Engine will boost performance for your use case and guide you on whether to use vertical scaling, horizontal scaling, or both.
@@ -31,13 +32,13 @@ If you do not have a cluster that supports Redis Query Engine, [install Redis En
3132

3233
1. Calculate the RAM requirements using the [Index Size Calculator](https://redis.io/redisearch-sizing-calculator/). The total RAM required is the sum of the dataset and index sizes.
3334

34-
1. [Determine the scaling factor](#calculate-scaling-factor) you want and the required number of CPUs. Unused CPUs, above the 20% necessary for Redis, can be used for the scalable Redis Query Engine.
35+
1. [Determine the query performance factor](#calculate-performance-factor) you want and the required number of CPUs. Unused CPUs, above the 20% necessary for Redis, can be used for the scalable Redis Query Engine.
3536

36-
1. Create a new Redis database with the number of CPUs configured for the scalable Redis Query Engine.
37+
1. Create a new Redis database with the number of CPUs configured for the Query performance factor.
3738

38-
## Calculate scaling factor
39+
## Calculate performance factor
3940

40-
### CPUs for Redis Query Engine
41+
### CPUs for query performance factor
4142

4243
Vertical scaling of the Redis Query Engine is achieved by provisioning additional CPUs for the search module. At least 20% of the available CPUs must be reserved for Redis internal processing. Use the following formula to define the maximum number of CPUs that can be allocated to search.
4344

@@ -47,9 +48,9 @@ Vertical scaling of the Redis Query Engine is achieved by provisioning additiona
4748
| Redis internals | 20% |
4849
| Available CPUs for Redis Query Engine | floor(0.8 * x) |
4950

50-
### Scale factor versus CPUs
51+
### Query performance factor versus CPUs
5152

52-
The following table shows the number of CPUs required for each scale factor. This calculation is sensitive to how the search index and queries are defined. Certain scenarios might yield less throughput than the ratios in the following table.
53+
The following table shows the number of CPUs required for each performance factor. This calculation is sensitive to how the search index and queries are defined. Certain scenarios might yield less throughput than the ratios in the following table.
5354

5455
| Scale factor | Minimum CPUs required for Redis Query Engine |
5556
|----------------|-----------------------------------------|
@@ -63,7 +64,7 @@ The following table shows the number of CPUs required for each scale factor. Thi
6364
| 14 | 21 |
6465
| 16 | 24 |
6566

66-
### Example scale factor calculation
67+
### Example performance factor calculation
6768

6869
| Variable | Value |
6970
|----------|-------|
@@ -72,13 +73,13 @@ The following table shows the number of CPUs required for each scale factor. Thi
7273
| Scale factor | 4x |
7374
| Minimum CPUs required for scale factor | 6 |
7475

75-
## Enable scalable Redis Query Engine
76+
## Configure query performance factor
7677

77-
To enable the scalable Redis Query Engine in Redis Enterprise, use the [REST API]({{<relref "/operate/rs/references/rest-api">}}) to create a new database or update an existing database.
78+
To configure the query performance factor in Redis Enterprise, use the [REST API]({{<relref "/operate/rs/references/rest-api">}}) to create a new database or update an existing database.
7879

7980
### Create new database
8081

81-
To create a database with the scalable Redis Query Engine enabled, use the [create database REST API endpoint]({{<relref "/operate/rs/references/rest-api/requests/bdbs#post-bdbs-v1">}}) with a [BDB object]({{<relref "/operate/rs/references/rest-api/objects/bdb">}}) that includes the following parameters:
82+
To create a database and configure the query performance factor, use the [create database REST API endpoint]({{<relref "/operate/rs/references/rest-api/requests/bdbs#post-bdbs-v1">}}) with a [BDB object]({{<relref "/operate/rs/references/rest-api/objects/bdb">}}) that includes the following parameters:
8283

8384
```json
8485
{
@@ -91,11 +92,11 @@ To create a database with the scalable Redis Query Engine enabled, use the [crea
9192
}
9293
```
9394

94-
See [Calculate scaling factor](#calculate-scaling-factor) to determine the value to use for `<NUMBER_OF_CPUS>`.
95+
See [Calculate performance factor](#calculate-performance-factor) to determine the value to use for `<NUMBER_OF_CPUS>`.
9596

9697
#### Example REST API request for a new database
9798

98-
The following JSON is an example request body used to create a new database with the scalable Redis Query Engine enabled:
99+
The following JSON is an example request body used to create a new database with a 4x query performance factor configured:
99100

100101
```json
101102
{
@@ -127,18 +128,18 @@ curl -k -u "<user>:<password>" https://<host>:9443/v1/bdbs -H "Content-Type:appl
127128

128129
### Update existing database
129130

130-
To enable the scalable Redis Query Engine for an existing database, use the following REST API requests:
131+
To configure the query performance factor for an existing database, use the following REST API requests:
131132

132133
- [Update database configuration]({{<relref "/operate/rs/references/rest-api/requests/bdbs#put-bdbs">}}) to modify the DMC proxy.
133134

134-
- [Upgrade module]({{<relref "/operate/rs/references/rest-api/requests/bdbs/modules/upgrade#post-bdb-modules-upgrade">}}) to set the search module’s scaling factor.
135+
- [Upgrade module]({{<relref "/operate/rs/references/rest-api/requests/bdbs/modules/upgrade#post-bdb-modules-upgrade">}}) to set the search module’s query performance factor.
135136

136137
{{<note>}}
137138
- Because this procedure also restarts the database shards, you should perform it during a maintenance period.
138139
- This procedure overwrites any existing module configuration parameters.
139140
{{</note>}}
140141

141-
The following example script uses both endpoints to configure a 4x scale factor:
142+
The following example script uses both endpoints to configure a 4x query performance factor:
142143

143144
```sh
144145
#!/bin/bash
@@ -167,18 +168,18 @@ curl -o /dev/null -s -k -u "<user>:<password>" https://<host>:9443/v1/bdbs/$DB_I
167168

168169
## Monitoring Redis Query Engine
169170

170-
To monitor a database with the scalable Redis Query Engine enabled:
171+
To monitor a database with a query performance factor configured:
171172

172173
1. Integrate your Redis Enterprise deployment with Prometheus. See [Prometheus and Grafana with Redis Enterprise]({{<relref "/integrate/prometheus-with-redis-enterprise">}}) for instructions.
173174

174175
1. Monitor the `redis_process_cpu_usage_percent` shard metric.
175176

176177
The following Prometheus UI screenshot shows `redis_process_cpu_usage_percent` spikes for a database with two shards:
177178

178-
- 1st 100% spike: [`memtier_benchmark`](https://github.com/RedisLabs/memtier_benchmark) search test at the default scale factor (1 CPU per shard for search).
179+
- 1st 100% spike: [`memtier_benchmark`](https://github.com/RedisLabs/memtier_benchmark) search test at the default (no additional CPUs for search).
179180

180-
- 2nd 100% spike: reconfiguration and shard restart for a 4x scale factor.
181+
- 2nd 100% spike: reconfiguration and shard restart for a 4x query performance factor.
181182

182-
- 3rd 600% spike: `memtier_benchmark` search test with threading at a 4x scale factor (6 CPUs per shard).
183+
- 3rd 600% spike: `memtier_benchmark` search test with threading at a 4x query performance factor (6 CPUs per shard).
183184

184185
{{<image filename="images/rs/screenshots/monitor-rs-scalable-search-cpu-usage.png" alt="The Prometheus graph shows three spikes for redis_process_cpu_usage_percent: 100%, another 100%, then 600%.">}}

0 commit comments

Comments
 (0)