Skip to content
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

Introduce local hdd disks #2291

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

komarevtsev-d
Copy link
Collaborator

No description provided.

@komarevtsev-d komarevtsev-d added the large-tests Launch large tests for PR label Oct 16, 2024
@@ -348,7 +348,10 @@ void TServiceActor::RenderVolumeList(IOutputStream& out) const
}
TABLED() {
if (volume.GetLocalMountClientInfo() &&
volume.StorageMediaKind != NProto::STORAGE_MEDIA_SSD_LOCAL)
volume.StorageMediaKind !=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

может какую-нить утилитную функцию сделать  IsLocalMediaKind(...) ?

@@ -178,6 +178,7 @@ class TRequestStats final
TRequestCounters TotalSSDMirror3;
TRequestCounters TotalSSDLocal;
TRequestCounters TotalHDDNonrepl;
TRequestCounters TotalHDDLocal;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я бы это по-ближе к TotalSSDLocal поместил


ui64 hddCount = RunCounters[NCloud::NProto::STORAGE_MEDIA_DEFAULT] +
RunCounters[NCloud::NProto::STORAGE_MEDIA_HYBRID] +
RunCounters[NCloud::NProto::STORAGE_MEDIA_HDD];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

сюда не надо добавить?

if (!NProto::EStorageMediaKind_IsValid(volume.GetStorageMediaKind())) {
auto response =
std::make_unique<TEvDiskRegistry::TEvCreateDiskFromDevicesResponse>(
std::move(MakeError(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::move не нужен

@@ -96,6 +96,9 @@ void TStatsServiceActor::UpdateVolumeSelfCounters(const TActorContext& ctx)
&State.GetSsdMirror3Counters(),
&State.GetSsdSystemCounters(),
&State.GetHddSystemCounters(),
&State.GetHddSystemCounters(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&State.GetHddSystemCounters(), два раза

Copy link
Contributor

Note

This is an automated comment that will be appended during run.

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit b1f6e1e.

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
6048 6043 0 5 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large-tests Launch large tests for PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants