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

Cleanup disk quota options #528

Closed
wants to merge 1 commit into from

Conversation

koct9i
Copy link
Collaborator

@koct9i koct9i commented Apr 12, 2024

Add slot location option for enabling disk quota for sandbox directories.
It is implemented as user disk quota or as porto (project) quota volume.

Root volume quota works independently but enforces the same limits.
It is implemented only for porto volume.

Copy link

robot-magpie bot commented Apr 13, 2024

@Kontakter has imported your pull request. If you are a Yandex employee, you can view this diff.

Copy link
Collaborator

@Kontakter Kontakter left a comment

Choose a reason for hiding this comment

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

There are compilation errors:

$(SOURCE_ROOT)/yt/yt/server/node/exec_node/job.cpp:2729:38: error: use of undeclared identifier 'Config_'
    options.EnableSandboxDiskQuota = Config_->SlotManager->EnableDiskQuota;
...
$(SOURCE_ROOT)/yt/yt/server/node/data_node/unittests/volume_manager_ut.cpp:352:10: error: field designator 'HasRootFSQuota' does not refer to any field in type 'TUserSandboxOptions'
        .HasRootFSQuota = true,
         ^
$(SOURCE_ROOT)/yt/yt/server/node/data_node/unittests/volume_manager_ut.cpp:353:10: error: field designator 'EnableDiskQuota' does not refer to any field in type 'TUserSandboxOptions'
        .EnableDiskQuota = false

@koct9i koct9i force-pushed the cleanup-disk-quota-options branch 2 times, most recently from 4de2ca6 to fff1429 Compare April 15, 2024 12:21
@koct9i koct9i force-pushed the cleanup-disk-quota-options branch from fff1429 to 8e719e8 Compare April 15, 2024 14:56
yt/yt/server/lib/exec_node/config.cpp Outdated Show resolved Hide resolved
Copy link

robot-magpie bot commented May 21, 2024

@Kontakter has imported your pull request. If you are a Yandex employee, you can view this diff.

Copy link
Collaborator

@Kontakter Kontakter left a comment

Choose a reason for hiding this comment

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

There are still some build errors:

yt/yt/server/node/data_node/unittests/volume_manager_ut.cpp:352:10: error: field designator 'HasRootFSQuota' does not refer to any field in type 'TUserSandboxOptions'
        .HasRootFSQuota = true,
         ^
yt/yt/server/node/data_node/unittests/volume_manager_ut.cpp:353:10: error: field designator 'EnableDiskQuota' does not refer to any field in type 'TUserSandboxOptions'
        .EnableDiskQuota = false
         ^
2 errors generated.

Add slot location option for enabling disk quota for sandbox directories.
It is implemented as user disk quota or as porto (project) quota volume.

Root volume quota works independently but enforces the same limits.
It is implemented only for porto volume.
@koct9i
Copy link
Collaborator Author

koct9i commented May 22, 2024

volume_manager_ut.cpp

This file not in OS
579a2c2

@koct9i koct9i force-pushed the cleanup-disk-quota-options branch from 8e719e8 to 9fc1f9f Compare May 22, 2024 10:48
Copy link

robot-magpie bot commented May 22, 2024

@Kontakter has imported your pull request. If you are a Yandex employee, you can view this diff.

Copy link

robot-magpie bot commented May 22, 2024

✅ This pull request is being closed because it has been successfully merged.

@robot-magpie robot-magpie bot closed this May 22, 2024
robot-piglet pushed a commit that referenced this pull request May 22, 2024
Add separate option for enabling disk quota for (slot) sandbox directory.
It is implemented as user quota or as porto (project) quota volume.

Root volume quota works independently but enforces the same limits.
It is implemented only for porto volume.

---
ec6078e4ebf548666ea038b666a07e58ca36d2a4

Pull Request resolved: #528
@koct9i koct9i deleted the cleanup-disk-quota-options branch May 24, 2024 09:31
robot-piglet pushed a commit that referenced this pull request May 25, 2024
Add separate option for enabling disk quota for (slot) sandbox directory.
It is implemented as user quota or as porto (project) quota volume.

Root volume quota works independently but enforces the same limits.
It is implemented only for porto volume.

---
2ed74abcbc5912ed092f6ce6e5ecdc7ca0f4d791

Pull Request resolved: #528
robot-piglet pushed a commit that referenced this pull request May 25, 2024
Add separate option for enabling disk quota for (slot) sandbox directory.
It is implemented as user quota or as porto (project) quota volume.

Root volume quota works independently but enforces the same limits.
It is implemented only for porto volume.

---
46ed6938b6ac2e446938d84ef8b8158b39b2c8d2

Pull Request resolved: #528
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants