Module: Kumonos::Clusters

Defined in:
lib/kumonos/clusters.rb

Overview

Generate clusters configuration.

Defined Under Namespace

Classes: CircuitBreaker, Cluster, OutlierDetection

Class Method Summary collapse

Class Method Details

.generate(definition) ⇒ Object



7
8
9
10
11
# File 'lib/kumonos/clusters.rb', line 7

def generate(definition)
  {
    clusters: definition['dependencies'].map { |s| Cluster.build(s).to_h }
  }
end