GET Reponse time for REST API is too long

Hi Keycloak community

My team and use Keycloak to maintain an OpenAPI. Unfortunately, every third or fourth attempt GET attempt to the API, results in a timeout.

We use nginx to send the request and the format is below

request: "GET /keycloak/auth/realms/master/protocol/openid-connect/auth?client_id=security-admin-console&redirect_uri=http<address>", 
upstream: "http://[::1]:<keycloak_openapi_port>/keycloak/auth/realms/master/protocol/openid-connect/auth?client_id=<client_id>",
host: "<host_ip>:<nginx_port>", 
referrer: "http://<host_ip>:<nginx_port>/keycloak/auth/admin/master/console/"

The timeout error that nginx throws is as follows
[error] 32#32: *737 upstream timed out (110: Operation timed out) while connecting to upstream, client: <keycloak_ip>

Moreover, the Keycloak Admin Console is very slow to load.

We’ve ruled out slow VPN because we are able to issue GET requests to an unencrypted version of the same API, at the IP address corrseponding to the Keycloak Admin Console, but on a different port.

Have any of you experiences similar issues with Keycloak? I’d appreciate any guidance on how we may be able to utilize this service more effectively.

Thank you!