Skip to content

Commit

Permalink
add apphttphealthy,netreach and netdns usage doc (#123)
Browse files Browse the repository at this point in the history
Signed-off-by: ii2day <ji.li@daocloud.io>
  • Loading branch information
ii2day authored Aug 7, 2023
1 parent 2caa6aa commit 86077f9
Show file tree
Hide file tree
Showing 18 changed files with 954 additions and 8 deletions.
41 changes: 41 additions & 0 deletions docs/README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# kdoctor
[![Auto Release Version](https://github.com/kdoctor-io/kdoctor/actions/workflows/auto-release.yaml/badge.svg)](https://github.com/kdoctor-io/kdoctor/actions/workflows/auto-release.yaml)
[![Auto Nightly CI](https://github.com/kdoctor-io/kdoctor/actions/workflows/auto-nightly-ci.yaml/badge.svg)](https://github.com/kdoctor-io/kdoctor/actions/workflows/auto-nightly-ci.yaml)
[![codecov](https://codecov.io/gh/kdoctor-io/kdoctor/branch/main/graph/badge.svg?token=rLmsuiBLM2)](https://codecov.io/gh/kdoctor-io/kdoctor)
[![Go Report Card](https://goreportcard.com/badge/github.com/kdoctor-io/kdoctor)](https://goreportcard.com/report/github.com/kdoctor-io/kdoctor)
[![CodeFactor](https://www.codefactor.io/repository/github/kdoctor-io/kdoctor/badge)](https://www.codefactor.io/repository/github/kdoctor-io/kdoctor)
![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/ii2day/0300d0a99d701fec02909d843792e67d/raw/e2ereport.json)

***

**简体中文** | [**English**](./README.md)

## Introduction

kdoctor 是一个 kubernetes 数据面测试项目,通过压力注入的方式,实现对集群进行功能、性能的主动式巡检。

传统的集群巡检,通过采集指标、日志、应用状态等信息来确认集群和应用的状态,实现被动式巡检。但是在一些特殊场景下,这种方式可能不能实现预期的巡检目的、时效性、集群范围,运维人员就需要采用手动方式给集群注入一些压力,进行主动式巡检,当集群规模很大、巡检频率高或巡检流程复杂时,手工方式难以持久实施。这些场景包括:

* 部署大规模集群后,希望确认所有节点间 POD 的网络连通性,避免某个节点存在网络故障,发现网络中是否存在偶发丢包问题,而通信渠道非常多,包括 pod IP、clusterIP、nodePort、loadbalancer ip、ingress ip, 甚至是 POD 多网卡、双栈IP

* 希望主动检测所有节点间上的 POD 能够正常访问 coredns 服务,希望确认 coredns 服务的资源配置和副本数量正确,其服务性能能欧支持预期的最大访问量

* 磁盘是易耗品,例如 etcd 等应用对磁盘性能是比较敏感的,在日常运维工作中,管理员希望周期地确认所有节点的本地磁盘是正常的,文件读写的吞吐量和延时是符合预期的

* 给某个服务主动注入压力,它可能是镜像仓库、mysql 或者 api-server,以配合 BUG 复现,或确认服务性能

kdoctor 是一个 kubernetes 数据面测试项目,来源于生产运维过程中的实践场景,通过压力注入的方式,实现对集群进行功能、性能的主动式巡检。 kdoctor 可以应用于:

* 生产环境的部署检查、日常运维等场景,能避免了人工巡检的工作负担。

* 能应用 E2E 测试、bug 复现、混沌测试等,减少编程工作。

## 架构

## 快速开始

## 核心功能

## License

kdoctor is licensed under the Apache License, Version 2.0. See [LICENSE](./LICENSE) for the full license text.
8 changes: 4 additions & 4 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ markdown_extensions:
nav:
- README.md
- Installation:
- Installation: usage/install-zh_CN.md
- Installation: usage/install.md
- Usage:
- AppHttpHealthy: usage/apphttphealthy.md
- NetReach: usage/netreach.md
- NetDns: usage/netdns.md
- Concepts:
- Architecture: reference/arch.md
- Reference:
- AppHttpHealthy: reference/apphttphealthy-zh_CN.md
- NetReach: reference/netreach-zh_CN.md
- NetDns: reference/netdns-zh_CN.md
- AppHttpHealthy: reference/apphttphealthy.md
- NetReach: reference/netreach.md
- NetDns: reference/netdns.md
- Report: reference/report.md
- Performance: usage/performance.md
- Development:
Expand Down
4 changes: 3 additions & 1 deletion docs/reference/apphttphealthy-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# AppHttpHealthy

[**English**](./apphttphealthy.md) | **简体中文**

## 基本描述

对于这种任务,每个 kdoctor agent都会向指定的目标发送http请求,并获得成功率和平均延迟。它可以指定成功条件来判断结果是否成功。并且,可以通过聚合API获取详细的报告。
Expand All @@ -22,7 +24,7 @@ spec:
schedule:
roundNumber: 1
roundTimeoutMinute: 1
schedule: 0 0
schedule: 0 1
target:
enableLatencyMetric: false
host: http://www.baidu.com
Expand Down
3 changes: 3 additions & 0 deletions docs/reference/apphttphealthy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# AppHttpHealthy

[**简体中文**](./apphttphealthy-zh_CN.md) | **English**
2 changes: 2 additions & 0 deletions docs/reference/netdns-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# netdns

[**English**](./netdns.md) | **简体中文**

## 基本描述

对于这种任务,每个 kdoctor 代理都会向指定的目标发送 Dns 请求,并获得成功率和平均延迟。 它可以指定成功条件来告知结果成功或失败。
Expand Down
3 changes: 3 additions & 0 deletions docs/reference/netdns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# netdns

[**简体中文**](./netdns-zh_CN.md) | **English**
4 changes: 3 additions & 1 deletion docs/reference/netreach-zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# NetReach

[**English**](./netreach.md) | **简体中文**

## 基本描述

对于这种任务,每个kdoctor agent都会相互发送http请求,请求地址为每一个 agent 的 pod ip 、service ip、ingress ip 等等,并获得成功率和平均延迟。它可以指定成功条件来判断结果是否成功。并且,可以通过聚合API获取详细的报告。
Expand All @@ -22,7 +24,7 @@ spec:
schedule:
roundNumber: 1
roundTimeoutMinute: 1
schedule: 0 0
schedule: 0 1
target:
clusterIP: true
enableLatencyMetric: false
Expand Down
3 changes: 3 additions & 0 deletions docs/reference/netreach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# NetReach

[**简体中文**](./netreach-zh_CN.md) | **English**
Loading

0 comments on commit 86077f9

Please sign in to comment.