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

DATAGO-85215: EMA generates its own client name based on hostname and runtime agent id #204

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

rudraneel-chakraborty
Copy link
Contributor

What is the purpose of this change?

To support rolling update, we want each EMA instance to have its own unique clientName. Currently, the clientName is determined by only looking at the runtimeAgentId however, this becomes a problem for CEMA update scenario as, for a brief period, we can have more than 1 instance of CEMA with the same id online at the same time. Not to mention, this is also a problem if we decide to use multiple instances (replicaCount >1).

This PR introduces changes so that CEMA generates its own unique client name based on the hash of the host name and appending the runtime agent id. Format is :

{runtimeAgentId}-{hash(hostname)}.

We are taking the hash to ensure that we are not going over the limit
image

How was this change implemented?

Java

How was this change tested?

IT

Is there anything the reviewers should focus on/be aware of?

...

Copy link
Collaborator

@moodiRealist moodiRealist left a comment

Choose a reason for hiding this comment

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

Let's not merge this until we have an ep-core PR we can test both of them together in a dev cluster (or ep-perf)

Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 0.0% 0.0% Coverage on New Code (is less than 80%)

See analysis details on SonarQube

@rudraneel-chakraborty rudraneel-chakraborty merged commit 7c0b3fa into main Sep 24, 2024
5 of 6 checks passed
@rudraneel-chakraborty rudraneel-chakraborty deleted the DATAGO-85215-support-rolling-update branch September 24, 2024 20:24
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