Skip to content

Commit

Permalink
NBS-4827 Split actor
Browse files Browse the repository at this point in the history
  • Loading branch information
drbasic committed Mar 1, 2024
1 parent 41f9892 commit be9d35d
Show file tree
Hide file tree
Showing 10 changed files with 583 additions and 399 deletions.
1 change: 1 addition & 0 deletions cloud/blockstore/libs/storage/api/volume.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ struct TEvVolume
TPartitionDiskCountersPtr DiskCounters;
ui64 NetworkBytes = 0;
TDuration CpuUsage;
TString DiskId;

TDiskRegistryBasedPartitionCounters(
TPartitionDiskCountersPtr diskCounters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void TMirrorPartitionResyncActor::SendStats(const TActorContext& ctx)

request->NetworkBytes = NetworkBytes;
request->CpuUsage = CpuUsage;
request->DiskId = PartConfig->GetName();

NCloud::Send(ctx, StatActorId, std::move(request));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void TNonreplicatedPartitionActor::SendStats(const TActorContext& ctx)

request->NetworkBytes = NetworkBytes;
request->CpuUsage = CpuUsage;
request->DiskId = PartConfig->GetName();
NetworkBytes = 0;
CpuUsage = {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void TNonreplicatedPartitionRdmaActor::SendStats(const TActorContext& ctx)

request->NetworkBytes = NetworkBytes;
request->CpuUsage = CpuUsage;
request->DiskId = PartConfig->GetName();
NetworkBytes = 0;
CpuUsage = {};

Expand Down
Loading

0 comments on commit be9d35d

Please sign in to comment.