Rate Limit Settings Cannot Be Configured from GUI When DoS Profile Is Configured via CLI/API in Avi Load Balancer
search cancel

Rate Limit Settings Cannot Be Configured from GUI When DoS Profile Is Configured via CLI/API in Avi Load Balancer

book

Article ID: 441424

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

After configuring the DoS setting in Application Profile through the CLI or API, the "Rate Limit" section under the Application Profile in the GUI does not load correctly and appears blank.

In some cases, the entire Application Profile page intermittently fails to load and remains stuck, preventing any modification of Rate Limit settings from the GUI.



Environment

  • Avi Load Balancer
  • Application DoS Profile configured via CLI or API
  • Version: 22.x, 30.x and 31.x

Cause

This issue occurs specifically when the Application DoS Profile is configured via CLI or API in the Avi Load Balancer. The GUI is unable to properly render the Rate Limit section under the Application Profile, resulting in a blank section or an unresponsive Application Profile page.

Check the Event in Avi Controller for the config



Verify dos_profile configured via CLI / API

// SSH to Controller Leader Node

admin@Controller-IP:~$ sudo -i
root@Controller-IP:/var/log/nginx# grep '\[CLI\].*PUT /api/applicationprofile' portal.access.log
127.0.0.1 [cache:-] 127.0.0.1:6004 [-] - T-ID=#### - [09/Jun/2026:05:12:10 +0000] [CLI] [-] "PUT /api/applicationprofile/applicationprofile-#### HTTP/1.1" 200 3589 "https://localhost" "python-requests/2.31.0" 2.035 2.036 .

Resolution

  1. Solution 1 - Remove the DoS Profile Configuration

    Verify internally whether removing the dos_profile configuration (configured via CLI/API) is acceptable for your environment. Once the DoS profile configuration is removed and recreated from UI, the Rate Limit configuration can be accessed and modified from the GUI without any issues.

  2. Solution 2 - Configure Rate Limit via CLI While Retaining the DoS Profile

    If the DoS profile must remain configured via CLI/API, use the following CLI commands to configure Rate Limit on the Application Profile:

    1. SSH to Controller Leader Node
    2. Shell
    
    // Sample Configuration for rate limit for client_ip_failed_requests_rate_limit
    
    configure applicationprofile <Applicationprofile-Name>
    applicationprofile> dos_rl_profile
    applicationprofile:dos_rl_profile> rl_profile
    applicationprofile:dos_rl_profile:rl_profile> client_ip_failed_requests_rate_limit
    applicationprofile:dos_rl_profile:rl_profile:client_ip_failed_requests_rate_limit> rate_limiter
    applicationprofile:dos_rl_profile:rl_profile:client_ip_failed_requests_rate_limit:rate_limiter> period 1
    applicationprofile:dos_rl_profile:rl_profile:client_ip_failed_requests_rate_limit:rate_limiter> count 100000
    applicationprofile:dos_rl_profile:rl_profile:client_ip_failed_requests_rate_limit:rate_limiter> save
    applicationprofile:dos_rl_profile:rl_profile:client_ip_failed_requests_rate_limit> action
    applicationprofile:dos_rl_profile:rl_profile:client_ip_failed_requests_rate_limit:action> type rl_action_none
    applicationprofile:dos_rl_profile:rl_profile:client_ip_failed_requests_rate_limit:action> save
    applicationprofile:dos_rl_profile:rl_profile:client_ip_failed_requests_rate_limit> save
    applicationprofile:dos_rl_profile:rl_profile> save
    applicationprofile:dos_rl_profile> save
    applicationprofile> save


    This workaround allows you to configure rate limiting directly on the Application Profile through the CLI while preserving the existing DoS profile configuration.

     

Additional Information

 

  • This issue is applicable only when the Application DoS Profile is configured via CLI or API. DoS profiles configured directly through the GUI are not affected.
  • When using the CLI workaround, press the TAB key at the indicated points to view and select the available options for rl_profile and action.
  • Adjust the period and count values in the rate limiter configuration to match the desired rate limit thresholds for your environment.
  • Ensure that each save command is executed at the appropriate level to commit the configuration changes properly.