feature: log queue and buffer memory size configuration (#6591)

* feature: log queue and buffer memory size configuration

Signed-off-by: chenyuliang5 <chenyuliang@jd.com>
This commit is contained in:
chenylh
2024-10-01 23:49:59 +08:00
committed by GitHub
parent 6efa95ca98
commit ae0b79313b
6 changed files with 86 additions and 56 deletions

View File

@@ -60,7 +60,7 @@ func TestTransport(t *testing.T) {
wg.Done()
}()
dio := newIO(param[0], l.Addr().String())
dio := newIO(param[0], l.Addr().String(), 1, 1)
dio.tcpTimeout = 10 * time.Millisecond
dio.flushTimeout = 30 * time.Millisecond
dio.connect()
@@ -89,7 +89,7 @@ func TestRace(t *testing.T) {
wg.Done()
}()
dio := newIO("tcp", l.Addr().String())
dio := newIO("tcp", l.Addr().String(), 1, 1)
dio.tcpTimeout = 10 * time.Millisecond
dio.flushTimeout = 30 * time.Millisecond
dio.connect()
@@ -122,7 +122,7 @@ func TestReconnect(t *testing.T) {
}()
addr := l.Addr().String()
dio := newIO("tcp", addr)
dio := newIO("tcp", addr, 1, 1)
dio.tcpTimeout = 10 * time.Millisecond
dio.flushTimeout = 30 * time.Millisecond
dio.connect()