Tuning the software gateway performance
search cancel

Tuning the software gateway performance

book

Article ID: 379956

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We have been through several rounds of performance testing since migrating to software gateway version 11.1 and are experiencing much slower response times than when we were on version 10.1 appliances. We are using AWS EC2 RHEL instances with RDS MySQL. 

Environment

AWS EC2 RHEL software gateway 11.1

Cause

Different default settings in the software server compared to the appliance. 

Resolution


Set those settings to match the appliance:  

Edit file:  /etc/sysctl.d/60-tcp-tune-ipv4.conf and set the following values:

net.core.rmem_max = 16777216
net.core.wmem_max = 16777216

net.ipv4.tcp_rmem = 4096 174760 16777216
net.ipv4.tcp_wmem = 4096 16384 16777216

netdev_max_backlog = 2500

net.core.somaxconn = 10240

Also set below values:

/proc/sys/net/ipv4/ip_local_port_range               1024    65535
/proc/sys/net/ipv4/tcp_ecn                                         0
/proc/sys/net/ipv4/tcp_low_latency                       1
/proc/sys/net/ipv4/tcp_timestamps                        0
/proc/sys/net/ipv4/tcp_keepalive_time                 180
/proc/sys/net/ipv4/tcp_keepalive_intvl                5
/proc/sys/net/ipv4/tcp_fin_timeout                       20
/proc/sys/net/ipv4/tcp_max_syn_backlog          8192
/proc/sys/net/ipv4/tcp_tw_reuse                             1
/proc/sys/net/ipv4/tcp_max_tw_buckets             360000
/proc/sys/net/ipv4/tcp_no_metrics_save              1


 


Reboot server.