【问题标题】:Installing Hysterix turbine from WAR/JAR file从 WAR/JAR 文件安装 Hysterix 涡轮机
【发布时间】:2018-05-29 07:44:44
【问题描述】:

我是一名 sydadmin,正在评估 Hysterix Turbine。

https://github.com/Netflix/Turbine/wiki/Getting-Started-(1.x)

它以 war/jar 文件的形式提供。

下载后目录结构是这样的

$ ls turbine-4.0
conf  lib  LICENSE  NOTICE  README.txt  site  sql  turbine-4.0.jar

如何安装它。如果我下载tomcat并将上面的内容放到deploy目录下,可以吗?

我是JAVATomcat 的新手。因此,任何帮助安装它都将受到高度赞赏。

【问题讨论】:

    标签: java maven tomcat netflix


    【解决方案1】:

    简单的步骤-

    1. here 下载war 文件。如果您是绝对新手,请使用 0.5 版。 0.0.1 版有奇怪的行为,它在同一台机器上运行多个应用程序实例时给出 IOException。
    2. 然后您应该将war 文件部署到您的tomcat,只需将它放在tomcat 的webapps 文件夹中并启动服务器。如果您的战争名称是 turbine.war,您应该可以在 http://localhost:8080/turbine/turbine.stream?cluster={cluster-name} 查看汇总日志
    3. 在部署 turbine.war 之前,请确保在 bin 文件夹中的 catalina.sh 中配置 archaius.properties 的文件路径雄猫。就像是-

      CATALINA_OPTS="-Darchaius.configurationSource.additionalUrls=file:///home/mukulbansal/Downloads/oauth-stuff/turbine-archaius.properties"

      turbine-archaius.properties 的内容可能类似于-

      turbine.aggregator.clusterConfig={cluster-name}

      turbine.instanceUrlSuffix.user-write=/hystrix.stream

      turbine.ConfigPropertyBasedDiscovery.{cluster-name}.instances={IP:port-of-application-producing-hystrix-event-stream}

      turbine.InstanceMonitor.eventStream.skipLineLogic.enabled=false

    更多信息可以在here找到。

    【讨论】:

      猜你喜欢
      • 2019-01-07
      • 2011-03-22
      • 2011-01-25
      • 2015-03-16
      • 2016-04-26
      • 1970-01-01
      • 2012-11-16
      • 1970-01-01
      相关资源
      最近更新 更多