Skip to content

Commit 1237ef1

Browse files
committed
blog
1 parent 713eb12 commit 1237ef1

File tree

33,007 files changed

+3211286
-771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

33,007 files changed

+3211286
-771
lines changed

deploy.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env sh
2+
3+
# 确保脚本抛出遇到的错误
4+
set -e
5+
6+
# 生成静态文件
7+
npm run docs:build
8+
9+
# 进入生成的文件夹
10+
cd docs/.vuepress/dist
11+
12+
# 如果是发布到自定义域名
13+
echo 'www.starfish.ink' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
# 如果发布到 https://<USERNAME>.github.io
20+
git push -f git@github.com:Jstarfish/Jstarfish.github.io.git master
21+
22+
# 如果发布到 https://<USERNAME>.github.io/<REPO>
23+
#git push -f git@github.com:Jstarfish/JavaKeeper.git master:gh-pages
24+
25+
cd -

docs/.vuepress/config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,11 @@ function genDistributionSidebar(){
210210
{
211211
title: " Zookeeper",
212212
collapsable: true,
213-
// children: [
214-
// "JUC/Java-Memory-Model",
215-
// "JUC/CountDownLatch、CyclicBarrier、Semaphore"
216-
// ]
213+
children: [
214+
['ZooKeeper/Consistency-Protocol','分布式一致性协议'],
215+
['ZooKeeper/Hello-Zookeeper','Hello Zookeeper'],
216+
['ZooKeeper/Zookeeper-Use','Zookeeper 实战'],
217+
]
217218
},
218219
{
219220
title: "RPC",

docs/.vuepress/dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 26a1ebf31074e1abc50d6f36c12e2a5930ad8463
1+
Subproject commit ff5f441fa08043d7f8e7297172cac10416fea6cd

docs/distribution/ZooKeeper/Consistency-Protocol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 「分布式一致性协议」从2PC、3PC、Paxos到 ZAB
1+
# 「分布式一致性协议」从2PC、3PC、Paxos到 ZAB
22

33
设计一个分布式系统必定会遇到一个问题—— **因为分区容忍性(partition tolerance)的存在,就必定要求我们需要在系统可用性(availability)和数据一致性(consistency)中做出权衡** 。这就是著名的 `CAP` 定理。
44

docs/distribution/ZooKeeper/Hello-Zookeeper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
不懂 ZooKeeper?没关系,这一篇给你讲的明明白白
1+
# 不懂 ZooKeeper?没关系,这一篇给你讲的明明白白
22

33
> 本来想系统回顾下 ZooKeeper的,可是网上没找到一篇合自己胃口的文章,写的差不多的,感觉大部分都是基于《从Paxos到ZooKeeper 分布式一致性原理与实践》写的,所以自己读了一遍,加上项目中的使用,做个整理。加油,奥利给!
44

docs/distribution/ZooKeeper/Zookeeper-FAQ.md

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

0 commit comments

Comments
 (0)