HTTP容错代理服务.
使用 resilience4go 包装代理请求.
支持:
- 舱壁隔离
- 限时
- 限速
- 熔断
- 重试
- 缓存
- 故障恢复
请参考: config_help.toml
violet.NewDataPlane(*violet.Config)
- 实现
http.Handler
接口, 按配置代理http请求 - 支持配置热更新
- 支持Prometheus监控指标收集
violet.NewCtrlPlane(violet.DataPlane)
- 实现
http.Handler
接口/config
: 响应返回当前配置/metrics
: 响应返回Prometheus指标数据/circuitbreaker/disable
: 停用指定Endpoint的熔断器, 使用url-query或post-form参数endpoint=xxx
指定Endpoint/circuitbreaker/force-open
: 强制开启指定Endpoint的熔断器, 使用url-query或post-form参数endpoint=xxx
指定Endpoint/circuitbreaker/close
: 关闭指定Endpoint的熔断器, 使用url-query或post-form参数endpoint=xxx
指定Endpoint/circuitbreaker/state
: 查询指定Endpoint的熔断器的当前状态, 使用url-query或post-form参数endpoint=xxx
指定Endpoint