当前位置: 首页 > news >正文

网站建设商城网站推广策划思路是什么

网站建设商城,网站推广策划思路是什么,荥阳市,广告公司好听的名字一、Hystrix Turbine简介 看单个的Hystrix Dashboard的数据并没有什么多大的价值#xff0c;要想看这个系统的Hystrix Dashboard数据就需要用到Hystrix Turbine。Hystrix Turbine将每个服务Hystrix Dashboard数据进行了整合。Hystrix Turbine的使用非常简单#xff0c;只需要…一、Hystrix Turbine简介 看单个的Hystrix Dashboard的数据并没有什么多大的价值要想看这个系统的Hystrix Dashboard数据就需要用到Hystrix Turbine。Hystrix Turbine将每个服务Hystrix Dashboard数据进行了整合。Hystrix Turbine的使用非常简单只需要引入相应的依赖和加上注解和配置就可以了。 二、准备工作 本文使用的工程为上一篇文章的工程在此基础上进行改造。因为我们需要多个服务的Dashboard所以需要再建一个服务取名为service-lucy它的基本配置同service-hi具体见源码,在这里就不详细说明。 三、创建service-turbine 引入相应的依赖 dependenciesdependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-eureka-client/artifactId/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-web/artifactId/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-actuator/artifactId/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-hystrix/artifactId/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-hystrix-dashboard/artifactId/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-turbine/artifactId/dependency/dependencies 在其入口类ServiceTurbineApplication加上注解EnableTurbine开启turbineEnableTurbine注解包含了EnableDiscoveryClient注解即开启了注册服务。 SpringBootApplicationEnableEurekaClientEnableDiscoveryClientRestControllerEnableHystrixEnableHystrixDashboardEnableCircuitBreakerEnableTurbinepublic class ServiceTurbineApplication {/*** http://localhost:8764/turbine.stream*/public static void main(String[] args) {SpringApplication.run( ServiceTurbineApplication.class, args );}} 配置文件application.yml spring:application.name: service-turbineserver:port: 8769security.basic.enabled: falseturbine:aggregator:clusterConfig: default # 指定聚合哪些集群多个使用,分割默认为default。可使用http://.../turbine.stream?cluster{clusterConfig之一}访问appConfig: service-hi,service-la ### 配置Eureka中的serviceId列表表明监控哪些服务clusterNameExpression: new String(default)# 1. clusterNameExpression指定集群名称默认表达式appName此时turbine.aggregator.clusterConfig需要配置想要监控的应用名称# 2. 当clusterNameExpression: default时turbine.aggregator.clusterConfig可以不写因为默认就是default# 3. 当clusterNameExpression: metadata[cluster]时假设想要监控的应用配置了eureka.instance.metadata-map.cluster: ABC则需要配置同时turbine.aggregator.clusterConfig: ABCeureka:client:serviceUrl:defaultZone: http://localhost:8761/eureka/配置文件注解写的很清楚。 Turbine演示 ​ 依次开启server、service-hi、service-la、service-turbine工程。 打开浏览器输入http://localhost:8769/turbine.stream ​ 依次请求 http://localhost:8762/hi?namewhhttp://localhost:8763/hi?namewh​ 打开:http://localhost:8763/hystrix,输入监控流http://localhost:8769/turbine.stream ​ 可以看到这个页面聚合了2个service的hystrix dashbord数据。
http://www.dnsts.com.cn/news/73011.html

相关文章:

  • 专业的网站建设收费标准做网站域名多少钱
  • 医院网站站群建设百度一下百度
  • 微信 app 微网站 整合wordpress调用昵称
  • 评级网站怎么做去掉wordpress
  • 在门户网站中营销者通过制作什么漫画网站做任务给金币
  • 做网站需要什么设备百度广告投放技巧
  • 电子商务型网站湖南网站推广哪家专业
  • 开网站卖茶要怎么做德清县住房和城乡建设局网站
  • 帝国cms 仿站 wordpress如何做一个app软件需要多少钱
  • 好看欧美视频网站模板下载 迅雷下载地址东莞网站快速排名优化
  • 做网站开发所需的知识技能wordpress页面上分页
  • 汽车网站开发思路四川冠辰科技
  • 无锡百度网站推广15.下面对网站结构描述正确的是( )
  • 专业网站制作团队专业网站制作团队广告创意设计模板
  • 济南槐荫网站开发公司各种浏览器大全
  • 我男同同性做视频网站网站建设需要的软件
  • 做网站公司哪个好宁夏网站建设电话
  • 食品网站建设规划今天重大国际新闻
  • 高邮市城乡建设局网站老河口市网站
  • 苏中建设 官方网站做好网站建设静态化
  • 漫画驿站网页设计图纸尺寸图对战平台网站怎么建设
  • 用html做网站免费网店代运营
  • 温州专业微网站制作多少钱wordpress自动标签链接
  • 高密营销型网站建设公司网站建设价格低
  • 珠海网站建设招聘应用软件开发公司
  • 东莞网站建设优化排名网站发帖推广平台
  • 网站的内部优化公司网站建设评判标准
  • 有做微信婚介网站的吗wordpress如何换成经典编辑器
  • 网站建设与制作过程现在流行的网站开发语言
  • 沈阳房地产网站开发中国建设银行网站首页e路护航