Skip to content

[FEATURE] Add a global setting for enabling and disabling SPDK feature #5778

Closed
@derekbit

Description

Is your feature request related to a problem? Please describe (👍 if you like this request)

Enabling the SPDK feature in Longhorn requires additional CPU and memory resources, making it unsuitable for all environments. To address this, Longhorn provides a global setting that enables or disables the SPDK feature, which is disabled by default.

When the feature is enabled, Longhorn attempts to prevent updates to this setting while there are volumes attached. When the setting is applied, Longhorn restarts all instance-manager pods to ensure that the SPDK feature is properly enabled or disabled.

  • Add a global setting spdk for enabling/disabling SPDK feature
  • Add a global setting spdk-hugepage-limit for configuring hugepage size used by SPDK
  • Validate node conditions such as hugepage and kernel driver before creating the instance-manager supporting spdk

cc @shuo-wu @innobead

Describe the solution you'd like

A clear and concise description of what you want to happen

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Metadata

Labels

area/settingGlobal setting or volume settingarea/v2-data-enginev2 data engine (SPDK)component/longhorn-managerLonghorn manager (control plane)kind/featureFeature request, new featurepriority/0Must be implement or fixed in this release (managed by PO)

Type

No type

Projects

  • Status

    Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions