Skip to content

Commit b558f82

Browse files
author
241200050
committed
docs: 更新和添加文档内容- 更新 eBPF 文档,修正命令查询示例
- 添加 etcd 文档,介绍分布式数据库技术 - 更新 go 文档,增加编译相关示例 - 移除旧的 etcd 文档内容
1 parent 5b07c1c commit b558f82

File tree

9 files changed

+23
-13
lines changed

9 files changed

+23
-13
lines changed

db/etcd/etcd.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
4+
5+
6+
7+
数据库和应用程序服务器在应对互联网上数以亿计的访问量的时候,需
8+
要能进行横向扩展,这样才能提供足够高的性能。为了做到这一点,要学习分布式技术架
9+
构,包括负载均衡、DNS 解析、多子域名、无状态应用层、缓存层、数据库分片、容错
10+
和恢复机制、Paxos、Map/Reduce 操作、分布式 SQL 数据库一致性(以 Google
11+
Cloud Spanner 为代表)等知识点
12+
13+
14+
15+
16+
在关于集群的可用性( availability) 这一点上, etcd 认为一致性比可用性更加重要。这意味着 etcd 在出现脑裂的情况时,会停止为集群提供更新能力,来保证存储数据的一致性。
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

eBPF/ebpf.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ BPF 系统调用中并没有删除映射的命令,这是因为 BPF 映射会
250250
----
251251
#创建一个哈希表映射,并挂载到/sys/fs/bpf/stats_map(Key和Value的大小都是8字节)
252252
$ bpftool map create pinned /sys/fs/bpf/my_map type hash key 8 value 8 entries 1024
253-
//查询系统中的所有映射
253+
# 查询系统中的所有映射
254254
$ bpftool map
255255
# 示例输出
256256
# 340: hash name stats_map flags 0x0

etcd/etcd.adoc

Lines changed: 0 additions & 12 deletions
This file was deleted.

go/go.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,13 @@ func main() {}
11741174

11751175

11761176

1177+
=== 编译
11771178

1179+
[source, bash]
1180+
----
1181+
# 将go编译成汇编代码
1182+
go tool compile -S pkg.go
1183+
----
11781184

11791185

11801186

0 commit comments

Comments
 (0)