Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2779

RATE_LIMITER2

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 5.3.5
    • None
    • None
    • False
    • None
    • False
    • 0
    • 0% 0%

      RATE_LIMITER is flawed because - if no credits are available - everybody sleeps until the end of the period and then they all send their data, possibly violating the rule that not more than max_bytes can be sent in the given period.

      RATE_LIMITER works differently:

      • There are max_bytes available
      • A replenisher thread replenishes max_bytes every interval millis
      • Senders decrement max_bytes by the number of bytes in the message and send until max_bytes is 0, then they block
      • When the replenisher kicks in, senders are unblocked
      • This ensures more or less that no more than max_bytes are sent in any given interval

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: