SWIMGossipSettings

public struct SWIMGossipSettings

Settings specific to the gossip payloads used in the SWIM gossip dissemination subsystem.

  • Create default settings.

    Declaration

    Swift

    public init()
  • Limits the number of GossipPayloads to be piggy-backed in a single message.

    Notes: The Ping/Ack messages are used to piggy-back the gossip information along those messages. In order to prevent these messages from growing too large, heuristics or a simple limit must be imposed on them/ Currently, we limit the message sizes by simply counting how many gossip payloads are allowed to be carried.

    Declaration

    Swift

    public var maxNumberOfMessagesPerGossip: Int
  • Each gossip (i.e. an observation by this specific node of a specific node’s specific status), is gossiped only a limited number of times, after which the algorithms

    See also

    SWIM 4.1. Infection-Style Dissemination Component

    See also

    SWIM 5. Performance Evaluation of a Prototype

    Declaration

    Swift

    public func gossipedEnoughTimes(_ gossip: SWIM.Gossip, members n: Int) -> Bool

    Parameters

    n

    total number of cluster members (including myself), MUST be >= 1 (or will crash)

  • Used to adjust the gossipedEnoughTimes value.

    Should not be lower than 3, since for

    See also

    SWIM 5. Performance Evaluation of a Prototype

    Declaration

    Swift

    public var gossipedEnoughTimesBaseMultiplier: Double { get set }