- 最新动态
- 功能总览
- 产品介绍
- 计费说明
- 快速入门
- AppStage使用前准备
- AI原生应用引擎用户指南
- 开发中心用户指南
-
运维中心用户指南
- 运维中心简介
- 运维中心使用前准备
- 运维中心使用流程
- 进入运维中心
- 接入资源
- 部署应用
- 监控资源和应用
- 管理已纳管资源
- 管理运行时资源
- 管理工单
- 运营中心用户指南
- 最佳实践
- 开发指南
- API参考
- SDK参考
-
常见问题
- 权限管理
-
AI原生应用引擎
- 我创建的微调数据集会被其他用户调用去训练他们的大模型吗?
- 模型微调任务一直在等待中是什么原因?
- 大模型微调需要的数据有要求吗?
- AI原生应用引擎支持所有数据集进行数据标注吗?
- AI原生应用引擎中预置了哪些提示语?
- AI原生应用引擎训练好后的模型如何获取?
- 模型调测时,无法选择模型服务商API是什么原因?
- 我接入的模型需要满足什么要求才能在创建Agent时作为思考模型?
- Agent问答的时候报错“很抱歉,我的系统似乎遇到了一些故障问题,暂时无法为您提供服务”
- 自接入的模型在模型调测的时候报错是什么原因?
- 开源模型怎么部署?
- 平台有没有预置模型?
- 思考模型和问答模型的区别
- 工作流中知识库节点、LLM节点都需要配置实例,实例的API Key填什么?
- 工作流中工具节点的实例如何配置?
- 如何获取Agent发布时所需的API Key?
- 如何保证Agent每次问答都调用知识库?
- 工作流的返回是json格式,但是大模型会进行总结,如何以json格式直接输出?
- 如何在工作流中定制逻辑实现特定任务,比如时间格式转换、数组对象的push等
- 资产中心的工具怎么使用?
- Code代码节点的输入输出参数如何与其他节点进行交互和传递?
- Agent问答的时候没有回答
- 发布Agent的时候提示套餐校验失败
- 一站式创建Agent时如何取消选择默认模型,更换为其他模型
- 按照标题切分的时候,分段长度是什么意思?
- 工作流已启用,为什么在创建Agent时仍然无法选用?
- 如何通过调用Agent API将变量传递到工作流?
- 开发中心
- 运维中心部署服务
-
运维中心监控服务
- 如何查看EAP详细日志?
- 删除告警任务失败
- 告警后触发知识编排任务提示alert_type不存在
- 创建CES指标采集报错
- 如何卸载虚拟机上安装的filebeat?
-
异常检测Judge定时任务失败
- KeyError
- TypeError: not supported between instances of 'str' and 'float'
- TypeError("Cannot index by location index with a non-integer key")
- judge长时间处于SUBMIT状态直至失败
- fail to load model json
- judge日志无法查看,提示get request error
- judge日志大小1KB,且不刷新日志内容
- PSQLException: ERROR: invalid input syntax for type numeric
- PSQLException: ERROR: syntax error at or near
- too much null size
- judge_data_size(in):0
- ERROR - fail to load
- canceling statement due to user request
- 保存异常检测告警配置时报错
- 运维中心弹性资源服务
- 运维中心弹性网络服务
- 运维中心主机管理服务
- 运维中心微服务平台
-
运维中心负载均衡
-
SLB同步异常相关问题
- SSL_do_handshake() failed
- test nginx: nginx: [emerg] host not found in upstream "后端服务器名称" in /.../server...conf:17 nginx: .../nginx.conf test failed [FAILED
- no "ssl_certificate" is defined for the "listen ... ssl""
- no such file or directory......./ssl/dummy.pem
- test nginx: nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 524288000) failed (12: Cannot allocate memory) nginx: [alert] munmap(FFFFFFFFFFFFFFFF, 524288000) failed
- duplicate value "error" in /opt/huawei/openresty/nginx/.../xxx.conf:40
- SLB同步检查不一致
- SLB一直同步,心跳异常
-
SLB部署失败相关问题
- FATAL Can't get local ip
- /etc/rc.d/init.d/functions: No such file or directory
- nginx is stopped
- will_upgrade\old_version:1.4.7
- Need to modify /etc/hosts,but no permission.
- system param fs.nr_open should not less than fs.file-max”or“system param net.ipv4.ip_local_port_range should >=30000
- some permission denied files in /opt/huawei/openresty/nginx/conf/
- Permission denied: '/opt/huawei/release/lf_test/SLB/
- install_slb_failed for /opt/huawei/openresty exists not for slb
- not all conf included in vhosts or slb_conf
- watchdog still running
- job 28e7241e42904334b failed
- [Service proxy.apply_sudo._wrapped_f]: fail to operator sudo,message: send request fail, status code: 400, error: None, message: illegal param\",\"status\":-2}
- some html not in /opt/huawei/openresty/nginx/html
- cannot access /opt/huawei/openresty/nginx/conf/ssl/sample/resty-auto-ssl-fallback.pem.Permission denined
- fail to operator sudo, message: send request fail, status code: 400, task: control sudo permission, status: failed
- some certificate not in /opt/huawei/openresty/nginx/conf/ssl
- crontab -l \n+ echo 'Permission denied crontab'
- 资源间绑定服务不一致
-
SLB同步异常相关问题
- 运维中心数据库治理
- 运维中心访问凭据管理服务
- 运营中心
- 管理控制台用户指南(即将下线)
- 业务控制台用户指南(即将下线)
-
运行时引擎用户指南(即将下线)
- AppStage运行时引擎简介
- AppStage运行时引擎使用前准备
- 进入AppStage运行时引擎
- 通过微服务平台管理微服务及相关资源
- 配置运行时引擎负载均衡
- 管理Cloud Map中的服务资源
- 配置运行时引擎数据库治理
- 配置访问凭据管理服务
- 文档下载
- 通用参考
展开导读
链接复制成功!
转发策略配置
本章介绍通过IaC进行转发策略配置的管理,包括监听下的转发策略、健康检查、后端服务器及动态路由管理。对应的资源类型为WiseCloud::LoadBalancer::SLB::RouteRule。
参数名 |
类型 |
是否必选 |
说明 |
---|---|---|---|
listenerGroupName |
String |
是 |
SLB监听名称,一个转发策略实例只能绑定一个监听实例。 |
targetGroups |
List<TargetGroupConfigBean> |
否 |
后端集群 |
routes |
List<RouteRule> |
否 |
转发策略(Locations) |
dynamicRoutes |
List<DynamicRouteRuleBean> |
否 |
动态路由 |
参数名 |
类型 |
是否必选 |
说明 |
---|---|---|---|
name |
String |
是 |
后端集群名,不超过150位,不包含特殊字符。 |
protocol |
String |
是 |
协议,取值为:HTTP或HTTPS。 |
loadBalancer |
是 |
后端集群负载均衡类型 |
|
healthCheck |
否 |
健康检查 |
参数名 |
类型 |
是否必选 |
说明 |
---|---|---|---|
strategy |
String |
是 |
负载均衡算法,支持"roundRobin"、"protocolParam"、"IP_HASH"、"least_conn"。 |
slowStartDelay |
int |
否 |
预热时延,不超过30。 |
slowStartPeriod |
int |
否 |
预热周期,不超过30。 |
slowStartFactor |
int |
否 |
预热因子,默认为10,不小于1,不超过100。 |
hashParam |
String |
否 |
哈希转发字段名,Strategy类型为protocolParam时必填 长度不超过50,由字母加数字,下划线,横杠,点组成。 |
customParam |
String |
否 |
自定义参数,不包含by_lua。 |
默认取第一个后端集群的健康检查配置,如果为空,使用默认值。
参数名 |
类型 |
是否必选 |
说明 |
---|---|---|---|
switchStatus |
String |
否 |
是否开启健康检查,取值为on或off,不填或者其他字符均为off。 |
protocol |
String |
否 |
协议,默认HTTP,不可修改。 |
path |
String |
否 |
检查路径,长度不超过500,由字母、数字、横杠、下划线和点组成。 |
successCodes |
String |
否 |
成功码列表,100-600之间的数字,以逗号隔开。 |
healthyThreshold |
int |
否 |
健康阈值,取值范围2-10,默认为2。 |
interval |
int |
否 |
探测间隔时间,取值范围1-50,默认为5。 |
timeout |
int |
否 |
探测超时时间,取值范围1-300,默认为10。 |
unhealthyThreshold |
int |
否 |
不健康阈值,取值范围2-10,默认为3。 |
参数名 |
类型 |
是否必选 |
说明 |
---|---|---|---|
location |
String |
否 |
转发策略地址,长度不超过500,非中文。 |
targetGroup |
String |
否 |
后端集群名,长度不超过150,由字母、数字、下划线、横杠和点组成。 |
grayServiceName |
String |
否 |
灰度规则 |
degradeUrl |
String |
是 |
降级url
只有值为defaultDegrade时才为默认降级,其他值均认为是不降级。 |
configs |
否 |
通用与高级配置 |
参数名 |
类型 |
是否必选 |
说明 |
---|---|---|---|
name |
String |
是 |
名称,长度不超过50,由字母、数字、下划线、横杠和点组成,不能包含-in-且不能以-in结尾。 |
switchStatus |
String |
是 |
开关,取值为on或off。 |
defaultTargetGroup |
String |
是 |
默认后端集群 |
enableGrey |
String |
是 |
默认后端集群是否仍参考灰度进行分流,取值为on/off,默认为off,只有输入on才为打开状态。 |
rules |
List<DynamicSubRuleBean> |
否 |
动态路由规则 |
locations |
List<String> |
否 |
动态路由关联的转发策略列表。 |
参数名 |
类型 |
是否必选 |
说明 |
---|---|---|---|
condition |
String |
是 |
名称。 |
targetGroup |
String |
是 |
后端集群。 |
enableGray |
String |
是 |
是否仍参考灰度进行分流 , 取值为on/off,默认为off,只有输入on 才为打开状态。 |
参数名 |
类型 |
是否必选 |
说明 |
---|---|---|---|
proxyReadTimeout |
int |
否 |
响应超时时间,不超过10位的数字。 |
proxySendTimeout |
int |
否 |
转发超时时间,不超过10位的数字。 |
keepaliveSwitch |
String |
否 |
启用长连接转发,是否keepalive。 |
hostSwitch |
String |
否 |
是否透传请求头,取值为on/off,不填或者其他字符均为off。 |
xForwardedForSwitch |
String |
否 |
是否追加XFF。 |
accessLogSwitch |
String |
否 |
是否开启access日志,取值为on/off,不填或者其他字符均为off。 |
proxyNextUpstreamSwitch |
String |
否 |
是否在异常时尝试下一台,取值为on/off,不填或者其他字符均为 off。 |
proxyNextUpstreamCondition |
String |
否 |
尝试下一台场景,取值为403、404、429、500、502、503、504、error、timeout、invalid_header。 |
clientConnectionFreeTime |
int |
否 |
客户端连接空闲时间,不超过10位的正整数。 |
proxyBuffersSwitch |
String |
否 |
开启响应缓存,取值为on/off,不填或者其他字符均为off。 |
proxyBuffersSize |
String |
否 |
响应缓存大小,数字+空格+k/m 组成,默认8 k。 |
expiresSwitch |
String |
否 |
高级配置中Expires开关,取值为on/off,不填或者其他字符均为 off。 |
expiresSize |
String |
否 |
设定页面缓存时间,不缓存或一直使用缓存。可以由字母、数字、空格、 $@+- 、冒号、逗号组成,长度不超过50位。 |
indexPage |
String |
否 |
静态页面场景index页面设置,长度不超过255,非中文。 |
returnVal |
String |
否 |
固定返回响应码,长度不超过255,非中文。 |
allowMethod |
String |
否 |
允许的http方法,对于转发策略有效,对于监听仅为参考,在界面新增转发策略时会继承监听的此项配置,其余场景个无效,GET、HEAD、POST、DELETE、PUT、OPTIONS、PATCH、MKCOL、COPY", "MOVE、PROPFIND、PROPPATCH、LOCK、UNLOCK。 |
nuwaTraceSwitch |
String |
否 |
消息头中透传nuwatrace相关的网元身份标识和时间戳。 |
command |
String |
否 |
高级配置,自定义参数设置。 不要直接填写转发到某个集群的名称,例如proxy_pass http://upstreamName,这样配置会使得动态加载配置失效。 nginx配置命令,非中文。 |
root |
String |
否 |
默认资源根目录,长度不超过500,非中文。 |
clientMaxBodySize |
String |
否 |
最大请求体大小,数字+空格+k/m组成。 |
clientBodyBufferSize |
String |
否 |
请求体buffer大小,数字+空格+k/m 组成。 |
addHeaders |
List< GeneralKeyValueConfigBean> |
否 |
响应头。 |
setVals |
List< GeneralKeyValueConfigBean> |
否 |
对应页面set。 |
proxySetHeaders |
List< GeneralKeyValueConfigBean> |
否 |
请求头。 |
redirects |
List< GeneralRedirectConfigBean> |
否 |
重定向。 |
rewrites |
List< GeneralRedirectConfigBean> |
否 |
重写。 |
转发策略模板yaml
- name: hw_test // 必填项,不可修改,不可重复 type: WiseCloud::LoadBalancer::SLB::RouteRule // 资源类型为转发策略配置 properties: routes: // 非必填 - targetGroup: group1 grayServiceName: grayServce_hw location: /abc_hw1 degradeUrl: unDegrade // 必填项,unDegrade不降级,defaultDegrade默认降级 configs: hostSwitch: 'off' addHeaders: - value: b key: aaa clientConnectionFreeTime: 60 rewrites: - source: /test option: break target: /test_hw proxyReadTimeout: 60 setVals: - value: bbb key: aaa keepaliveSwitch: 'off' proxyBuffersSize: 2 m expiresSwitch: 'on' proxyBuffersSwitch: 'on' accessLogSwitch: 'on' clientMaxBodySize: 3 k clientBodyBufferSize: 2 k expiresSize: 2 m proxyNextUpstreamCondition: 'error,timeout' proxySendTimeout: 60 xForwardedForSwitch: 'off' proxyNextUpstreamSwitch: 'on' allowMethod: 'POST,PUT,DELETE' targetGroups: // 非必填 - protocol: HTTP // 必填项 loadBalancer: // 必填项,负载均衡类型 strategy: roundRobin // 必填项,负载均衡策略 healthCheck: // 非必填,健康检查 path: /abc_test protocol: HTTP // 固定项 successCodes: '200,302' healthyThreshold: '2' unhealthyThreshold: '3' switchStatus: 'on' // 默认关闭,on为打开,打开时,不传其他参数均使用默认值 name: group1 // 必填项,并且不可重复,长度不超过150,不包含特殊字符 - protocol: HTTP loadBalancer: hashParam: $xxx strategy: protocolParam customParam: $xxx healthCheck: switchStatus: 'off' name: group2 listenerGroupName: zwx_listener1 // 必填项,SLB监听名称,一个转发策略实例只能绑定一个监听实例 dynamicRoutes: // 非必填 - enableGrey: 'off' defaultTargetGroup: group1 // 必填并且存在于targetGroups中 name: /abc_test1_hw locations: - location: /abc_hw1 rules: - targetGroup: group1 enableGray: 'off' switchStatus: 'on'