Created on 08-12-2024 03:19 AM Edited on 08-22-2024 01:21 PM By Jean-Philippe_P
Description |
This article describes what causes the 'Too Many Requests in the Queue, Discarding Logon Event' error and offers steps to fix it. This issue is common in setups using Fortinet Single Sign-On (FSSO) with Domain Controller (DC) agents. It usually happens when the FSSO DC agent gets overloaded with too many logon requests at once, causing it to fail to process them on time.
Example:
07/11/2024 12:36:30.641: processing Logon (level=2, logonid=0-42422115) CCPUDNT\fortinetuser(Walter (Temp)) from EU-4RF4HW3 |
Scope | FSSO, DCAgent, FortiGate. |
Solution |
This error happens when the DC agent’s queue gets too full with pending logon requests, going beyond its capacity. This is likely in environments with heavy logon traffic: like in large companies where many users log in at the same time or if there are DNS resolution issues that slow down processing.
Signs of the Problem.
How DC Agent Threads Work: The FSSO DC agent is crucial for tracking and reporting user logins from the domain controller to the FortiGate. It does this by creating multiple threads, each handling different parts of the process.
Key Points About DC Threads:
In summary, inside the DCAgent, there are three threads. The primary thread monitors system logon notifications and places the logon events into a queue. The second thread processes the events in the queue, resolves workstation names to IP addresses if possible, and then sends the login information to the collector agent. The third thread sends a keepalive signal to the collector agent every 10 seconds.
Impact of Heavy Logon Traffic: When many logon requests come in at once, especially during peak times, the DC agent’s threads can get overwhelmed. Each logon event has to go through several steps, including capturing the event, resolving DNS, and sending it to FortiGate. Any delay in these steps can create a bottleneck.
This issue is mainly caused by:
How to Fix It: Step 1: Adjust FSSO DC Agent Settings: One effective solution is to disable DNS name resolution on the FSSO DC agent:
This change stops the DC agent from trying to resolve DNS names, which can significantly speed up processing time for each logon event and prevent the queue from overflowing.
Step 2: Review and Optimize the FSSO Setup. Make sure the FSSO deployment is running efficiently:
Step 3: Keep an Eye on Logon Traffic: Regularly monitor logon traffic and the performance of the DC agents. If needed, adjust the number of agents or their processing capacity to handle busy times.
Step 4: Tuning Worker Thread Count: Depending on the system’s capacity, it is possible to tune the Worker Thread Count on the Collector Agent to use more threads, allowing it to handle more simultaneous logon events. Suggestion: Worker Thread to 512 (Advanced Settings -> Worker thread count).
Step 5: Balance the Load and Scale: Distribute the processing load by deploying multiple DC agents across different domain controllers, especially in large environments. This helps ensure no single agent gets overwhelmed.
Step 6: Consider Hardware Upgrades: If the problem continues even after optimizing settings, upgrade the hardware of the domain controllers running the DC agents to better handle the high volume of login requests.
If the issue is not resolved, reduce how often logon monitoring happens or consider upgrading the hardware of the domain controllers.
The 'Too Many Requests in the Queue, Discarding Logon Event' error happens because the DC agent cannot process logon events fast enough, often due to an overload of threads or DNS resolution delays. By understanding how the threads in the DC agent work and optimizing them, it is possible to reduce this error and ensure smoother login event processing.
Related article: Technical Tip: Disable the DNS resolution of the FSSO DCAgent |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.