Skip to content

Commit

Permalink
add MaxAIOContextEvents parameter to DiskAgent config (#2107) (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpeye authored Sep 23, 2024
1 parent b7ecfb4 commit 8a896fd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
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

0 comments on commit 8a896fd

Please sign in to comment.