Alexey Serbin has uploaded this change for review. (
http://gerrit.cloudera.org:8080/15161
Change subject: [clock] auto-selection of time source
......................................................................
[clock] auto-selection of time source
This patch introduces a new time source named 'auto'. When
--time_source flag is set to 'auto', the system's behaves is the
following:
* If the host is of known cloud instance type that provides
a dedicated NTP server, the time source is set to 'builtin'.
* If the host is of known cloud instance type that doesn't provide
a dedicated NTP server or the host is not recognized as a cloud
instance, the time source is set to 'system'
(if 'system' time source is supported, otherwise set to
'system_unsync').
In former case, if the --builtin_ntp_client_enable_auto_config_in_cloud
flag is set to 'true', the built-in NTP client is configured to use
the dedicated NTP server provided by the cloud platform.
Change-Id: If9f2bc94f4a1ad32fe365d4f6f0707913fb476a4
---
M src/kudu/clock/hybrid_clock-test.cc
M src/kudu/clock/hybrid_clock.cc
M src/kudu/util/cloud/instance_metadata.cc
M src/kudu/util/cloud/instance_metadata.h
4 files changed, 63 insertions(+), 8 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/61/15161/1
--
To view, visit http://gerrit.cloudera.org:8080/15161
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If9f2bc94f4a1ad32fe365d4f6f0707913fb476a4
Gerrit-Change-Number: 15161
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>