module HoundDog
Overview
Transparently manage service discovery through consistent hashing and ETCD
Included Modules
- Habitat::SettingsHelpers
- Habitat::TempConfig
Defined in:
hound-dog.crhound-dog/discovery.cr
hound-dog/service.cr
hound-dog/settings.cr
Constant Summary
-
HABITAT_SETTINGS =
[{decl: service_namespace : String = ENV["HD_SERVICE_NAMESPACE"]? || "service", example: nil, validation: nil}, {decl: etcd_host : String = ENV["ETCD_HOST"]? || "127.0.0.1", example: nil, validation: nil}, {decl: etcd_port : Int32 = (ENV["ETCD_PORT"]? || 2379).to_i, example: nil, validation: nil}, {decl: etcd_ttl : Int64 = (ENV["ETCD_TTL"]? || 15).to_i64, example: nil, validation: nil}] of Nil
-
Log =
::Log.for(self)
Class Method Summary
- .configure(&)
-
.etcd_client
Single connection
-
.etcd_client(&)
Yield etcd connection, closing after block returns
- .settings