Skip to content

Commit

Permalink
MB-47457: [BP] NetworkType:default for gocbcore Agent/DCPAgent configs
Browse files Browse the repository at this point in the history
+ This will essentially force agents belonging to FTS to always
  use the internal IP for communication with KV and cluster manager.

(Reviewed-on: http://review.couchbase.org/c/cbgt/+/157795)

Change-Id: If0dc93f92d401a8e9f5b5707cd10ed2fd358c141
Reviewed-on: http://review.couchbase.org/c/cbgt/+/159057
Well-Formed: Restriction Checker
Reviewed-by: Sreekanth Sivasankaran <sreekanth.sivasankaran@couchbase.com>
Tested-by: Abhinav Dangeti <abhinav@couchbase.com>
  • Loading branch information
abhinavdangeti committed Aug 11, 2021
1 parent 48f9561 commit 569ca44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions feed_dcp_gocbcore.go
Expand Up @@ -331,6 +331,7 @@ func setupDCPAgentConfig(
Auth: auth,
ConnectTimeout: GocbcoreConnectTimeout,
KVConnectTimeout: GocbcoreKVConnectTimeout,
NetworkType: "default",
UseCollections: true,
UseOSOBackfill: useOSOBackfill,
UseStreamID: useStreamID,
Expand Down
1 change: 1 addition & 0 deletions gocbcore_utils.go
Expand Up @@ -52,6 +52,7 @@ func setupAgentConfig(name, bucketName string,
Auth: auth,
ConnectTimeout: GocbcoreConnectTimeout,
KVConnectTimeout: GocbcoreKVConnectTimeout,
NetworkType: "default",
UseCollections: true,
}
}
Expand Down

0 comments on commit 569ca44

Please sign in to comment.