Skip to content

Commit

Permalink
[chore] adapt load tests limits according to results
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Feb 24, 2025
1 parent 61b4667 commit fc9c075
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions internal/testbed/load/tests/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestLog10kDPS(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 30,
ExpectedMaxCPU: 20,
ExpectedMaxRAM: 120,
},
attrCount: 0,
Expand Down Expand Up @@ -79,7 +79,7 @@ func TestLogSyslog(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 130,
ExpectedMaxCPU: 20,
ExpectedMaxRAM: 130,
},
attrCount: 25,
Expand All @@ -98,7 +98,7 @@ func TestLogSyslog(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 130,
ExpectedMaxCPU: 20,
ExpectedMaxRAM: 120,
},
attrCount: 25,
Expand All @@ -121,7 +121,7 @@ func TestLogSyslog(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 130,
ExpectedMaxCPU: 100,
ExpectedMaxRAM: 120,
},
attrCount: 25,
Expand All @@ -140,7 +140,7 @@ func TestLogSyslog(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 130,
ExpectedMaxCPU: 80,
ExpectedMaxRAM: 120,
},
attrCount: 25,
Expand Down
16 changes: 8 additions & 8 deletions internal/testbed/load/tests/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestMetric10kDPS(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 60,
ExpectedMaxCPU: 25,
ExpectedMaxRAM: 150,
},
attrCount: 25,
Expand All @@ -74,7 +74,7 @@ func TestMetric10kDPS(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 60,
ExpectedMaxCPU: 25,
ExpectedMaxRAM: 150,
},
attrCount: 25,
Expand Down Expand Up @@ -121,7 +121,7 @@ func TestMetric100kDPS(t *testing.T) {
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 70,
ExpectedMaxRAM: 150,
ExpectedMaxRAM: 130,
},
attrCount: 25,
attrSizeByte: 20,
Expand All @@ -141,7 +141,7 @@ func TestMetric100kDPS(t *testing.T) {
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 105,
ExpectedMaxRAM: 150,
ExpectedMaxRAM: 120,
},
attrCount: 25,
attrSizeByte: 20,
Expand Down Expand Up @@ -181,7 +181,7 @@ func TestPrometheusMetric(t *testing.T) {
receiver: testbed.NewOTLPDataReceiver(testutil.GetAvailablePort(t)),
extendedLoadOptions: ExtendedLoadOptions{
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 70,
ExpectedMaxCPU: 10,
ExpectedMaxRAM: 140,
MaxConsecutiveFailures: 2,
},
Expand All @@ -206,7 +206,7 @@ func TestPrometheusMetric(t *testing.T) {
receiver: testbed.NewOTLPDataReceiver(testutil.GetAvailablePort(t)),
extendedLoadOptions: ExtendedLoadOptions{
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 70,
ExpectedMaxCPU: 50,
ExpectedMaxRAM: 350,
MaxConsecutiveFailures: 2,
},
Expand All @@ -232,7 +232,7 @@ func TestPrometheusMetric(t *testing.T) {
extendedLoadOptions: ExtendedLoadOptions{
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 150,
ExpectedMaxRAM: 350,
ExpectedMaxRAM: 250,
MaxConsecutiveFailures: 2,
},
loadOptions: &testbed.LoadOptions{
Expand All @@ -256,7 +256,7 @@ func TestPrometheusMetric(t *testing.T) {
receiver: testbed.NewOTLPDataReceiver(testutil.GetAvailablePort(t)),
extendedLoadOptions: ExtendedLoadOptions{
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 200,
ExpectedMaxCPU: 230,
ExpectedMaxRAM: 550,
MaxConsecutiveFailures: 2,
},
Expand Down
12 changes: 6 additions & 6 deletions internal/testbed/load/tests/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func TestTrace10kSPS(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 30,
ExpectedMaxRAM: 150,
ExpectedMaxCPU: 25,
ExpectedMaxRAM: 140,
},
attrCount: 10,
attrSizeByte: 50,
Expand All @@ -46,8 +46,8 @@ func TestTrace10kSPS(t *testing.T) {
Parallel: 1,
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 30,
ExpectedMaxRAM: 150,
ExpectedMaxCPU: 25,
ExpectedMaxRAM: 125,
},
attrCount: 10,
attrSizeByte: 50,
Expand Down Expand Up @@ -92,7 +92,7 @@ func TestTrace100kSPS(t *testing.T) {
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 90,
ExpectedMaxRAM: 150,
ExpectedMaxRAM: 140,
},
attrCount: 10,
attrSizeByte: 50,
Expand All @@ -112,7 +112,7 @@ func TestTrace100kSPS(t *testing.T) {
},
resourceSpec: testbed.ResourceSpec{
ExpectedMaxCPU: 110,
ExpectedMaxRAM: 150,
ExpectedMaxRAM: 140,
},
attrCount: 10,
attrSizeByte: 50,
Expand Down

0 comments on commit fc9c075

Please sign in to comment.