You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I deployed the following ballerina passthrough service on Kubernetes. JMeter was used as the client and a Netty echo service as the backend.
import ballerina/http;
import ballerina/log;
@http:ServiceConfig {
basePath: "/"
}
service testapi1 on new http:Listener(8090) {
@http:ResourceConfig {
methods: ["POST"],
path: "/api1"
}
resource function api1(http:Caller caller, http:Request req) {
http:Client API1 = new("http://<NettyIP>:8600");
var response = API1->forward("/", req);
if (response is http:Response) {
var result = caller->respond(response);
} else {
log:printError("Error at h1c_h1c_passthrough", err = response);
http:Response res = new;
res.statusCode = 500;
res.setPayload(response.message());
var result = caller->respond(res);
}
}
}
This resulted in the pod being restarted even for low concurrency tests (concurrency of 5).
However when I move http:Client API1 = new("http://<NettyIP>:8600"); out of the service as follows, the service works without an issue.
Description:
I deployed the following ballerina passthrough service on Kubernetes. JMeter was used as the client and a Netty echo service as the backend.
This resulted in the pod being restarted even for low concurrency tests (concurrency of 5).
However when I move
http:Client API1 = new("http://<NettyIP>:8600");
out of the service as follows, the service works without an issue.Steps to reproduce:
Run the passthrough service given above with the specified line in the resource function block and outside the service block
Affected Versions:
Swan Lake Preview 1
OS, DB, other environment details and versions:
Kubernetes version - 1.16
Resource requests and limits are as follows
The text was updated successfully, but these errors were encountered: