Nginx Agent WebSocket delay problem

use netty as a message push system and use Web Socket protocol to communicate. Hundreds of thousands of connections are found and a hundred messages are sent during the test.
at present, the client connects directly to the server to receive the expected service results. After adding the HAproxy,Nginx proxy, the delay is very large, so check the Nginx recv-q congestion.
modifying the acceptance buffer of the operating system does not have a better effect. I would like to ask what other ideas can be checked.

Nginx server configuration 48 core 126g
Nginx main configuration

user  nginx nginx;
worker_processes auto;
worker_cpu_affinity auto;
worker_rlimit_nofile 150000;
events {
  use epoll;
  accept_mutex off;
  worker_connections 150000;
}

http {
  server_tokens off;
  server_names_hash_bucket_size 128;
  client_header_buffer_size 64k;
  large_client_header_buffers 4 128k;
  sendfile on;
  keepalive_requests 10000;
  tcp_nopush     on;
  keepalive_timeout 60;
  tcp_nodelay on;
  proxy_intercept_errors on;
  proxy_ignore_client_abort on;
}
Jan.28,2022

besides nginx , is there any HAproxy balancing? is the business service on this machine

?
Menu