base/frameworks/cluster/types.zeek
- Cluster
- Namespace:
Cluster
Summary
Redefinable Options
|
The default maximum queue size for WebSocket event dispatcher instances. |
The default ping interval for WebSocket clients. |
Types
Information about a WebSocket endpoint. |
|
An event instance for cluster pub/sub. |
|
Record to represent a cluster node including its name. |
|
Network information of an endpoint. |
|
Record type to indicate a node in a cluster. |
|
Types of nodes that are allowed to participate in the cluster configuration. |
|
WebSocket server options to pass to |
|
The TLS options for a WebSocket server. |
Detailed Interface
Redefinable Options
- Cluster::default_websocket_max_event_queue_size
-
The default maximum queue size for WebSocket event dispatcher instances.
If the maximum queue size is reached, events from external WebSocket clients will be stalled and processed once the queue has been drained.
An internal metric named
cluster_onloop_queue_stallsand labeled with aWebSocketEventDispatcher:<host>:<port>tag is incremented when the maximum queue size is reached.
- Cluster::default_websocket_ping_interval
-
The default ping interval for WebSocket clients.
Types
- Cluster::EndpointInfo
- Type:
- Fields:
-
-
network:
Cluster::NetworkInfo
-
network:
Information about a WebSocket endpoint.
- Cluster::Event
- Type:
- Fields:
An event instance for cluster pub/sub.
See
Cluster::publishandCluster::make_event.
- Cluster::NamedNode
- Type:
- Fields:
-
-
node:
Cluster::Node
-
node:
Record to represent a cluster node including its name.
- Cluster::NetworkInfo
- Type:
- Fields:
Network information of an endpoint.
- Cluster::Node
- Type:
- Fields:
-
node_type:
Cluster::NodeType Identifies the type of cluster node in this node’s configuration.
-
zone_id:
string&default=""&optional If the ip field is a non-global IPv6 address, this field can specify a particular RFC 4007
zone_id.
-
p:
port&default=0/unknown&optional The port that this node will listen on for peer connections. A value of
0/unknownmeans the node is not pre-configured to listen.
-
node_type:
Record type to indicate a node in a cluster.
- Cluster::NodeType
- Type:
-
- Cluster::NONE
A dummy node type indicating the local node is not operating within a cluster.
- Cluster::CONTROL
A node type which is allowed to view/manipulate the configuration of other nodes in the cluster.
- Cluster::LOGGER
A node type responsible for log management.
- Cluster::MANAGER
A node type responsible for policy management.
- Cluster::PROXY
A node type for relaying worker node communication and synchronizing worker node state.
- Cluster::WORKER
The node type doing all the actual traffic analysis.
Types of nodes that are allowed to participate in the cluster configuration.
- Cluster::WebSocketServerOptions
- Type:
- Fields:
-
-
max_event_queue_size:
count&default=Cluster::default_websocket_max_event_queue_size&optional The maximum event queue size for this server.
-
ping_interval:
interval&default=Cluster::default_websocket_ping_interval&optional Ping interval to use. A WebSocket client not responding to the pings will be disconnected. Set to a negative value to disable pings. Subsecond intervals are currently not supported.
-
tls_options:
Cluster::WebSocketTLSOptions&default= ...&optional The TLS options used for this WebSocket server. By default, TLS is disabled. See also
Cluster::WebSocketTLSOptions.
-
max_event_queue_size:
WebSocket server options to pass to
Cluster::listen_websocket.
- Cluster::WebSocketTLSOptions
- Type:
- Fields:
The TLS options for a WebSocket server.
If cert_file and key_file are set, TLS is enabled. If both are unset, TLS is disabled. Any other combination is an error.