mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Lowered keep-alive to trigger load-balancing.
This commit is contained in:
parent
6601334fab
commit
9cbb4da6d6
3 changed files with 8 additions and 6 deletions
|
@ -65,11 +65,11 @@ var (
|
|||
Proxy: nhttp.ProxyFromEnvironment,
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 30 * time.Second,
|
||||
KeepAlive: 30 * time.Second,
|
||||
KeepAlive: 100 * time.Millisecond,
|
||||
DualStack: true,
|
||||
}).DialContext,
|
||||
MaxIdleConns: 100,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
IdleConnTimeout: 100 * time.Millisecond,
|
||||
TLSHandshakeTimeout: 10 * time.Second,
|
||||
ExpectContinueTimeout: 1 * time.Second,
|
||||
}
|
||||
|
@ -77,11 +77,11 @@ var (
|
|||
Proxy: nhttp.ProxyFromEnvironment,
|
||||
DialContext: (&net.Dialer{
|
||||
Timeout: 30 * time.Second,
|
||||
KeepAlive: 30 * time.Second,
|
||||
KeepAlive: 100 * time.Millisecond,
|
||||
DualStack: true,
|
||||
}).DialContext,
|
||||
MaxIdleConns: 100,
|
||||
IdleConnTimeout: 90 * time.Second,
|
||||
IdleConnTimeout: 100 * time.Millisecond,
|
||||
TLSHandshakeTimeout: 10 * time.Second,
|
||||
ExpectContinueTimeout: 1 * time.Second,
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
|
|
|
@ -26,7 +26,7 @@ import (
|
|||
"context"
|
||||
"reflect"
|
||||
"testing"
|
||||
//"time"
|
||||
"time"
|
||||
|
||||
"github.com/dchest/uniuri"
|
||||
|
||||
|
@ -250,6 +250,7 @@ func LoadBalancingCursorSubtest(t *testing.T, useVst bool) {
|
|||
if (wasForwarded(&r)) {
|
||||
someRequestForwarded = true
|
||||
}
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
}
|
||||
if len(result) != len(test.ExpectedDocuments) {
|
||||
t.Errorf("Expected %d documents, got %d in query %d (%s)", len(test.ExpectedDocuments), len(result), i, test.Query)
|
||||
|
|
|
@ -103,7 +103,8 @@ func createArangodVSTConfigForDNSNames(ctx context.Context, cli corev1.CoreV1Int
|
|||
tlsConfig = &tls.Config{InsecureSkipVerify: true}
|
||||
}
|
||||
transport := vstProtocol.TransportConfig{
|
||||
Version: vstProtocol.Version1_1,
|
||||
IdleConnTimeout: 100 * time.Millisecond,
|
||||
Version: vstProtocol.Version1_1,
|
||||
}
|
||||
connConfig := vst.ConnectionConfig{
|
||||
TLSConfig: tlsConfig,
|
||||
|
|
Loading…
Reference in a new issue