v0.32.0
What's Changed
Added
providerincludes metrics on the number of keys provided so far(reprovider_provide_count) and the number of keys reprovided so far (reprovider_reprovide_count) #944bitswap/client: New metrics:ipfs_bitswap_wanthaves_broadcast: Count of want-haves broadcastsipfs_bitswap_haves_received: Count of total have responsesipfs_bitswap_bcast_skips_total{: Count of broadcasts skipped as part of spam reduction logic (see "Changed" below)ipfs_bitswap_unique_blocks_received: Count of non-duplicate blocks recieved
Changed
provider: previously, the code in this module was logging toreprovider.simple,provider.batchedandprovider.queuefacilities. They have now been consolidated in a singleproviderlogging facility, along with some adjustments to logging levels and extra debug statements.bitswap/client: Added an opt-in ability to reduce bitswap broadcast volume by limiting broadcasts to peers that have previously responded as having wanted blocks and peers on local network. The following bitswap client options are available to configure the behavior of broadcast reduction:BroadcastControlEnableenables or disables broadcast reduction logic. Setting this tofalserestores the previous broadcast behavior of sending broadcasts to all peers, and ignores all otherBroadcastControloptions. Default isfalse(disabled).BroadcastControlMaxPeerssets a hard limit on the number of peers to send broadcasts to. A value of0means no broadcasts are sent. A value of-1means there is no limit. Default is-1(unlimited).BroadcastControlLocalPeersenables or disables broadcast control for peers on the local network. Iffalse, then always broadcast to peers on the local network. Iftrue, apply broadcast control to local peers. Default isfalse(always broadcast to local peers).BroadcastControlPeeredPeersenables or disables broadcast control for peers configured for peering. Iffalse, then always broadcast to peers configured for peering. Iftrue, apply broadcast control to peered peers. Default isfalse(always broadcast to peered peers).BroadcastControlMaxRandomPeerssets the number of peers to broadcast to anyway, even though broadcast control logic has determined that they are not broadcast targets. Setting this to a non-zero value ensures at least this number of random peers receives a broadcast. This may be helpful in cases where peers that are not receiving broadcasts may have wanted blocks. Default is0(no random broadcasts).BroadcastControlSendToPendingPeersenables or disables sending broadcasts to any peers to which there is a pending message to send. Whentrue(enabled), this sends broadcasts to many more peers, but does so in a way that does not increase the number of separate broadcast messages. There is still the increased cost of the recipients having to process and respond to the broadcasts. Default isfalse.
Removed
bitswap/serverdo not allow override of peer ledger withWithPeerLedger#938
Fixed
gateway: Fixed suffix range-requests and updated tests to gateway-conformance v0.8 #922
Full Changelog: v0.31.0...v0.32.0
This release was brought to you by the Shipyard team.
