Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat: add rate limiter for backup request #855

Merged
merged 13 commits into from
Jul 14, 2021

Conversation

levy5307
Copy link
Contributor

@levy5307 levy5307 commented Jul 9, 2021

Add rate limiter for backup request. Related issue: apache/incubator-pegasus#778

Manual Test

  1. set_app_envs replica.backup_request_throttling 1*delay*100
  2. send read request to server with backup request
  3. log shows that the backup request is delayed: ./data/log/log.1.txt:11761:[replica*eon.replica*recent.backup.request.throttling.delay.count@temp, VOLATILE_NUMBER, 3.00]
  4. set_app_envs replica.backup_request_throttling 1*reject*100
  5. send read request to server with backup request
  6. log shows that the backup request is rejected: ./replica1/data/log/log.1.txt:9890:[replica*eon.replica*recent.backup.request.throttling.reject.count@temp, VOLATILE_NUMBER, 1.00]

All requests send by these tests can receive response successfully

@hycdong hycdong added the type/app-envs This PR updates app_envs label Jul 13, 2021
@hycdong hycdong added the type/perf-counter PR that made modification on perf-counter, which should be noted in release note. label Jul 14, 2021
@levy5307 levy5307 merged commit 1275b1b into XiaoMi:master Jul 14, 2021
@levy5307 levy5307 deleted the backup-request-limiter branch July 14, 2021 04:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/app-envs This PR updates app_envs type/perf-counter PR that made modification on perf-counter, which should be noted in release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants