Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ydb/core/cms/api_adapters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class TListClusterNodes: public TAdapterActor<
out.set_host(in.Host);
out.set_port(in.IcPort);
out.set_state(ConvertNodeState(in.State));
*out.mutable_start_time() = TimeUtil::MicrosecondsToTimestamp(in.StartTime.GetValue());

auto& location = *out.mutable_location();
location.set_data_center(in.Location.GetDataCenterId());
Expand Down
1 change: 1 addition & 0 deletions ydb/core/cms/cms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,7 @@ void TCms::AddHostState(const TClusterInfoPtr &clusterInfo, const TNodeInfo &nod
host->SetNodeId(node.NodeId);
host->SetInterconnectPort(node.IcPort);
host->SetTimestamp(timestamp.GetValue());
host->SetStartTimeSeconds(node.StartTime.Seconds());
node.Location.Serialize(host->MutableLocation(), false);
for (auto marker : node.Markers) {
host->AddMarkers(marker);
Expand Down
1 change: 1 addition & 0 deletions ydb/core/protos/cms.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ message THostState {
optional uint32 InterconnectPort = 7;
repeated EMarker Markers = 8;
optional NActorsInterconnect.TNodeLocation Location = 9;
optional uint32 StartTimeSeconds = 10;
}

message TClusterState {
Expand Down
2 changes: 2 additions & 0 deletions ydb/public/api/protos/draft/ydb_maintenance.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ message Node {
StorageNode storage = 6;
DynamicNode dynamic = 7;
}
// start_time defines time when node was registered in cms.
google.protobuf.Timestamp start_time = 8;
}

message ListClusterNodesRequest {
Expand Down