从WAR / JAR文件安装Hysterix涡轮机

时间:2017-12-15 05:55:02

标签: java maven tomcat netflix

我是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的新手。所以任何帮助安装这个将非常感激。

1 个答案:

答案 0 :(得分:1)

简单步骤-

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

    $ json="{\"name\":\"Erci\"}" $ redis-cli JSON.SET etat . "$json" OK $ redis-cli JSON.GET etat "{\"name\":\"Erci\"}"

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

    CATALINA_OPTS="-Darchaius.configurationSource.additionalUrls=file:///home/mukulbansal/Downloads/oauth-stuff/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}

更多信息here

相关问题