28 size_t separator =
addr.find_first_of(
'/');
29 if (separator == string::npos) {
32 unsigned prefixLen = folly::to<unsigned>(
addr.substr(separator + 1));
33 addr.erase(separator);
44 if (network.contains(address)) {
54 CHECK_GE(
period_.count(), std::chrono::milliseconds(0).count());
void checkIsSane(const SysParams &sysParams) const
bool loadSheddingEnabled_
std::chrono::milliseconds period_
bool isWhitelisted(const folly::SocketAddress &addr) const
uint64_t numLogicalCpuCores
uint64_t cpuUsageExceedWindowSize_
AddressSet whitelistAddrs_
void addWhitelistAddr(folly::StringPiece)
ThreadPoolListHook * addr
NetworkSet whitelistNetworks_
uint64_t maxActiveConnections_
uint64_t logicalCpuCoreQuorum_