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

Write config to temp file then move #382

Merged
merged 4 commits into from
Jun 19, 2023
Merged

Conversation

kjnilsson
Copy link
Contributor

@kjnilsson kjnilsson commented Jun 13, 2023

Instead of overwriting in place. This should be safer and reduce chances of config file corruptions that could cause members to become unable to restart.

Fixes: #381

Also includes an optimisation that avoids spawning a process during init if all nodes are connected.

And it includes some log formatting unicode compatibility fixes.

Instead of overwriting in place. This should be safer and reduce
changes of config file corruptions that could cause members to
become unable to restart.
Also each call to net_kernel:connect_node/1 is a request which is just
unnecessary work especially with many Ra clusters.
@kjnilsson kjnilsson merged commit cb93f64 into main Jun 19, 2023
7 checks passed
@michaelklishin michaelklishin deleted the dont-write-config-in-place branch June 20, 2023 14:06
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.

Do not overwrite the config file in place
1 participant