Fix initialization and backward compatibility issue for GRPC compression (#27894)

Signed-off-by: jaime <yun.zhang@zilliz.com>
pull/27902/head
jaime 2023-10-24 22:14:14 +08:00 committed by GitHub
parent ee184a709e
commit 4640928280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 2 deletions

View File

@ -443,7 +443,7 @@ grpc:
serverMaxSendSize: 536870912 serverMaxSendSize: 536870912
serverMaxRecvSize: 536870912 serverMaxRecvSize: 536870912
client: client:
compressionEnabled: true compressionEnabled: false
dialTimeout: 200 dialTimeout: 200
keepAliveTime: 10000 keepAliveTime: 10000
keepAliveTimeout: 20000 keepAliveTimeout: 20000

View File

@ -42,6 +42,7 @@ import (
"github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/internalpb"
"github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/internal/util/dependency" "github.com/milvus-io/milvus/internal/util/dependency"
_ "github.com/milvus-io/milvus/internal/util/grpcclient"
"github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/tracer" "github.com/milvus-io/milvus/pkg/tracer"
"github.com/milvus-io/milvus/pkg/util" "github.com/milvus-io/milvus/pkg/util"

View File

@ -43,6 +43,7 @@ import (
"github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/internal/util/componentutil" "github.com/milvus-io/milvus/internal/util/componentutil"
"github.com/milvus-io/milvus/internal/util/dependency" "github.com/milvus-io/milvus/internal/util/dependency"
_ "github.com/milvus-io/milvus/internal/util/grpcclient"
"github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/tracer" "github.com/milvus-io/milvus/pkg/tracer"
"github.com/milvus-io/milvus/pkg/util/etcd" "github.com/milvus-io/milvus/pkg/util/etcd"

View File

@ -40,6 +40,7 @@ import (
"github.com/milvus-io/milvus/internal/proto/internalpb" "github.com/milvus-io/milvus/internal/proto/internalpb"
"github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/internal/util/dependency" "github.com/milvus-io/milvus/internal/util/dependency"
_ "github.com/milvus-io/milvus/internal/util/grpcclient"
"github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/tracer" "github.com/milvus-io/milvus/pkg/tracer"
"github.com/milvus-io/milvus/pkg/util/etcd" "github.com/milvus-io/milvus/pkg/util/etcd"

View File

@ -61,6 +61,7 @@ import (
"github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/internal/util/componentutil" "github.com/milvus-io/milvus/internal/util/componentutil"
"github.com/milvus-io/milvus/internal/util/dependency" "github.com/milvus-io/milvus/internal/util/dependency"
_ "github.com/milvus-io/milvus/internal/util/grpcclient"
"github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/tracer" "github.com/milvus-io/milvus/pkg/tracer"
"github.com/milvus-io/milvus/pkg/util" "github.com/milvus-io/milvus/pkg/util"

View File

@ -43,6 +43,7 @@ import (
"github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/internal/util/componentutil" "github.com/milvus-io/milvus/internal/util/componentutil"
"github.com/milvus-io/milvus/internal/util/dependency" "github.com/milvus-io/milvus/internal/util/dependency"
_ "github.com/milvus-io/milvus/internal/util/grpcclient"
"github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/tracer" "github.com/milvus-io/milvus/pkg/tracer"
"github.com/milvus-io/milvus/pkg/util" "github.com/milvus-io/milvus/pkg/util"

View File

@ -40,6 +40,7 @@ import (
qn "github.com/milvus-io/milvus/internal/querynodev2" qn "github.com/milvus-io/milvus/internal/querynodev2"
"github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/internal/util/dependency" "github.com/milvus-io/milvus/internal/util/dependency"
_ "github.com/milvus-io/milvus/internal/util/grpcclient"
"github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/tracer" "github.com/milvus-io/milvus/pkg/tracer"
"github.com/milvus-io/milvus/pkg/util/etcd" "github.com/milvus-io/milvus/pkg/util/etcd"

View File

@ -43,6 +43,7 @@ import (
"github.com/milvus-io/milvus/internal/rootcoord" "github.com/milvus-io/milvus/internal/rootcoord"
"github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/internal/util/dependency" "github.com/milvus-io/milvus/internal/util/dependency"
_ "github.com/milvus-io/milvus/internal/util/grpcclient"
"github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/tracer" "github.com/milvus-io/milvus/pkg/tracer"
"github.com/milvus-io/milvus/pkg/util" "github.com/milvus-io/milvus/pkg/util"

View File

@ -46,7 +46,7 @@ const (
DefaultMaxAttempts = 10 DefaultMaxAttempts = 10
DefaultInitialBackoff float64 = 0.2 DefaultInitialBackoff float64 = 0.2
DefaultMaxBackoff float64 = 10 DefaultMaxBackoff float64 = 10
DefaultCompressionEnabled bool = true DefaultCompressionEnabled bool = false
ProxyInternalPort = 19529 ProxyInternalPort = 19529
ProxyExternalPort = 19530 ProxyExternalPort = 19530