-
Notifications
You must be signed in to change notification settings - Fork 299
K8s: OSS Cluster API - Babylon release feature #2635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kaitlynmichael
wants to merge
10
commits into
main
Choose a base branch
from
DOC-6160
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+103
−10
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5c9c5d3
page structure and intro
kaitlynmichael 948080c
update RS page
kaitlynmichael d43359d
cluster-aware-clients page
kaitlynmichael 171b84b
update limitations
kaitlynmichael 2b63567
Update content/operate/kubernetes/networking/cluster-aware-clients.md
kaitlynmichael 4894577
Update content/operate/kubernetes/networking/cluster-aware-clients.md
kaitlynmichael 1016778
add vs specify clarification
kaitlynmichael dbd06cf
specify LB services are created
kaitlynmichael d3e0f32
note about LB being resource heavy
kaitlynmichael cb142e5
add limitations
kaitlynmichael File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
content/operate/kubernetes/networking/cluster-aware-clients.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| --- | ||
| Title: Enable cluster-aware clients (OSS Cluster API) | ||
| alwaysopen: false | ||
| categories: | ||
| - docs | ||
| - operate | ||
| - kubernetes | ||
| description: Improve performance with cluster-aware clients by enabling the OSS Cluster API for your Redis Enterprise for Kubernetes database. | ||
| linkTitle: Cluster-aware clients | ||
| weight: 99 | ||
| --- | ||
|
|
||
| The OSS Cluster API improves performance by allowing cluster-aware Redis clients to discover database topology and route requests directly. This feature supports cluster-aware clients running on the same Kubernetes cluster (internal) and cluster-aware clients outside the Kubernetes cluster (external). | ||
|
|
||
| {{< note >}} | ||
| Enabling external access for OSS Cluster API creates a separate LoadBalancer service for each Redis Enterprise pod in addition to the LoadBalancer service for the cluster endpoint. LoadBalancers are resources that can significantly increase operational costs; plan your infrastructure budget accordingly. | ||
| {{< /note >}} | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - RedisEnterpriseCluster (REC) running version 8.0.10-tbd or later. | ||
| - Proxy policy is set to `all-master-shards` or `all-nodes`. | ||
| - Modules used by the database (if any) are bundled modules. | ||
| - The database is not an Active-Active database. | ||
|
|
||
| ## Limitations | ||
|
|
||
| - OSS Cluster databases with external access must be created and managed using the RedisEnterpriseDatabase (REDB) custom resource. You cannot create or configure these databases using the Redis Enterprise REST API directly. | ||
|
|
||
| ## Enable OSS Cluster API | ||
|
|
||
| To enable cluster-aware clients, edit the REC and REDB custom resources with the following fields. | ||
|
|
||
| ### Edit REC (RedisEnterpriseCluster) {#edit-rec} | ||
|
|
||
| 1. Edit the RedisEnterpriseCluster (REC) custom resource to add the `ossClusterSettings` section to the `spec` section. | ||
|
|
||
| Set `externalAccessType` to `LoadBalancer` and add any `serviceAnnotations` as required by your service provider. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that in most cases you don't need any service annotations. So maybe change "as required" to "if required" or something like that? |
||
|
|
||
| ```yaml | ||
| ossClusterSettings: | ||
| externalAccessType: LoadBalancer | ||
| loadBalancer: | ||
| serviceAnnotations: | ||
| ``` | ||
|
|
||
| 2. If you are using internal clients (within the Kubernetes cluster), you can specify their IP ranges in the `podCIDRs` field to improve performance. Clients from these ranges are routed directly to the Redis Enterprise pods, without going through the load balancer. | ||
|
|
||
| The following is an example `podCIDRs` field using example values; replace with your own unique CIDRs. | ||
|
|
||
| ```yaml | ||
| podCIDRs: | ||
| - "192.0.2.0/24" | ||
| - "198.51.100.0/24" | ||
| - "203.0.113.0/24" | ||
| ``` | ||
|
|
||
| ### Edit REDB (RedisEnterpriseDatabase) {#edit-redb} | ||
|
|
||
| 3. Edit the REDB custom resource to add the following fields and values to the `spec` section. | ||
|
|
||
| Set `enableExternalAccess: true` to allow external clients to connect. This provisions a LoadBalancer service for each Redis Enterprise pod running a node, which increases infrastructure costs. | ||
|
|
||
| ```yaml | ||
| ossCluster: true | ||
|
|
||
| ossClusterSettings: | ||
| enableExternalAccess: true | ||
| ``` | ||
|
|
||
| ## Connect clients | ||
|
|
||
| Use the `kubectl get svc` command to view the services created by the OSS Cluster API. It should look similar to this example: | ||
|
|
||
| ```sh | ||
| NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | ||
| admission ClusterIP 10.0.1.10 <none> 443/TCP 3h28m | ||
| oss-cluster ClusterIP 10.0.1.20 <none> 11712/TCP 3h6m | ||
| oss-cluster-headless ClusterIP None <none> 11712/TCP 3h6m | ||
| oss-cluster-load-balancer LoadBalancer 10.0.1.30 203.0.113.10 11712:30245/TCP 3h6m | ||
| rec ClusterIP 10.0.1.40 <none> 9443/TCP,8001/TCP 3h27m | ||
| rec-cluster LoadBalancer 10.0.1.50 203.0.113.20 11712:32559/TCP 3h6m | ||
| rec-1-lb LoadBalancer 10.0.1.60 203.0.113.30 11712:31976/TCP 3h6m | ||
| rec-2-lb LoadBalancer 10.0.1.70 203.0.113.40 11712:31972/TCP 3h6m | ||
| rec-oss ClusterIP None <none> 8070/TCP 3h27m | ||
| rec-ui ClusterIP 10.0.1.80 <none> 8443/TCP 3h27m | ||
| ``` | ||
|
|
||
| To connect an external client (outside the Kubernetes cluster), use the `EXTERNAL-IP` address for the `oss-cluster-load-balancer` service. | ||
|
|
||
| To connect an internal client (listed in the `podCIDRs` field), use the `CLUSTER-IP` address for the `oss-cluster` service. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's actually so heartwarming - instead of limitations, we are explaining the new capabilities.