私はパペットが初めてで、本当に助けが必要です:
アプリケーションの my_app.pp 値に次の値があります。
akka_application_cluster_seed_nodes => '"akka.tcp://ActorSystem@host1:2551","akka.tcp://ActorSystem@host2:2551","akka.tcp://ActorSystem@host3:2551"'
今私のerbファイルのmin-nr-of-members
値は、配列のサイズをakka_application_cluster_seed_nodes
2プラス1で割ることによって計算する必要があります
$min-nr-of-members = $akka_application_cluster_seed_nodes.size/2 +1
例えば:
auto-down-unreachable-after = <%= get_param('akka_cluster_auto_down_unreachable_after')%>
and something like this:
<% $cluster= get_param('akka_cluster_auto_down_unreachable_after') %>
<% $minNumOfNodes = ($cluster.size / 2)+1 %>
min-nr-of-members = <% $minNumOfNodes %>
助けていただけますか?