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-83040: Support Rolling Update #200

Closed
wants to merge 3 commits into from

Conversation

rudraneel-chakraborty
Copy link
Contributor

What is the purpose of this change?

...

How was this change implemented?

...

How was this change tested?

...

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

...

@rudraneel-chakraborty rudraneel-chakraborty changed the title Datago 83040 poc cema update DATAGO-83040: Support Rolling Update Aug 27, 2024

String hostNameHash = DigestUtils.sha256Hex(hostName);
String agentId = eventPortalProperties.getRuntimeAgentId();
return String.format("%s-%s", agentId, hostNameHash);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hash because
image

Comment on lines +70 to +71
String clientName = StringUtils.isEmpty(computedClientName) ?
"runtimeAgent-" + eventPortalProperties.getRuntimeAgentId() : computedClientName;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Falls back on the ep core generated client name if EMA is having trouble determining its own client name based on host name.
In other words, we are following precedence here

  • EMA tries to generate its own client name
  • If it cannot, then it uses the one generated by ep core

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.

1 participant