| Update atomic_instructions.md std::atomic<bool> 的operator= 重载中,默认使用最严格内存序memory_order_seq_cst (msvc142/gcc4.8.2),因此示例1 的问题,在ready是std::atomic<bool>时应该不会出现问题。 如果读者默认示例1和示例2 ready的类型相同(都是std::atomic<bool>),可能存在误解。 因此将示例1中的ready注释为裸bool以确保引发问题 | 5 years ago |
| feat(auto_cl): add error rate threshold for punishment attenuation (#3219) * feat(auto_cl): add error rate threshold for punishment attenuation Add new GFlag auto_cl_error_rate_punish_threshold to enable error-rate-based punishment attenuation in AutoConcurrencyLimiter. Problem: Low error rates (e.g., 1.3% sporadic timeouts) cause disproportionate avg_latency inflation (+31%), leading the limiter to mistakenly shrink max_concurrency and trigger ELIMIT rejections. Solution: Inspired by Alibaba Sentinel's threshold-based approach: - threshold=0 (default): Original behavior preserved (backward compat) - threshold>0 (e.g., 0.1): Error rates below threshold produce zero punishment; above it, punishment scales linearly from 0 to full Example: With threshold=0.1, a 5% error rate produces no punishment, while a 50% error rate produces 44% of the original punishment. --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> | 9 months ago |
| update avalanche.md | 7 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| + Minor fix and guard on SSL | 8 years ago |
| Release Apache bRPC 1.18.0 (#3550) | 1 month ago |
| delete baidu inner svn code link | 6 years ago |
| replace baidu-rpc with brpc | 9 years ago |
| + Update PPTs | 8 years ago |
| docs(bthread): translate English bthread documentation (#3503) English bthread pages were placeholders, so README and overview linked readers to empty stubs. Fill in the translations and add cross-language links. | 2 months ago |
| docs(bthread): translate English bthread documentation (#3503) English bthread pages were placeholders, so README and overview linked readers to empty stubs. Fill in the translations and add cross-language links. | 2 months ago |
| docs(bthread): translate English bthread documentation (#3503) English bthread pages were placeholders, so README and overview linked readers to empty stubs. Fill in the translations and add cross-language links. | 2 months ago |
| docs(bthread): translate English bthread documentation (#3503) English bthread pages were placeholders, so README and overview linked readers to empty stubs. Fill in the translations and add cross-language links. | 2 months ago |
| docs(bthread): translate English bthread documentation (#3503) English bthread pages were placeholders, so README and overview linked readers to empty stubs. Fill in the translations and add cross-language links. | 2 months ago |
| Reviewed builtin_service.md | 8 years ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| Support bvar::Histogram and fix Prometheus name/label conflicts between bvar and mbvar (#3557) * Support bvar::Histogram and fix Prometheus name/label conflicts between bvar and mbvar * Fix MVariableBase::dump_exposed return type * Fix some issues * Fix json output * Move the deduplication into PrometheusMetricsDumper | 1 month ago |
| Add entry of user cases in README.md | 9 years ago |
| replace baidu-rpc with brpc | 9 years ago |
| adapt github markdown rules | 9 years ago |
| More translations in client.md | 9 years ago |
| docs(circuit_breaker): fix word error | 4 years ago |
| Add bounded-load consistent hashing load balancer (c_murmurhash_bl) (#3502) Classic consistent hashing routes a hot key to one server with no relief valve: that server saturates while its ring neighbors idle. c_murmurhash_bl implements "Consistent Hashing with Bounded Loads" (Mirrokni et al., CACM 2017) on the same murmurhash ring: each server accepts at most ceil(load_factor * average in-flight) requests, and an at-capacity server overflows clockwise to the next server with spare capacity, so spilled requests always land on the same ring successors. load_factor defaults to -chash_bounded_load_factor(1.25, validated > 1) and is overridable per channel: c_murmurhash_bl:load_factor=1.5. In-flight accounting uses relaxed per-server counters shared by both DoublyBufferedData buffers, incremented at selection and decremented in Feedback(); the total is restored even if the server was removed in between, and the counter map is resynced from the ring on membership changes. The ring code is reused by subclassing ConsistentHashingLoadBalancer via a per-key SetParameter() hook. The existing `replicas' parameter is now documented for all CH schemes, settling the old "TODO: or 160?" on the replica count. Includes unit tests (cap under hot-key load, overflow to ring successor, factor validation, feedback decrement, removal consistency, replicas parameter) and docs in cn/en client.md. Co-authored-by: rajvarun77 <287367605+rajvarun77@users.noreply.github.com> | 2 months ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| Add almost all images | 9 years ago |
| add docs for cluster recover & fix parameter unit | 7 years ago |
| replace baidu-rpc with brpc | 9 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| docs(readme): update READMEs and add English doc placeholders (#3263) - Fix outdated Travis CI badge in README_cn.md to GitHub Actions - Unify all doc links in README.md to point to docs/en/ directory - Add references for bthread tracer, coroutine, circuit breaker, RDMA, Bazel support - Create 39 English placeholder docs pointing to Chinese versions - Create Chinese placeholder for couchbase_example | 7 months ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| Translate dummy_server.md | 8 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| docs(bthread): translate English bthread documentation (#3503) English bthread pages were placeholders, so README and overview linked readers to empty stubs. Fill in the translations and add cross-language links. | 2 months ago |
| update docs | 5 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| Reuse standard CMake build directory in docs (#3552) | 1 month ago |
| jemalloc profiler support objects | 1 year ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| polish http_derivatives.md | 7 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| fix md | 8 months ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| remove the docs and comments related to HealthCheckThread (#2463) | 2 years ago |
| Support bvar::Histogram and fix Prometheus name/label conflicts between bvar and mbvar (#3557) * Support bvar::Histogram and fix Prometheus name/label conflicts between bvar and mbvar * Fix MVariableBase::dump_exposed return type * Fix some issues * Fix json output * Move the deduplication into PrometheusMetricsDumper | 1 month ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| move existing docs into docs/cn | 9 years ago |
| fix | 8 months ago |
| fix(redis): avoid formatted command overread (#3570) Retry formatted values in dynamically sized storage when vsnprintf reports an output larger than the stack buffer. Add a vector-based RedisRequest component overload and use it for authentication and cluster command construction while retaining the existing format APIs. Add coverage for wide numeric formatting, binary-safe components, and AUTH/SELECT credential encoding. Verified with RedisCommandFormatTest.* and RedisClusterChannelTest.basic_routing_and_multi_key_commands. | 1 month ago |
| Add Power-of-Two-Choices Peak-EWMA load balancer (p2c) (#3367) * Add Power-of-Two-Choices Peak-EWMA load balancer (p2c) Implements the p2c load balancing policy proposed in #3340: each selection samples two random servers (configurable via choices=N) and routes to the lower peak-EWMA latency * (inflight+1) / weight score. Upward latency spikes take effect immediately while recovery decays over tau_ms (default 10s), so a degraded server is shed within one observation at O(1) selection cost. Uses only existing LoadBalancer hooks (SelectServer/Feedback, need_feedback) with DoublyBufferedData membership like rr/la; per-node stats are shared_ptr-owned by both buffers. Registered as "p2c" in global.cpp. Includes unit tests (functional, weighted, exclusion, error punishment, concurrency churn) and docs in cn/en client.md. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Reuse SelectIn.begin_time_us to avoid extra clock read per selection Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Address review: gflags for tunables, cap error punishment, drop FlatMap init - p2c_default_choices/p2c_default_tau_ms gflags as channel-overridable defaults - p2c_max_punish_ms(default 30s) caps the doubled-EWMA error punishment so a persistently failing server recovers in bounded time after turning healthy - Servers::server_map relies on FlatMap small-map auto-init - tests: error_punish_is_capped + feedback_lock_overhead benchmark Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: rajvarun77 <287367605+rajvarun77@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com> | 4 months ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| update docs | 4 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| Bugfix: Butex returned to ObjectPool triggers use-after-poison (#3012) | 1 year ago |
| feat: limit server connections per public listener (#3498) * feat: limit Redis server connections * feat: update Redis connection limit at runtime * fix: handle partial Redis rejection writes * Fix Redis connection limit review nits Accept fd 0 in the Redis connection tests and describe every dedicated-listener requirement in startup and runtime errors. Validation: brpc_server_unittest rebuilt; dedicated-listener, plaintext/dynamic-limit, pre-TLS rejection, and idle-connection tests passed (4/4). Diff whitespace check passed. Full suite not run. * Clarify Redis rejection ownership and response delivery Document that rejection borrows the fd from the accept loop guard, which closes it on continue. Describe nonblocking best-effort error delivery in both server guides. Accumulate short TCP reads in rejection tests and verify plaintext EOF. Validation: rebuilt brpc_server_unittest; dedicated-listener, plaintext/dynamic-limit, pre-TLS rejection and idle-connection tests passed (4/4). Merge-base diff whitespace check passed. Full suite not run. Production behavior is unchanged. * Improve Redis rejection portability and regression coverage Guard MSG_NOSIGNAL and use SO_NOSIGPIPE when available; omit the optional error if per-socket signal suppression is unavailable. Share listener validation diagnostics, use RAII based on actual Server ownership in the invalid-configuration test, and verify new admission after slot recovery. Validation: cmake --build build --target brpc_server_unittest --parallel 4 succeeded. Dedicated-listener, plaintext/dynamic-limit/slot-recovery, pre-TLS rejection, and idle-connection tests passed (4/4). Merge-base diff check passed. Full suite and macOS fallback were not run. * Generalize connection limits to public listeners * Address connection limit review feedback | 2 months ago |
| Complete trans of server_debugging.md | 8 years ago |
| docs: fix server_push.md | 5 years ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| Fix noflush compile fail with glog | 5 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| Fix __const__ compile error in gcc version >= 11.2.0 | 4 years ago |
| fix typo | 7 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| update project links (#2200) - brpc/brpc -> apache/brpc | 3 years ago |
| Refactor NULL with nullptr in docs (#3467) | 2 months ago |
| build: complete UBRING Bazel and CI support (#3445) Add the missing BRPC_WITH_UBRING Bazel configuration, wire it through the library and example targets, and document the supported build commands. Enable RDMA and UBRING in CI jobs whose all-options configurations did not exercise those features. Run both feature suites in the existing Bazel unit-test jobs and enable RDMA in the Make unit-test job. Use unsigned literals for UBRING atomic counter operations to match the counter type and avoid template deduction failures on stricter compilers. Signed-off-by: Zhengwei Zhu <141622927+ZhengweiZhu@users.noreply.github.com> | 3 months ago |
| Document exclusive and pooled URMA connections Describe shared resource ownership, memory pools, transport selection, handshake compatibility and bounded message delivery. Document shutdown and callback lifetime guarantees together with the existing same-SocketId receive-incarnation limitation. | 1 day ago |
| Update vars.md | 4 years ago |
| Add wireshark dissector for baidu_std protocol (#2408) | 3 years ago |