项目作者: FreifeldRoyi

项目描述 :
Simple discovery service
高级语言: Java
项目地址: git://github.com/FreifeldRoyi/Captain.git
创建时间: 2017-09-06T08:22:53Z
项目社区:https://github.com/FreifeldRoyi/Captain

开源协议:Apache License 2.0

下载


Captain

Service Discovery

Getting started

….

Config

Environment variables

In order to start this service, one must provide the following environment variables:

Note the formatting for each var

  • ZOOKEEPER_ADDRESS - <host>:<port>,<host>:<port>... - A list (separated by a comma) of zookeeper nodes
  • ZOOKEEPER_CONNECTION_RETRY_MS - milliseconds - An integer representing the milliseconds between each connection retry
  • DISCOVERY_SERVICE_NAME - string - A string representing the name of this service (The ServiceDiscovery service)
  • HEARTBEAT_THRESHOLD - milliseconds - An integer representing the amount of milliseconds that a service is considered alive