检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
请求Header参数 参数 是必选 参数类型 描述 Authorization 否 String 若ServiceComb引擎专享版开启了安全认证,此参数必填。否则,无此参数。 开启了安全认证的ServiceComb引擎专享版Token,格式为: Authorization:Bearer {Token}
服务治理概述 服务治理是一个非常宽泛的概念,一般指独立于业务逻辑之外,给系统提供一些可靠运行的系统保障措施。针对微服务场景下的常用故障模式,提供的保障措施包括: 负载均衡管理:提供多实例情况下的负载均衡策略管理,比如采用轮询的方式保障流量在不同实例均衡。当一个实例发生故障的时候,
不支持二级域名模糊(如:www.*.com)、多处模糊(如:*.example.*)和部分模糊(如:example.co*)。 选择模式。 选择“标准模式”,默认为标准模式,其协议默认选择“HTTP”。 在域名管理的基础上,若需要具备选择HTTPS证书的能力,则协议选择“HTTPS”,需进行如下参数配置。
Nacos引擎版本 Spring Cloud Alibaba版本 Spring Cloud版本 Spring Boot版本 2.1.0.x 2022.0.0.0-RC* Spring Cloud 2022.0.0 3.0.0 2021.0.4.0* Spring Cloud 2021.0.4 2
通过Spring Cloud Huawei SDK托管Spring Cloud应用 概述 快速接入ServiceComb引擎 合理的规划系统架构 三方软件版本管理策略 开发环境规划管理 应用逻辑隔离管理 配置文件加密方案 合理规划服务治理 常见问题 父主题: ServiceComb引擎托管应用
基于Spring Cloud其他开发体系,例如Spring Cloud Alibaba、Spring Cloud Azure等构建的云原生应用,使用Spring Cloud Huawei迁移到华为云运行。 通过Sermant Agent托管Spring Cloud应用 CSE提供Sermant
RELEASE兼容性问题 动态配置常见问题 注册中心地址错误 同一应用和环境下的不同服务无法互相调用 父主题: 通过Spring Cloud Huawei SDK托管Spring Cloud应用
首先确定选用的Spring Cloud Huawei的版本,然后查询Spring Cloud Huawei版本对应的Spring Boot版本和Spring Cloud版本。Spring Cloud Huawei一般建议使用当前最新版本,配套的Spring Boot版本和Spring Cloud版本可以在Spring
器上部署的微服务无法相互访问。为了避免冲突,云上测试环境只作为本地开发环境使用。 父主题: 通过Spring Cloud Huawei SDK托管Spring Cloud应用
本章节介绍的开发方法,可以在Spring Cloud Huawei Samples项目中找到对应的代码,供您在开发过程中参考。 Spring Cloud接入ServiceComb引擎需要使用Spring Cloud Huawei,本文主要描述如何在Spring Cloud中集成和使用Spring Cloud Huawei。
合理规划服务治理 滚动升级 父主题: 通过Spring Cloud Huawei SDK托管Spring Cloud应用
ue来定义配置。例如某些配置,是对所有应用共享的,那么就可以使用这个机制。在配置文件增加如下配置(以Spring Cloud为例): spring: cloud: servicecomb: config: kie: customLabel:
ServiceComb引擎1.x不支持yaml格式,可以通过Spring Cloud Huawei适配,来使用yaml,需要在微服务bootstrap中增加如下配置: spring: cloud: servicecomb: config:
殊标记,如果没有该标记,代表使用明文。 环境变量注入方式 spring_cloud_servicecomb_credentials_account_name = ENC(账号名密文) spring_cloud_servicecomb_credentials_account_password
配置路由规则 前提条件 Spring Cloud应用已注册到ServiceComb引擎。 下发路由规则配置 下发路由规则配置,详情请参考配置管理。 路由规则说明示例: --- - precedence: 2 # 优先级,数字越大,优先级越高。 match:
y-demo/spring-cloud-registry-demo/spring-cloud-registry-provider/target spring-cloud-registry-provider.jar 服务生产者 把spring-cloud-registry-consumer
“添加标签”弹框,可单击“ 新增标签”同时添加多个标签,也可单击标签后的,删除该标签。 安全认证 开启了“安全认证”的ServiceComb引擎专享版,通过微服务引擎控制台提供了基于RBAC(Role-Based Access Control,基于角色的访问控制)的系统管理功能。
注册中心地址错误 问题描述 当使用Spring Cloud Huawei时,启动微服务时,当报错示例如下: send request to https://192.168.10.1:30100/v4/default/registry/microservices failed and
curl ${endpoint}/stat 下图为某个时刻统计的调用结果: 上图中实例x.x.0.55:8009关闭了优雅上线, 实例x.x.0.51:8004开启了优雅上线,观察请求数(requestCount)与QPS,可观察到开启优雅上线的实例的QPS与请求数都小于关闭优雅上
业务场景治理 ServiceComb引擎针对不同的微服务开发框架,比如Spring Cloud、Java Chassis等设计了统一的基于动态配置的流量特征治理。通过在开发框架中引入相关治理组件,即可使用微服务引擎的微服务治理功能。 ServiceComb引擎业务场景治理分为创建