Skip to content

feat(cmd): add --light-node-limit CLI and config option - #5559

Merged
martinconic merged 1 commit into
masterfrom
feat/light-node-limit
Aug 12, 2026
Merged

feat(cmd): add --light-node-limit CLI and config option#5559
martinconic merged 1 commit into
masterfrom
feat/light-node-limit

Conversation

@martinconic

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

This PR exposes the Light Node connection limit via the --light-node-limit CLI flag and light-node-limit YAML configuration parameter.

Changes for #5556, evaluating performance under increased light node connection capacity requires the ability to configure LightNodeLimit dynamically. While pkg/p2p/libp2p already supported LightNodeLimit in its Options struct, the CLI flag and node.Options wiring were missing.

Resolves #5556

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

AI Disclosure

  • This PR contains code that has been generated by an LLM.
  • I have reviewed the AI generated code thoroughly.
  • I possess the technical expertise to responsibly review the code generated in this PR.

@gacevicljubisa gacevicljubisa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do not see where is the limit is utilised?

LevilkTheReal added a commit to Solar-Punk-Ltd/bee that referenced this pull request Aug 12, 2026
Backport of ethersphere#5559 onto the v2.8.1 tag, unchanged.

v2.8.1 already carries LightNodeLimit in libp2p.Options and already honours
it, so this adds only the CLI flag and the node.Options passthrough that
were missing. The flag defaults to 100, which is defaultLightNodeLimit, so
a node started without it behaves exactly as stock v2.8.1 does.

Carried here because swarm-stream-loadlab measures the light-node
connection ceiling against ethersphere#5556, and that needs the limit
configurable on the version we actually run.
@martinconic
martinconic merged commit a93fb7a into master Aug 12, 2026
16 checks passed
@martinconic
martinconic deleted the feat/light-node-limit branch August 12, 2026 12:54
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.

Evaluate Increased Light Node Connection Limits

4 participants