-
Notifications
You must be signed in to change notification settings - Fork 195
Add coordinator hostname config #2131
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
Conversation
Tracking
Standard development
CI Testing Labels
Documentation checklist
|
db3bf8b to
3eba337
Compare
3eba337 to
4ec228c
Compare
|
@kgolubic all should be written |
8088381 to
d6ae840
Compare
antoniofilipovic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, I have only one comment
d6ae840 to
dd15da7
Compare
antoniofilipovic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
|
I'll use this for RN:
|
8be9d6c to
a9b540f
Compare
a9b540f to
2f084b7
Compare
2f084b7 to
818a30b
Compare
|
Configuration flag `--coordinator-hostname` is added which is used to fix the issue of having 0.0.0.0 in the output of `show instances` on the 1st leader. The flag has its environment variable equivalent in `MEMGRAPH_COORDINATOR_HOSTNAME`. The flag is used solely for the output of `show instances`, from the functional standpoint all stayed the same. High availability e2e tests are changed to use DNS (localhost instead of explicit 127.0.0.1) for consistency reasons. This change is breaking because now all coordinator instances need to provide a configuration option coordinator hostname. The following output can be expected when setting `--coordinator-hostname=localhost` (no data instances): memgraph> show instances; +--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+ | name | bolt_server | coordinator_server | management_server | health | role | last_succ_resp_ms | +--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+ | "coordinator_1" | "localhost:7690" | "localhost:10111" | "" | "up" | "leader" | 0 | | "coordinator_2" | "localhost:7691" | "localhost:10112" | "" | "up" | "follower" | 45 | | "coordinator_3" | "localhost:7692" | "localhost:10113" | "" | "up" | "follower" | 57 | +--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+ 3 rows in set (0.001 sec) memgraph>



Configuration flag
--coordinator-hostnameis added which is used to fix the issue of having 0.0.0.0 in the output ofshow instanceson the 1st leader. The flag has its environment variable equivalent inMEMGRAPH_COORDINATOR_HOSTNAME. The flag is used solely for the output ofshow instances, from the functional standpoint all stayed the same. High availability e2e tests are changed to use DNS (localhost instead of explicit 127.0.0.1) for consistency reasons. This change is breaking because now all coordinator instances need to provide a configuration option coordinator hostname.The following output can be expected when setting
--coordinator-hostname=localhost(no data instances):memgraph> show instances;
+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+
| name | bolt_server | coordinator_server | management_server | health | role | last_succ_resp_ms |
+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+
| "coordinator_1" | "localhost:7690" | "localhost:10111" | "" | "up" | "leader" | 0 |
| "coordinator_2" | "localhost:7691" | "localhost:10112" | "" | "up" | "follower" | 45 |
| "coordinator_3" | "localhost:7692" | "localhost:10113" | "" | "up" | "follower" | 57 |
+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+--------------------+
3 rows in set (0.001 sec)
memgraph>