Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 126 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions config/quickwit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,33 @@ version: 0
# - for its gRPC service (TCP)
# - for its Gossip cluster membership service (UDP)
#
# All three services are bound to the same host and different port.
# All three services are bound to the same host and a different port. The host can be an IP address or a hostname.
#
# Default HTTP server host is `127.0.0.1` and default HTTP port is 7280.
# The default host value was chosen to avoid exposing the node to the open-world without users' explicit consent.
# This allows for testing Quickwit in single-node mode or with multiple nodes running on the same host and listening
# on different ports. However, in cluster mode, using this value is never appropriate because it causes the node to
# ignore incoming traffic.
# There are two options to set up a node in cluster mode:
# 1. specify the node's hostname or IP
# 2. pass `0.0.0.0` and let Quickwit do its best to discover the node's IP (see `advertise_address`)
#
# listen_address: 127.0.0.1
# rest_listen_port: 7280
#
# IP address advertised by the node, i.e. the IP address that peer nodes should use to connect to the node for RPCs.
# The environment variable `QW_ADVERTISE_ADDRESS` can also be used to configure this value.
# The default advertise address is `listen_address`. If `listen_address` is unspecified (`0.0.0.0`),
# Quickwit attempts to sniff the node's IP by scanning the available network interfaces.
# advertise_address: 192.168.0.42
#
# In order to join a cluster, one needs to specify a list of
# seeds to connect to. If no port is specified, Quickwit will assume
# the seeds are using the same port as the current node gossip port.
# By default, the peer seed list is empty.
#
# peer_seeds:
# - quickwit-searcher-0.local:10000
# - quickwit-searcher-0.local
# - quickwit-searcher-1.local:10000
#
# Path to directory where temporary data (caches, intermediate indexing data structures)
Expand Down
4 changes: 2 additions & 2 deletions quickwit-cluster/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ pub async fn start_cluster_service(
let member = Member::new(
quickwit_config.node_id.clone(),
unix_timestamp(),
quickwit_config.gossip_public_addr().await?,
quickwit_config.gossip_advertise_addr().await?,
);

let cluster = Cluster::join(
member,
services,
quickwit_config.gossip_listen_addr().await?,
quickwit_config.cluster_id.clone(),
quickwit_config.grpc_public_addr().await?,
quickwit_config.grpc_advertise_addr().await?,
quickwit_config.peer_seed_addrs().await?,
FailureDetectorConfig::default(),
&UdpTransport,
Expand Down
2 changes: 2 additions & 0 deletions quickwit-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ colored = "2"
env_logger = "0.9"
futures = "0.3"
home = "0.5.3"
itertools = "0.10.3"
once_cell = "1"
pnet = { version = "0.31.0", features = [ "std" ] }
prometheus = { version = "0.13", features = ["process"] }
rand = "0.8"
regex = "1"
Expand Down
Loading