Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
c9627fc4
Commit
c9627fc4
authored
Sep 05, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move existing docs into docs/cn
parent
775d5faf
Hide whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
2 additions
and
2 deletions
+2
-2
README
README
+1
-1
atomic_instructions.md
docs/cn/atomic_instructions.md
+0
-0
avalanche_effect.md
docs/cn/avalanche_effect.md
+0
-0
backup_request.md
docs/cn/backup_request.md
+0
-0
benchmark.md
docs/cn/benchmark.md
+0
-0
benchmark_http.md
docs/cn/benchmark_http.md
+0
-0
bthread.md
docs/cn/bthread.md
+0
-0
bthread_id.md
docs/cn/bthread_id.md
+0
-0
bthread_or_not.md
docs/cn/bthread_or_not.md
+0
-0
builtin_service.md
docs/cn/builtin_service.md
+0
-0
bvar.md
docs/cn/bvar.md
+0
-0
bvar_c++.md
docs/cn/bvar_c++.md
+0
-0
client.md
docs/cn/client.md
+0
-0
combo_channel.md
docs/cn/combo_channel.md
+0
-0
connections.md
docs/cn/connections.md
+0
-0
consistent_hashing.md
docs/cn/consistent_hashing.md
+0
-0
contention_profiler.md
docs/cn/contention_profiler.md
+0
-0
cpu_profiler.md
docs/cn/cpu_profiler.md
+0
-0
dummy_server.md
docs/cn/dummy_server.md
+0
-0
error_code.md
docs/cn/error_code.md
+0
-0
execution_queue.md
docs/cn/execution_queue.md
+0
-0
flags.md
docs/cn/flags.md
+0
-0
getting_started.md
docs/cn/getting_started.md
+0
-0
heap_profiler.md
docs/cn/heap_profiler.md
+0
-0
http_client.md
docs/cn/http_client.md
+0
-0
http_service.md
docs/cn/http_service.md
+0
-0
io.md
docs/cn/io.md
+0
-0
iobuf.md
docs/cn/iobuf.md
+0
-0
lalb.md
docs/cn/lalb.md
+0
-0
load_balancing.md
docs/cn/load_balancing.md
+0
-0
memcached_client.md
docs/cn/memcached_client.md
+0
-0
memory_management.md
docs/cn/memory_management.md
+0
-0
new_protocol.md
docs/cn/new_protocol.md
+0
-0
nshead_service.md
docs/cn/nshead_service.md
+0
-0
overview.md
docs/cn/overview.md
+0
-0
parallel_http.md
docs/cn/parallel_http.md
+0
-0
redis_client.md
docs/cn/redis_client.md
+0
-0
rpc_press.md
docs/cn/rpc_press.md
+0
-0
rpc_replay.md
docs/cn/rpc_replay.md
+0
-0
rpc_view.md
docs/cn/rpc_view.md
+0
-0
rpcz.md
docs/cn/rpcz.md
+0
-0
server.md
docs/cn/server.md
+0
-0
server_debugging.md
docs/cn/server_debugging.md
+0
-0
status.md
docs/cn/status.md
+0
-0
streaming_log.md
docs/cn/streaming_log.md
+0
-0
streaming_rpc.md
docs/cn/streaming_rpc.md
+0
-0
thread_local.md
docs/cn/thread_local.md
+0
-0
threading_overview.md
docs/cn/threading_overview.md
+0
-0
timer_keeping.md
docs/cn/timer_keeping.md
+0
-0
ub_client.md
docs/cn/ub_client.md
+0
-0
vars.md
docs/cn/vars.md
+1
-1
No files found.
README
View file @
c9627fc4
...
...
@@ -2,4 +2,4 @@
A RPC framework used throughout Baidu, with more than 600,000 instances.
Check out [Getting started](docs/getting_started.md) for more information.
Check out [Getting started](docs/
cn/
getting_started.md) for more information.
docs/atomic_instructions.md
→
docs/
cn/
atomic_instructions.md
View file @
c9627fc4
File moved
docs/avalanche_effect.md
→
docs/
cn/
avalanche_effect.md
View file @
c9627fc4
File moved
docs/backup_request.md
→
docs/
cn/
backup_request.md
View file @
c9627fc4
File moved
docs/benchmark.md
→
docs/
cn/
benchmark.md
View file @
c9627fc4
File moved
docs/benchmark_http.md
→
docs/
cn/
benchmark_http.md
View file @
c9627fc4
File moved
docs/bthread.md
→
docs/
cn/
bthread.md
View file @
c9627fc4
File moved
docs/bthread_id.md
→
docs/
cn/
bthread_id.md
View file @
c9627fc4
File moved
docs/bthread_or_not.md
→
docs/
cn/
bthread_or_not.md
View file @
c9627fc4
File moved
docs/builtin_service.md
→
docs/
cn/
builtin_service.md
View file @
c9627fc4
File moved
docs/bvar.md
→
docs/
cn/
bvar.md
View file @
c9627fc4
File moved
docs/bvar_c++.md
→
docs/
cn/
bvar_c++.md
View file @
c9627fc4
File moved
docs/client.md
→
docs/c
n/c
lient.md
View file @
c9627fc4
File moved
docs/combo_channel.md
→
docs/c
n/c
ombo_channel.md
View file @
c9627fc4
File moved
docs/connections.md
→
docs/c
n/c
onnections.md
View file @
c9627fc4
File moved
docs/consistent_hashing.md
→
docs/c
n/c
onsistent_hashing.md
View file @
c9627fc4
File moved
docs/contention_profiler.md
→
docs/c
n/c
ontention_profiler.md
View file @
c9627fc4
File moved
docs/cpu_profiler.md
→
docs/c
n/c
pu_profiler.md
View file @
c9627fc4
File moved
docs/dummy_server.md
→
docs/
cn/
dummy_server.md
View file @
c9627fc4
File moved
docs/error_code.md
→
docs/
cn/
error_code.md
View file @
c9627fc4
File moved
docs/execution_queue.md
→
docs/
cn/
execution_queue.md
View file @
c9627fc4
File moved
docs/flags.md
→
docs/
cn/
flags.md
View file @
c9627fc4
File moved
docs/getting_started.md
→
docs/
cn/
getting_started.md
View file @
c9627fc4
File moved
docs/heap_profiler.md
→
docs/
cn/
heap_profiler.md
View file @
c9627fc4
File moved
docs/http_client.md
→
docs/
cn/
http_client.md
View file @
c9627fc4
File moved
docs/http_service.md
→
docs/
cn/
http_service.md
View file @
c9627fc4
File moved
docs/io.md
→
docs/
cn/
io.md
View file @
c9627fc4
File moved
docs/iobuf.md
→
docs/
cn/
iobuf.md
View file @
c9627fc4
File moved
docs/lalb.md
→
docs/
cn/
lalb.md
View file @
c9627fc4
File moved
docs/load_balancing.md
→
docs/
cn/
load_balancing.md
View file @
c9627fc4
File moved
docs/memcached_client.md
→
docs/
cn/
memcached_client.md
View file @
c9627fc4
File moved
docs/memory_management.md
→
docs/
cn/
memory_management.md
View file @
c9627fc4
File moved
docs/new_protocol.md
→
docs/
cn/
new_protocol.md
View file @
c9627fc4
File moved
docs/nshead_service.md
→
docs/
cn/
nshead_service.md
View file @
c9627fc4
File moved
docs/overview.md
→
docs/
cn/
overview.md
View file @
c9627fc4
File moved
docs/parallel_http.md
→
docs/
cn/
parallel_http.md
View file @
c9627fc4
File moved
docs/redis_client.md
→
docs/
cn/
redis_client.md
View file @
c9627fc4
File moved
docs/rpc_press.md
→
docs/
cn/
rpc_press.md
View file @
c9627fc4
File moved
docs/rpc_replay.md
→
docs/
cn/
rpc_replay.md
View file @
c9627fc4
File moved
docs/rpc_view.md
→
docs/
cn/
rpc_view.md
View file @
c9627fc4
File moved
docs/rpcz.md
→
docs/
cn/
rpcz.md
View file @
c9627fc4
File moved
docs/server.md
→
docs/
cn/
server.md
View file @
c9627fc4
File moved
docs/server_debugging.md
→
docs/
cn/
server_debugging.md
View file @
c9627fc4
File moved
docs/status.md
→
docs/
cn/
status.md
View file @
c9627fc4
File moved
docs/streaming_log.md
→
docs/
cn/
streaming_log.md
View file @
c9627fc4
File moved
docs/streaming_rpc.md
→
docs/
cn/
streaming_rpc.md
View file @
c9627fc4
File moved
docs/thread_local.md
→
docs/
cn/
thread_local.md
View file @
c9627fc4
File moved
docs/threading_overview.md
→
docs/
cn/
threading_overview.md
View file @
c9627fc4
File moved
docs/timer_keeping.md
→
docs/
cn/
timer_keeping.md
View file @
c9627fc4
File moved
docs/ub_client.md
→
docs/
cn/
ub_client.md
View file @
c9627fc4
File moved
docs/vars.md
→
docs/
cn/
vars.md
View file @
c9627fc4
[
public/bvar
](
http://icode.baidu.com/repo/baidu/opensource/baidu-rpc/files/master/blob/src
/
)
是多线程环境下的计数器类库,方便记录和查看用户程序中的各类数值,它利用了thread local存储避免了cache bouncing,相比UbMonitor几乎不会给程序增加性能开销,也快于竞争频繁的原子操作。baidu-rpc集成了bvar,
[
/vars
](
http://brpc.baidu.com:8765/vars
)
可查看所有曝光的bvar,
[
/vars/VARNAME
](
http://brpc.baidu.com:8765/vars/rpc_socket_count
)
可查阅某个bvar,增加计数器的方法请查看
[
bvar
](
http://wiki.baidu.com/display/RPC/bvar
)
。baidu-rpc大量使用了bvar提供统计数值,当你需要在多线程环境中计数并展现时,应该第一时间想到bvar。但bvar不能代替所有的计数器,它的本质是把写时的竞争转移到了读:读得合并所有写过的线程中的数据,而不可避免地变慢了。当你读写都很频繁并得基于数值做一些逻辑判断时,你不应该用bvar。
[
public/bvar
](
../src/bvar
/
)
是多线程环境下的计数器类库,方便记录和查看用户程序中的各类数值,它利用了thread local存储避免了cache bouncing,相比UbMonitor几乎不会给程序增加性能开销,也快于竞争频繁的原子操作。baidu-rpc集成了bvar,
[
/vars
](
http://brpc.baidu.com:8765/vars
)
可查看所有曝光的bvar,
[
/vars/VARNAME
](
http://brpc.baidu.com:8765/vars/rpc_socket_count
)
可查阅某个bvar,增加计数器的方法请查看
[
bvar
](
http://wiki.baidu.com/display/RPC/bvar
)
。baidu-rpc大量使用了bvar提供统计数值,当你需要在多线程环境中计数并展现时,应该第一时间想到bvar。但bvar不能代替所有的计数器,它的本质是把写时的竞争转移到了读:读得合并所有写过的线程中的数据,而不可避免地变慢了。当你读写都很频繁并得基于数值做一些逻辑判断时,你不应该用bvar。
## 查询方法
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment