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

merge to 23-3: add MaxAIOContextEvents parameter to DiskAgent config (#2107) #2111

Merged
merged 1 commit into from
Sep 23, 2024
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
3 changes: 3 additions & 0 deletions cloud/blockstore/config/disk.proto
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ message TDiskAgentConfig
// NodeBroker. Enabling this option completely disables them if there were
// no devices found.
optional bool DisableNodeBrokerRegisterationOnDevicelessAgent = 32;

// Max. count of concurrently processing operations (io_setup).
optional uint32 MaxAIOContextEvents = 33;
}

////////////////////////////////////////////////////////////////////////////////
Expand Down
3 changes: 2 additions & 1 deletion cloud/blockstore/libs/disk_agent/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ bool TBootstrap::InitKikimrService()
}

case NProto::DISK_AGENT_BACKEND_AIO:
FileIOService = CreateAIOService();
FileIOService =
CreateAIOService(config.GetMaxAIOContextEvents());
NvmeManager = CreateNvmeManager(config.GetSecureEraseTimeout());

AioStorageProvider = CreateAioStorageProvider(
Expand Down
1 change: 1 addition & 0 deletions cloud/blockstore/libs/storage/disk_agent/model/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace {
xxx(IOParserActorCount, ui32, 0 )\
xxx(OffloadAllIORequestsParsingEnabled, bool, false )\
xxx(DisableNodeBrokerRegisterationOnDevicelessAgent, bool, false )\
xxx(MaxAIOContextEvents, ui32, 1024 )\
// BLOCKSTORE_AGENT_CONFIG

#define BLOCKSTORE_DECLARE_CONFIG(name, type, value) \
Expand Down
1 change: 1 addition & 0 deletions cloud/blockstore/libs/storage/disk_agent/model/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class TDiskAgentConfig
ui32 GetIOParserActorCount() const;
bool GetOffloadAllIORequestsParsingEnabled() const;
bool GetDisableNodeBrokerRegisterationOnDevicelessAgent() const;
ui32 GetMaxAIOContextEvents() const;

void Dump(IOutputStream& out) const;
void DumpHtml(IOutputStream& out) const;
Expand Down
Loading