From 5fa077cf0dd7c6dab7ab7553ef8a490d46c355cd Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Wed, 28 Apr 2021 18:56:34 -0400 Subject: [PATCH 1/2] config: default UseStreamingBackend to true --- agent/config/builder.go | 2 +- website/content/docs/agent/options.mdx | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/agent/config/builder.go b/agent/config/builder.go index 1238670ea..dd9347834 100644 --- a/agent/config/builder.go +++ b/agent/config/builder.go @@ -1102,7 +1102,7 @@ func (b *builder) Build() (rt RuntimeConfig, err error) { Watches: c.Watches, } - rt.UseStreamingBackend = boolVal(c.UseStreamingBackend) + rt.UseStreamingBackend = boolValWithDefault(c.UseStreamingBackend, true) if rt.Cache.EntryFetchMaxBurst <= 0 { return RuntimeConfig{}, fmt.Errorf("cache.entry_fetch_max_burst must be strictly positive, was: %v", rt.Cache.EntryFetchMaxBurst) diff --git a/website/content/docs/agent/options.mdx b/website/content/docs/agent/options.mdx index 87bee3061..2f72ebd7c 100644 --- a/website/content/docs/agent/options.mdx +++ b/website/content/docs/agent/options.mdx @@ -2208,14 +2208,10 @@ bind_addr = "{{ GetPrivateInterfaces | include \"network\" \"10.0.0.0/8\" | attr currently only supports numeric IDs. - `mode` - The permission bits to set on the file. -- `use_streaming_backend` (experimental) when enabled Consul client agents will use +- `use_streaming_backend` defaults to true. When enabled Consul client agents will use streaming rpc, instead of the traditional blocking queries, for endpoints which support streaming. All servers must have [`rpc.enable_streaming`](#rpc_enable_streaming) enabled before any client can enable `use_streaming_backend`. - At least one of [`dns_config.use_cache`](#dns_use_cache) or - [`http_config.use_cache`](#http_config_use_cache) must be enabled, otherwise - this setting has no effect. - `use_streaming_backend` will default to true in a future version of Consul. - `verify_incoming` - If set to true, Consul requires that all incoming connections make use of TLS and that the client From dd59a8ee70a32cfae004b08b044a25eb0a626599 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Thu, 29 Apr 2021 12:08:03 -0400 Subject: [PATCH 2/2] Add changelog --- .changelog/10149.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/10149.txt diff --git a/.changelog/10149.txt b/.changelog/10149.txt new file mode 100644 index 000000000..7b9b8c7fc --- /dev/null +++ b/.changelog/10149.txt @@ -0,0 +1,3 @@ +```release-note:improvement +streaming: change `use_streaming_backend` to default to true so that streaming is used by default when it is supported. +```