Add PerturbSource for use with RoundRobinRequestPile
commit9dbfce6d26d975d8c48403b2331510aa69c98b43
authorRoddy MacFarquhar <roddym@fb.com>
Sun, 18 Sep 2022 21:09:20 +0000 (18 14:09 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sun, 18 Sep 2022 21:09:20 +0000 (18 14:09 -0700)
tree7f6e6fd4b52ed21f56261f96bc8330944dee7d77
parent7ff810291e8e974bc547bd315af72e798e77a93c
Add PerturbSource for use with RoundRobinRequestPile

Summary: SFQThreadManager has a built in version of this. We don't include it in the RoundRobinRequestPile because we allow the user to customize the code that maps requests to buckets. This provides the same feature - a value that is updated periodically that can be hash combined with tenantId (or whatever) before being used to find a bucket

Reviewed By: ycking21

Differential Revision: D38986654

fbshipit-source-id: 4ac884fdbaf2ca54dc39abe0664b88bc51a898a9
third-party/thrift/src/thrift/lib/cpp2/server/PerturbSource.h [new file with mode: 0644]
third-party/thrift/src/thrift/lib/cpp2/server/test/PerturbSourceTest.cpp [new file with mode: 0644]