VictoriaMetrics/lib/netutil
Zakhar Bessarab 84184b707a
app/cluster: communicate node IDs when performing a handshake
Send a node ID of vmstorage as a part of vmselect and vminsert handshakes.
Use vmstorage node ID as an identifier for consistent hashing at vminsert.

Cluster native endpoints calculate vminsert and vmselect node IDs as a hash of all underlying storage node IDs, so that it will also remain consistent in case of address changes.

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
2024-07-29 12:29:20 +04:00
..
conn.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:05:46 +02:00
conn_pool.go app/cluster: communicate node IDs when performing a handshake 2024-07-29 12:29:20 +04:00
conn_pool_test.go Add vmstorageUserTimeout flags to configure TCP user timeout (Linux) (#4423) 2023-08-29 11:46:39 +02:00
dns.go app/vmselect: add support for vmstorage groups with independent -replicationFactor per group 2023-12-13 00:14:34 +02:00
dns_test.go app/{vminsert,vmselect}: support for srv+addr scheme for specifying DNS SRV addresses at -storageNode flag 2024-04-17 23:15:05 +02:00
netutil.go app/vmauth: fix discovering backend IPs when url_prefix contains hostname with srv+ prefix (#6401) 2024-06-12 11:47:44 +02:00
proxyprotocol.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-26 09:44:40 +02:00
proxyprotocol_test.go app,lib: fix typos in comments (#3804) 2023-02-13 09:32:35 -08:00
statdial.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:05:46 +02:00
statdial_test.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:05:46 +02:00
tcpdialer.go all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-03 03:00:45 +03:00
tcpdialer_default.go all: cleanup: remove // +build ... lines, since they are no longer needed after Go1.17, and the minimum supported Go version for VictoriaMetrics source code is Go1.20 2023-11-13 19:15:42 +01:00
tcpdialer_linux.go app/{vminsert,vmselect}: follow-up after 2b7b3293c1 2023-08-29 12:17:39 +02:00
tcplistener.go docs: follow-up after aec4b5db81 (#4638) 2023-07-19 14:48:17 -07:00
tls.go lib/netutil: move creation of GetCertificate callback into a separate function 2024-04-17 22:11:10 +02:00
tls_test.go all: upgrade Go builder from Go1.21.7 to Go1.22.0 2024-02-12 22:14:00 +02:00