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

Authentication Load Balancing Sticky Session Not Functioning as Expected with Deterministic Routing #3952

Open
sudeep0210 opened this issue Jan 17, 2025 · 0 comments
Labels
bug Verified defect in functionality new New issue that has not been worked on yet

Comments

@sudeep0210
Copy link

Describe the bug

The authentication load balancing sticky session functionality does not work as expected. Even though the load balancing configuration for Deterministic Routing is set with customMetadata.apiml.lb.type set to authentication, requests are still routed in a round-robin fashion. This behavior contradicts the documentation provided at section customMetadata.apiml.lb.type -> authentication in zowe doc custom-metadata

Steps to Reproduce

  1. Register multiple services (at least two) to the APIML with the same serviceID and set the load balancing type to authentication.
  2. Send requests through the APIML using the apimlAuthenticationToken, and observe the server to which the requests are routed.
  3. Send another request using the same apimlAuthenticationToken. Notice that the request is routed to a different server instead of the same one.

Expected behavior

After the first request, the session should stick to a specific server, and all subsequent requests from the same user should be consistently routed to that server.

Screenshots

  1. Screenshot of the Eureka service showing that three services are registered with the same serviceID, i.e., BCMSYMDUMPCA31X.
    Image
  2. Screenshot of the API Catalog.
    Image
  3. Screenshots from the gateway service endpoints, showing that the load balancing type is set to authentication
    Link: https://host:port/gateway/api/v1/services
  • Service A
    Image

  • Service B
    Image

  • Service C
    Image

Version details

{
  "zowe": {
    "version": "3.0.0",
    "buildNumber": "6219",
    "commitHash": "c39ba1eb36ba7b8f3ad334a72f2e4359a5798931"
  },
  "apiml": {
    "version": "3.0.36",
    "buildNumber": "33",
    "commitHash": "Unknown"
  }
}

Willingness to help
Yes, I am willing to assist with debugging and reproducing issue.

@sudeep0210 sudeep0210 added bug Verified defect in functionality new New issue that has not been worked on yet labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified defect in functionality new New issue that has not been worked on yet
Projects
Development

No branches or pull requests

1 participant