Skip to content

Commit

Permalink
chore: add upx for build release
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Apr 5, 2024
1 parent 1118825 commit 9ca01e8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ jobs:
make test
make bench
make release
ls target/x86_64-unknown-linux-musl/release
- name: Compress binaries
uses: svenstaro/upx-action@v2
with:
files: |
target/x86_64-unknown-linux-musl/release/pingap
4 changes: 4 additions & 0 deletions docs/introduction_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ Upstream现支持三种类型,包括`静态目录`,`Mock响应`以及常规
- `反向代理节点`: 根据各节点的健康情况以及选择算法,选择对应的节点转发请求

[Upstream的详细说明](./upstream_zh.md)

## 访问日志格式化

[日志格式化详细说明](./log_zh.md)
8 changes: 4 additions & 4 deletions docs/log_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pingap格式化可以使用以下几种默认形式`combined`,`common`,`shor
- `{payload-size}`: 请求数据的字节大小
- `{payload-size-human}`: 请求数据的大小,按数据大小格式化字符串
- `{~cookiename}`: 从cookie中获取对应的值
- `{>requestHeaderName}`: 请求头中获取对应的值
- `{<responseHeaderName}`: 响应头中获取对应的值
- `{:contentName}`: 从context中获取对应的值,暂时仅支持以下属性:`reused`, `upstream-address`, `processing`
- `{$envName}`: 从环境变量中获取对应的值,仅启动时获取
- `{>request_header_name}`: 请求头中获取对应的值
- `{<response_header_name}`: 响应头中获取对应的值
- `{:context_ame}`: 从context中获取对应的值,暂时仅支持以下属性:`reused`, `upstream-address`, `processing`
- `{$env_name}`: 从环境变量中获取对应的值,仅启动时获取
2 changes: 1 addition & 1 deletion docs/upstream_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Mock响应的配置形式为`mock://{"status":500,"headers":["Content-Type: appl
- `health_check`: 建议配置为health check的形式,根据服务的检测路径配置为`http://upstream名称/路径`,如对于upstream为charts的服务,其检测路径为`/ping`,即可设置为`http://charts/ping`

- `TCP`: tcp://upstreamname?connection_timeout=3s&success=2&failure=1&check_frequency=10s
- `HTTP`: http(s): http://upstreamname/ping?connection_timeout=3s&read_timeout=1s&success=2&failure=1&check_frequency=10s
- `HTTP(S)`: http://upstreamname/ping?connection_timeout=3s&read_timeout=1s&success=2&failure=1&check_frequency=10s

健康检测参数说明:

Expand Down

0 comments on commit 9ca01e8

Please sign in to comment.