Repository navigation
Expand file tree
/
Copy pathSystem.json
More file actions
83 lines (83 loc) · 2.7 KB
/
Copy pathSystem.json
File metadata and controls
83 lines (83 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"error_messages": {
"429": "429 呀,服务器被小狐狸玩坏了,请稍后重试!",
"500": "500 呀,服务器内部出错了,请稍后重试!"
},
"forwarding": {
"timeout": {
"connect": 10,
"request": 120,
"read": 60,
"description": "超时设置(单位:秒)- connect: 连接超时, request: 请求超时, read: 读取超时"
},
"retry": {
"max_attempts": 3,
"backoff_factor": 2,
"retry_on_status": [
429,
500,
502,
503,
504
],
"description": "重试设置 - max_attempts: 最大重试次数, backoff_factor: 退避因子, retry_on_status: 触发重试的状态码"
},
"proxy": {
"enabled": false,
"http": "",
"https": "",
"description": "代理设置 - enabled: 是否启用代理, http/https: 代理地址"
},
"connection_pool": {
"max_keepalive_connections": 20,
"max_connections": 100,
"keepalive_expiry": 30,
"description": "连接池设置 - max_keepalive_connections: 最大保活连接数, max_connections: 最大连接数, keepalive_expiry: 保活过期时间(秒)"
},
"streaming": {
"chunk_size": 1024,
"buffer_size": 8192,
"description": "流式响应设置 - chunk_size: 数据块大小(字节), buffer_size: 缓冲区大小(字节)"
},
"rate_limit": {
"enabled": false,
"requests_per_second": 10,
"burst": 20,
"description": "速率限制设置 - enabled: 是否启用, requests_per_second: 每秒请求数, burst: 突发请求数"
},
"headers": {
"default": {
"Content-Type": "application/json",
"Accept": "application/json"
},
"custom": {},
"description": "请求头设置 - default: 默认请求头, custom: 自定义请求头"
},
"circuit_breaker": {
"enabled": true,
"failure_threshold": 5,
"recovery_timeout": 60,
"description": "熔断器设置 - enabled: 是否启用, failure_threshold: 失败阈值, recovery_timeout: 恢复超时(秒)"
}
},
"logging": {
"level": "INFO",
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
"file": "autoapi.log",
"max_size_mb": 10,
"backup_count": 5,
"description": "日志设置 - level: 日志级别, format: 日志格式, file: 日志文件名, max_size_mb: 最大文件大小(MB), backup_count: 备份文件数量"
},
"cache": {
"enabled": true,
"ttl": 60,
"max_size": 1000,
"description": "缓存设置 - enabled: 是否启用, ttl: 缓存时间(秒), max_size: 最大缓存条目数"
},
"tray": {
"lightweight": true
},
"appearance": {
"mode": "dark"
}
}