Skip to content
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

Adding Weighted Routing Capability #2779

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Adding Weighted Routing Capability #2779

wants to merge 1 commit into from

Conversation

vinupa
Copy link

@vinupa vinupa commented Feb 7, 2025

Purpose

Fixes #2769

Goals

Introducing weighted routing capability to WSO2 APK, a key capability for distributing traffic based on custom-defined weights for backend endpoints.

Approach

When multiple backendRefs are present in an applied HTTPRoute CR, if weight values are defined, then those weight values are extracted from the HTTPRoute CR and configured in the Envoy configuration under a weighted_cluster route.

@@ -29,6 +29,7 @@ type ResolvedBackend struct {
Retry *RetryConfig
BasePath string `json:"basePath"`
HealthCheck *HealthCheck
Weight int32
Copy link
Contributor

Choose a reason for hiding this comment

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

need to update this in a new version v1alpha4

@Krishanx92 Krishanx92 added the trigger-action When this includes apk actions getting trigger for pr label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trigger-action When this includes apk actions getting trigger for pr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weighted Routing Capability for APIs in WSO2 APK
3 participants