Closed nico-stefani closed 1 week ago
I have been investigating the error regarding the failure of the test for the /overview/agents/
endpoint.
Just yesterday, the test_overview_endpoints.tavern.yaml
was launched at https://github.com/wazuh/wazuh/issues/23309 for v4.8.0-rc1
, and it worked correctly.
No changes were found in the code since its last release at https://github.com/wazuh/wazuh/issues/23065
The issue appears to originate from wazuh-db
, as the accumulation of wazuh-db
queries seems to be causing excessive load, resulting in errors because the operation cannot be completed within the expected time (timeout).
This has already been discussed and addressed in :
As discussed, some minor changes were investigated and made for somewhat more efficient operation.
The question is why wazuh-db
is apparently performing worse in 4.8.0
, at the moment, this is being investigated at https://github.com/wazuh/wazuh/issues/23331.
The issue was already present in previous versions and the solution made the endpoint faster but did not resolve it. From the Pyserver team standpoint there's no optimizations to be done and we rely on the rapidness of wazuh-db to answer our queries.
The investigation from the issue mentioned will give us more context about the overall performance of the manager, possibly resulting in changes that resolve this as well. I agree with the conclusion, LGTM
GJ, I agree with both of you. It could also be related to:
Description
During the RC1 stage of 4.8.0, we detect a failure in the API performance tests in the
/overview/agents/
endpoint:Is needed to investigate the root reason of this problem and solve it.
Checks
The following elements have been updated or reviewed (should also be checked if no modification is required):
api/test/integration/mapping/_test_mapping.py
).