mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00

* origin/topic/awelzel/4586-zeromq-ipv6:
cluster/zeromq: Short-circuit DoPublishLogWrite() when not initialized
cluster/zeromq: Hook up and enable IPV6 by default
cluster/zeromq/connect: Make failures fatal
cluster/zeromq: Move log_push creation to DoInit()
(cherry picked from commit cab4ebf513
)
17 lines
640 B
Text
17 lines
640 B
Text
redef Cluster::manager_is_logger = F;
|
|
|
|
const node_ip = 127.0.0.1 &redef;
|
|
|
|
# If ZEEK_CLUSTER_IP is set, populate the cluster-layout's Node$ip fields with it.
|
|
const cluster_ip_env = getenv("BTEST_CLUSTER_IP");
|
|
@if ( cluster_ip_env != "" )
|
|
redef node_ip = to_addr(cluster_ip_env);
|
|
@endif
|
|
|
|
redef Cluster::nodes = {
|
|
["manager"] = [$node_type=Cluster::MANAGER, $ip=node_ip],
|
|
["logger"] = [$node_type=Cluster::LOGGER, $ip=node_ip, $p=to_port(getenv("LOG_PULL_PORT"))],
|
|
["proxy"] = [$node_type=Cluster::PROXY, $ip=node_ip],
|
|
["worker-1"] = [$node_type=Cluster::WORKER, $ip=node_ip],
|
|
["worker-2"] = [$node_type=Cluster::WORKER, $ip=node_ip],
|
|
};
|