Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-651

QPS rate limit bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • java-chassis-1.0.0-m1
    • java-chassis-1.0.0
    • Java-Chassis
    • None

    Description

      When setting servicecomb.flowcontrol.Provider.qps.limit.[ServiceName], the actual number of requests allowed per second are 1 less than the limit value.  

      For example, if I set flowcontrol.Provider.qps.limit.
      business-service-consumer as 1, I'll get NO successful request at the very beginning, although I would expect 1 successful request instead of none. Similarly, if I set flowcontrol.Provider.qps.limit.
      business-service-consumer as 2, I'll get 1 successful request instead of 2. 
       
      However, if I pause before sending requests, for example add Thread.sleep(100) before invoking the first request, the number of requests allowed per second will be correct this time. (i.e. 1 successful request when limit value is 1, 2 successful requests when limit value is 2, etc.)
       

      Attachments

        1. limit value as 2.jpeg
          542 kB
          Sean Li
        2. limit value as 1.jpeg
          708 kB
          Sean Li

        Issue Links

          Activity

            People

              limbojinne Sean Li
              limbojinne Sean Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: