Skip to content

Commit 46bd332

Browse files
authored
lower time difference issues from red to orange (#2197)
1 parent 3d20df0 commit 46bd332

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ydb/core/health_check/health_check.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1305,8 +1305,8 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
13051305

13061306
void FillCompute(TDatabaseState& databaseState, Ydb::Monitoring::ComputeStatus& computeStatus, TSelfCheckContext context) {
13071307
TVector<TNodeId>* computeNodeIds = &databaseState.ComputeNodeIds;
1308-
if (databaseState.ResourcePathId
1309-
&& databaseState.ServerlessComputeResourcesMode != NKikimrSubDomains::EServerlessComputeResourcesModeExclusive)
1308+
if (databaseState.ResourcePathId
1309+
&& databaseState.ServerlessComputeResourcesMode != NKikimrSubDomains::EServerlessComputeResourcesModeExclusive)
13101310
{
13111311
auto itDatabase = FilterDomainKey.find(TSubDomainKey(databaseState.ResourcePathId.OwnerId, databaseState.ResourcePathId.LocalPathId));
13121312
if (itDatabase != FilterDomainKey.end()) {
@@ -2074,7 +2074,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
20742074
}
20752075
}
20762076

2077-
const TDuration MAX_CLOCKSKEW_RED_ISSUE_TIME = TDuration::MicroSeconds(25000);
2077+
const TDuration MAX_CLOCKSKEW_ORANGE_ISSUE_TIME = TDuration::MicroSeconds(25000);
20782078
const TDuration MAX_CLOCKSKEW_YELLOW_ISSUE_TIME = TDuration::MicroSeconds(5000);
20792079

20802080
void FillNodesSyncStatus(TOverallStateContext& context) {
@@ -2098,8 +2098,8 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
20982098
FillNodeInfo(maxClockSkewPeerId, syncContext.Location.mutable_peer());
20992099

21002100
TDuration maxClockSkewTime = TDuration::MicroSeconds(maxClockSkewUs);
2101-
if (maxClockSkewTime > MAX_CLOCKSKEW_RED_ISSUE_TIME) {
2102-
syncContext.ReportStatus(Ydb::Monitoring::StatusFlag::RED, TStringBuilder() << "The nodes have a time difference of " << maxClockSkewTime.MilliSeconds() << " ms", ETags::SyncState);
2101+
if (maxClockSkewTime > MAX_CLOCKSKEW_ORANGE_ISSUE_TIME) {
2102+
syncContext.ReportStatus(Ydb::Monitoring::StatusFlag::ORANGE, TStringBuilder() << "The nodes have a time difference of " << maxClockSkewTime.MilliSeconds() << " ms", ETags::SyncState);
21032103
} else if (maxClockSkewTime > MAX_CLOCKSKEW_YELLOW_ISSUE_TIME) {
21042104
syncContext.ReportStatus(Ydb::Monitoring::StatusFlag::YELLOW, TStringBuilder() << "The nodes have a time difference of " << maxClockSkewTime.MilliSeconds() << " ms", ETags::SyncState);
21052105
} else {

0 commit comments

Comments
 (0)