Google cloud Run returns EOF error while doing load testing

I have multiple cloud run services, mainly two one written in Java and one written in nodejs. Recently we started doing load testing to specify the instance capacity and decide increasing the service limits or decrease them. I used k6 to write basic load testing script to load test one of the APIs. Everything is working fine and I am able to measure the service capacity but some of the requests that are sent to the service return with this vague error:

Request Failed error="Get \"BASEURL/orders/orderId\": EOF"

This happens randomly, for example between 800 request sent it happens one time or two but still happens randomly, might happen one time in 100 requests sent, so there is no specific pattern to understand why this is happening. What does this error mean? there is no status even returned for this request. This happens either on the Java service or the Node service, the request doesn't reach the backend, also I am looking to the metrics, there is no errors logged and the CPU consumption and memory don't reach the peak. Your help is highly appreciated.

k6 script I have:

```typescript

// eslint-disable-next-line import/no-unresolved
import http from 'k6/http';
// eslint-disable-next-line import/no-unresolved
import { check, sleep } from 'k6';

// import { getTokenByServiceAccount } from '../services/googleAuthorization';

export const options = {
vus: 350,
duration: '1m',
};

export default async function () {
const target = 'BaseUrl';
const url = `${target}/orders/orderId`;
const res = http.get(url, {
headers: {
'Content-Type': 'application/json',
'Authentication': 'Bearer token here',
},
});

check(res, {
'status is 200': (r) => {
console.log(r.status, r.status === 200 ? '' : r.body, r.status === 200 ? '' : res.headers);
return r.status === 200;
},
});

sleep(10);
}


```

2 0 63
0 REPLIES 0