- ๐ฌ Discuss
- ๐ฆ Highlights
- New default Pubsub.SeenMessagesStrategy
- Improving libp2p resource management integration
- ๐ Changelog
- ๐จโ๐ฉโ๐งโ๐ฆ Contributors
๐ฆ Highlights
New default Pubsub.SeenMessagesStrategy
A new optional Pubsub.SeenMessagesStrategy
configuration option has been added.
This option allows you to choose between two different strategies for
deduplicating messages: first-seen
and last-seen
.
When unset, the default strategy is last-seen
, which calculates the
time-to-live (TTL) countdown based on the last time a message is seen. This
means that if a message is received and then seen again within the specified
TTL window based on the last time it was seen, it won't be emitted.
If you prefer the old behavior, which calculates the TTL countdown based on the
first time a message is seen, you can set Pubsub.SeenMessagesStrategy
to
first-seen
.
Improving libp2p resource management integration
This builds on the default protection nodes get against DoS (resource exhaustion) and eclipse attacks
with the go-libp2p Network Resource Manager/Accountant
that was fine-tuned in Kubo 0.18.
Adding default hard-limits from the Resource Manager/Accountant after the fact is tricky,
and some additional improvements have been made to improve the computed defaults.
As much as possible, the aim is for a user to only think about how much memory they want to bound libp2p to,
and not need to think about translating that to hard numbers for connections, streams, etc.
More updates are likely in future Kubo releases, but with this release:
System.StreamsInbound
is no longer bounded directlySystem.ConnsInbound
,Transient.Memory
,Transiet.ConnsInbound
have higher default computed values.
Changelog
Full Changelog
- github.com/ipfs/kubo:
- Add overview section
- Adjust inbound connection limits depending on memory.
- feat: Pubsub.SeenMessagesStrategy (#9543) (ipfs/kubo#9543)
- chore: update version
- github.com/libp2p/go-libp2p-pubsub (v0.8.2 -> v0.8.3):
- feat: expire messages from the cache based on last seen time (#513) (libp2p/go-libp2p-pubsub#513)
Contributors
Contributor | Commits | Lines ยฑ | Files Changed |
---|---|---|---|
Mohsin Zaidi | 2 | +511/-55 | 12 |
Antonio Navarro Perez | 2 | +57/-57 | 5 |
galargh | 1 | +1/-1 | 1 |