diff --git a/model/config.go b/model/config.go index af43745188..11038dfb32 100644 --- a/model/config.go +++ b/model/config.go @@ -814,6 +814,7 @@ type ClusterSettings struct { AdvertiseAddress *string `access:"environment,write_restrictable,cloud_restrictable"` UseIpAddress *bool `access:"environment,write_restrictable,cloud_restrictable"` UseExperimentalGossip *bool `access:"environment,write_restrictable,cloud_restrictable"` + EnableGossipCompression *bool `access:"environment,write_restrictable,cloud_restrictable"` EnableExperimentalGossipEncryption *bool `access:"environment,write_restrictable,cloud_restrictable"` ReadOnlyConfig *bool `access:"environment,write_restrictable,cloud_restrictable"` GossipPort *int `access:"environment,write_restrictable,cloud_restrictable"` @@ -860,6 +861,10 @@ func (s *ClusterSettings) SetDefaults() { s.EnableExperimentalGossipEncryption = NewBool(false) } + if s.EnableGossipCompression == nil { + s.EnableGossipCompression = NewBool(true) + } + if s.ReadOnlyConfig == nil { s.ReadOnlyConfig = NewBool(true) } diff --git a/services/telemetry/telemetry.go b/services/telemetry/telemetry.go index a318914bd0..bea38fbbbe 100644 --- a/services/telemetry/telemetry.go +++ b/services/telemetry/telemetry.go @@ -688,6 +688,7 @@ func (ts *TelemetryService) trackConfig() { "use_ip_address": *cfg.ClusterSettings.UseIpAddress, "use_experimental_gossip": *cfg.ClusterSettings.UseExperimentalGossip, "enable_experimental_gossip_encryption": *cfg.ClusterSettings.EnableExperimentalGossipEncryption, + "enable_gossip_compression": *cfg.ClusterSettings.EnableGossipCompression, "read_only_config": *cfg.ClusterSettings.ReadOnlyConfig, })