Skip to content

Commit d110200

Browse files
committed
test too;l
1 parent f97a4b3 commit d110200

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/pangu.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ jobs:
1919
- added|modified: '**/*.md'
2020
- name: Install packages
2121
if: ${{ steps.changes.outputs.markdown == 'true' }}
22-
run: pip install -U pangu
22+
run: |
23+
pip install -U pangu
24+
go get -u github.com/vinta/pangu/pangu-axe
25+
- name: Test tool
26+
run: pangu -f _docs/zh/administration/backup-request.md
2327
- name: Check format
2428
if: ${{ steps.changes.outputs.markdown == 'true' }}
25-
run: for markdown_file in ${{ steps.changes.outputs.markdown_files }}; do diff <(pangu -f ${markdown_file}) <(cat ${markdown_file}); done
29+
run: for markdown_file in ${{ steps.changes.outputs.markdown_files }}; do pangu -f ${markdown_file}; done
2630

_docs/zh/administration/backup-request.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ permalink: administration/backup-request
33
---
44

55
# 背景
6-
在当前的 Pegasus 实现中,由于向 secondary 读取会导致不一致的情况发生,所以 Pegasus 默认只对 primary 副本的读取。但是在某些情况下(例如:负载均衡、热点写入等)经常会导致 primary 不稳定。因此,我们希望在 primary 不稳定时能够读取 secondary,通过牺牲部分强一致性来降低读请求的长尾并提高系统的可用性。backup request 便是用来实现此功能的。
6+
在当前的 Pegasus 实现中,由于向secondary读取会导致不一致的情况发生,所以 Pegasus 默认只对 primary 副本的读取。但是在某些情况下(例如:负载均衡、热点写入等)经常会导致 primary 不稳定。因此,我们希望在 primary 不稳定时能够读取 secondary,通过牺牲部分强一致性来降低读请求的长尾并提高系统的可用性。backup request 便是用来实现此功能的。
77

88
# 设计实现
99

0 commit comments

Comments
 (0)