Skip to content

Document max_endpoint_dbs - #25

Draft
tillkruss wants to merge 4 commits into
mainfrom
docs/writers
Draft

Document max_endpoint_dbs#25
tillkruss wants to merge 4 commits into
mainfrom
docs/writers

Conversation

@tillkruss

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 29, 2026 16:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the 1.x documentation around relay.max_endpoint_dbs to reflect the newer shared-cache behavior and to steer performance tuning toward relay.max_db_writers.

Changes:

  • Updates relay.max_endpoint_dbs documentation to describe the default of 1 and explain why higher values are usually counterproductive.
  • Revises historical guidance (previous default 32 / min(vCPUs, pm.max_children)) and points readers to relay.max_db_writers for write concurrency tuning.
  • Updates the configuration reference to reflect the new default for relay.max_endpoint_dbs and adjusts the “peak performance” directives callout.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/1.x/performance.md Revises relay.max_endpoint_dbs guidance and related performance notes to match the newer concurrency model.
docs/1.x/configuration.md Updates default values and tuning guidance to align with the updated performance recommendations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/1.x/performance.md Outdated
Comment on lines +13 to +17
This directive determines the maximum number of PHP workers that will have their own in-memory cache. Not all workers need their own cache — workers without one become read-only workers that read from the shared memory pool. Giving too many workers an in-memory cache can negatively impact performance.

The default of `32` should be tuned to the number of CPU cores or maximum workers, whichever is lower:
The default is `1`, meaning all workers share a single in-memory cache per endpoint. This is the right setting for the vast majority of deployments and generally does not need to be changed.

```
max_endpoint_dbs = min(vCPUs, pm.max_children)
```
Earlier versions defaulted to `32` and recommended tuning this to roughly `min(vCPUs, pm.max_children)`, because a cache could only be written to by a single worker. That is no longer the case: multiple workers can now write to the same cache concurrently, so additional caches mostly duplicate the same data and consume more of `relay.maxmemory` without improving throughput. Use [`relay.max_db_writers`](#relaymax_db_writers) to control write concurrency instead.
Copilot AI review requested due to automatic review settings July 29, 2026 17:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 29, 2026 17:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 29, 2026 17:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants