You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/Builtin Services/buildin_services/_index.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ description: >
8
8
---
9
9
# Builtin Services
10
10
11
-
Builtin services expose internal status of servers in different pespectives, making development and debugging over brpc more efficient. brpc serves builting services via HTTP, which can be easily accessed through curl and web browsers. Servers respond plain text or html according to `User-Agent` in the request header, or you may append `?console=1` to the uri to force the server to respond in plain text. Check the [example](http://brpc.baidu.com:8765/) running on our dev machine(only accessible from Baidu internal) for more details. If the port is forbidden from where you run curl or web browser (e.g. not all ports are accessible from a web browser inside Baidu), you can use [rpc_view](rpc_view.md) for proxying.
11
+
Builtin services expose internal status of servers in different pespectives, making development and debugging over brpc more efficient. brpc serves builting services via HTTP, which can be easily accessed through curl and web browsers. Servers respond plain text or html according to `User-Agent` in the request header, or you may append `?console=1` to the uri to force the server to respond in plain text. Check the [example](http://brpc.baidu.com:8765/) running on our dev machine(only accessible from Baidu internal) for more details. If the port is forbidden from where you run curl or web browser (e.g. not all ports are accessible from a web browser inside Baidu), you can use [rpc_view](../../tools/rpc_view/) for proxying.
12
12
13
13
Following 2 screenshots show accesses to builtin services from a web browser and a terminal respectively. Note that the logo is the codename inside Baidu, and being modified to brpc in opensourced version.
14
14
@@ -22,25 +22,25 @@ Following 2 screenshots show accesses to builtin services from a web browser and
22
22
23
23
# Security Mode
24
24
25
-
To avoid potential attacks and information leaks, builtin services **must** be hidden on servers that may be accessed from public, including the ones proxied by nginx or other http servers. Click [here](server.md#security-mode) for more details.
25
+
To avoid potential attacks and information leaks, builtin services **must** be hidden on servers that may be accessed from public, including the ones proxied by nginx or other http servers. Click [here](../../server/basics/#security-mode) for more details.
26
26
27
27
# Main services:
28
28
29
-
[/status](status.md): displays brief status of all services.
29
+
[/status](../status/): displays brief status of all services.
30
30
31
-
[/vars](vars.md): lists user-customizable counters on miscellaneous metrics.
31
+
[/vars](../vars/): lists user-customizable counters on miscellaneous metrics.
32
32
33
-
[/connections](../cn/connections.md): lists all connections and their stats.
33
+
[/connections](../connections/): lists all connections and their stats.
34
34
35
-
[/flags](../cn/flags.md): lists all gflags, some of them are modifiable at run-time.
35
+
[/flags](../flags/): lists all gflags, some of them are modifiable at run-time.
36
36
37
-
[/rpcz](../cn/rpcz.md): traces all RPCs.
37
+
[/rpcz](../rpcz/): traces all RPCs.
38
38
39
-
[cpu profiler](../cn/cpu_profiler.md): analyzes CPU hotspots.
39
+
[cpu profiler](../cpu_profiler/): analyzes CPU hotspots.
40
40
41
-
[heap profiler](../cn/heap_profiler.md): shows how memory are allocated.
41
+
[heap profiler](../heap_profiler/): shows how memory are allocated.
Copy file name to clipboardExpand all lines: content/en/docs/Builtin Services/status/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ date: 2021-08-12
6
6
description: >
7
7
Learn about status service.
8
8
---
9
-
[/status](http://brpc.baidu.com:8765/status) shows primary statistics of services inside the server. The data sources are same with [/vars](vars.md), but stats are grouped differently.
9
+
[/status](http://brpc.baidu.com:8765/status) shows primary statistics of services inside the server. The data sources are same with [/vars](../vars/), but stats are grouped differently.
- [闭链哈希](http://en.wikipedia.org/wiki/Open_addressing)(closed hashing or open addressing): 闭链的初衷是减少内存跳转,桶不再是链表入口,而只需要记录一对key/value与一些标记,当桶被占时,按照不同的探查方法直到找到空桶为止。比如线性探查就是查找下一个桶,二次探查是按1,2,4,9...平方数位移查找。优点是:当表很空时或冲突较少时,查找只需要一次访存,也不需要管理节点内存池。但仅此而已,这个方法带来了更多缺点:桶个数必须大于元素个数,resize后之前的内存全部失效,难以并发. 更关键的是聚集效应:当区域内元素较多时(超过70%,其实不算多),大量元素的实际桶和它们应在的桶有较大位移。这使哈希表的主要操作都要扫过一大片内存才能找到元素,性能不稳定难以预测。闭链哈希表在很多人的印象中“很快”,但在复杂的应用中往往不如开链哈希表,并且可能是数量级的慢。闭链有一些衍生版本试图解决这个问题,比如[Hopscotch hashing](http://en.wikipedia.org/wiki/Hopscotch_hashing)。
0 commit comments