-
Notifications
You must be signed in to change notification settings - Fork 312
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
feat(FQDN): Support to communicate with servers and clients by host_port #1658
Conversation
faec076
to
2e6e527
Compare
25c9fdd
to
a1fd9e0
Compare
5acccd7
to
47adb77
Compare
Some changes can be separated to another patch, for example, the changes in:
|
6ff7b18
to
b3368ad
Compare
612b1aa
to
9a0e467
Compare
cdde494
to
718a6a0
Compare
936a7ab
to
cb5f3b9
Compare
6fc12e5
to
e2a6fa2
Compare
61335d2
to
5e7af7b
Compare
9df655a
to
818b1d0
Compare
…port on thrift struct
818b1d0
to
bfd1161
Compare
bfd1161
to
2bcdaf5
Compare
@@ -75,8 +75,8 @@ rpc_timeout_milliseconds = 5000 | |||
lb_interval_ms = 3000 | |||
|
|||
[pegasus.clusters] | |||
onebox = 127.0.0.1:34601,127.0.0.1:34602,127.0.0.1:34603 | |||
single_master_cluster = 127.0.0.1:34601 | |||
onebox = @LOCAL_HOSTNAME@:34601,@LOCAL_HOSTNAME@:34602,@LOCAL_HOSTNAME@:34603 |
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.
TODO: check ip is acceptable as well
result.reserve(ports.size()); | ||
for (const auto &port : ports) { | ||
result.emplace_back(dsn::rpc_address(global_env::instance()._host_ip, port)); | ||
char hostname[1024]; | ||
gethostname(hostname, 1024); |
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.
TODO: change _host_ip and use it
@@ -89,6 +89,7 @@ void test_util::SetUp() | |||
ddl_client_ = std::make_shared<replication_ddl_client>(meta_list_); | |||
ASSERT_TRUE(ddl_client_ != nullptr); | |||
ddl_client_->set_max_wait_app_ready_secs(120); | |||
ddl_client_->set_meta_servers_leader(); |
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.
TODO: is it necessary?
issue: #1659
TODO:
NOTE:
It's not able to upgrade Pegasus cluster and clients smoothly to the new version with FQDN enabled, it's needed to follow the steps if you want to enable the FQDN feature:
NOTE: Do not support rolling restart servers in the cluster with FQDN related configs changed