Connect Akto with NGINX

If your API calls are being routed through NGINX, you can use Akto's NGINX module to send traffic to Akto dashboard. Below guide will help you do this:
Step 1: Configure Akto Traffic Processor
Set up and configure Akto Traffic Processor. The steps are mentioned here.
Step 2: Add NGINX module
The Akto nginx module uses the dynamic module functionality supported by nginx. This requires nginx to be build from source for which the exact steps can be slightly varied depending on the linux flavour, the core process though, remains the same.
Note: For AKTO_NLB_IP in below configurations, use the value of the mini-runtime service we deployed in step 1.
Note: We have benchmarked an nginx server with and without akto nginx traffic module. The results for the same are as follows:
avg. cpu usage
upto 36%
upto 38%
avg. memory usage
0.5%
0.5%
The server setup being used is an AWS EC2 (t3a.small: 2CPU + 2GB RAM), with around 1600-1800 requests being fired per second to the server continuously for over a minute (~110k requests per minute). Here nginx is configured as a reverse proxy to a node.js backend server.
Last updated
Was this helpful?