Changes between Initial Version and Version 1 of Ticket #1603, comment 6


Ignore:
Timestamp:
08/06/18 02:20:26 (6 years ago)
Author:
huifeidexingyuner@…

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1603, comment 6

    initial v1  
    11Leaky_bucket aside, this algorithm is classic。
    22I have my doubts about your two downsides:
    3 (1)2000 requests per millisecond, which also mutexes the count, so that if only 1,000 requests are allowed per second, the next 1,000 will be rejected。Is that wrong?
     3(1)2000 requests per millisecond, which also mutexes the count(ngx_shmtx_lock), so that if only 1,000 requests are allowed per second, the next 1,000 will be rejected。Is that wrong?