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

Fixed issues when onboarding HA setup, and issues with Health Check script #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mdrakiburrahman
Copy link

I ran into the following issues when setting up 2 containers in HA mode - this PR contains fixes for all 3 issues.

Issue

health-check.ps1 logic is faulty, when setup.ps1 is accessing status-check.txt, the container shuts down

Resolution

Added new function Run-Process that uses a temporary file based on the process ID to grab the output within the function and performs cleanup. This avoids the above issue with file conflicts with setup.ps1 that was causing the issue.

Issue

Passing in HA_PORT doesn't work, as $PORT isn't being passed in correctly in code

Resolution

Changed to $PORT = if (!$HA_PORT) { "8060" } else { $HA_PORT }

Issue

Adding second container doesn't work for HA due to order of operations and incorrect remote access command

Resolution

  1. Changed from -EnableRemoteAccess to -EnableRemoteAccessInContainer
  2. Switched order of execution - -EnableRemoteAccessInContainer then -RegisterNewNode

I've tested running 2 containers in HA mode, it's now working with the Health Check enabled:
image

@jikuja
Copy link

jikuja commented Apr 23, 2023

I think those changes were added in 7eb5657

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