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

update neo4j health check to consider database backup #2003

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

gnmahanth
Copy link
Contributor

Fixes #

Changes proposed in this pull request:

Comment on lines +17 to +24
if [ "$NEO4J_OFFLINE_MAINTENANCE_MODE_ENABLED" = true ]; then
while true;
do
echo 'Neo4j is not running. Remove NEO4J_OFFLINE_MAINTENANCE_MODE_ENABLED env var or set offlineMaintenanceModeEnabled to false to resume normal operation.';
sleep 60;
done
fi

Copy link
Collaborator

@noboruma noboruma Mar 5, 2024

Choose a reason for hiding this comment

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

I am not following - this is an infinite loop, right?
When do we need to do that? df.sh only runs 1 and should never stop

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be enabled when we want to some maintenance operations on neo4j itself, when set the database will not start also in this mode the kubernetes health check is disabled allowing us to operate on db when process is not running

similar kind of flag exists in standard neo4j helm chart

@gnmahanth gnmahanth merged commit 618d15c into main Mar 5, 2024
2 of 4 checks passed
@gnmahanth gnmahanth deleted the neo4j-health-checks branch March 5, 2024 15:00
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.

3 participants