Skip to content

MLE-28300: Dynamic Host Feature Changes Commit - #278

Open
sumanthravipati wants to merge 5 commits into
12.0-developfrom
MLE-28300-Dynamic-Host-Feature
Open

sumanthravipati wants to merge 5 commits into
12.0-developfrom
MLE-28300-Dynamic-Host-Feature

Conversation

@sumanthravipati

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved critical issues can deregister healthy hosts belonging to other deployments or after duplicate launch notifications, and expose cluster-join credentials in logs.

7 open issues
What changed in this PR

Adds a standalone CloudFormation stack for dynamic MarkLogic hosts, integrated with existing cluster deployments through exported resources.

Changes:

  • Adds dynamic-node provisioning, group management, and token-based cluster joining through Auto Scaling lifecycle hooks and Lambda functions.
  • Adds multi-zone load-balancer listeners and target groups for ports 9000–9008.
  • Exports parent-cluster networking and instance settings and permits load-balancer traffic to dynamic-node ports.
File Description
templates/​ml-dynamichosts.template Defines dynamic-host infrastructure, lifecycle automation, and cleanup.
mlcluster.template Exports resources for the dynamic-host stack and adds port ingress rules.
mlcluster-vpc.template Adds equivalent exports and ingress rules for clusters with a managed VPC.

Review effort: Balanced

Comment thread templates/ml-dynamichosts.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved critical issues expose administrator credentials in EC2 user data, allow concurrent launch handlers to remove joined hosts and abandon launches, and cause architecture mismatches for Graviton dynamic nodes.

3 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Termination sweep skips hosts after the instance is released

templates/​ml-dynamichosts.template:691

The sweep starts after CONTINUE releases the terminating instance, so EC2 can already report it as shutting-down or terminated. Those states are excluded from live, causing the self-hostname guard at lines 889–891 to skip cleanup and leave stale hosts behind. Run a bounded sweep before completing termination, or validate the lookup without requiring the released instance to remain running.

Medium severity Token targets the first host even when it is unavailable

templates/​ml-dynamichosts.template:1047

This always selects the alphabetically first configured host, even when that host or its availability zone is unavailable. Tokens then direct new nodes to the unreachable host, and retries select it again, preventing joins despite healthy cluster hosts elsewhere. Select a reachable Default-group Admin endpoint before issuing the token.

7 resolved since last review

Review effort: Balanced

Comment thread mlcluster.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Concurrent SNS deliveries can process the same launch, allowing a failed invocation to abandon and deregister a successfully initialized host because processing is not serialized by an atomic lifecycle-token claim.

2 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Clean up stale hosts before releasing the termination lifecycle action

templates/​ml-dynamichosts.template:691

This sweep runs after CONTINUE has released the instance for termination, but remove_stale_dynamic_hosts only includes pending/running/stopping/stopped instances and returns immediately when this instance is absent. If EC2 has already advanced it to shutting-down, the sweep skips all stale-host cleanup even though the lookup is correct. Run the sweep before completing the termination lifecycle action, while the hook still holds the instance.

Medium severity Choose a reachable Admin host when generating the join token

templates/​ml-dynamichosts.template:1045

Always selecting the lexicographically first configured hostname directs every join token to that host even when it is down, so launches can fail during an instance or availability-zone outage despite healthy surviving static hosts. Dynamic nodes contact the host embedded in the token, not the load balancer. Select a reachable Default-group Admin endpoint before generating the token.

2 resolved since last review

Review effort: Balanced

Comment thread templates/ml-dynamichosts.template Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Human assessment is needed because the new dynamic-host data volume may remain unencrypted even when the parent cluster’s data volumes are encrypted.

1 open issue
1 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Token issuance fails for Basic-authenticated parent clusters, and dynamic-node data volumes omit the parent’s encryption and optional KMS settings, potentially leaving required storage unencrypted.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread templates/ml-dynamichosts.template Resolved
Comment thread templates/ml-dynamichosts.template Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The AWS/MarkLogic lifecycle orchestration requires deployed integration validation of launch, group rename/rollback, and termination ordering beyond what the available static evidence can establish.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

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