Open dhiaayachi opened 2 weeks ago
You're experiencing a significant delay when retrieving the workflow count using the endpoint http://10.0.0.57:32080/api/v1/namespaces/Answer-Flow/workflow-count?query=GROUP+BY+ExecutionStatus
. This suggests a potential issue with your Temporal setup, particularly involving your MySQL database.
Here are some possible reasons for the slow loading time:
1. Database Performance:
GROUP BY
clause in your query can significantly impact performance, especially if your database has a large amount of data. Try simplifying the query or using appropriate indexing to improve performance. 2. Network Issues:
3. Temporal Server Configuration:
system.visibilityPersistenceEnabled
configuration for potential improvements.4. Temporal Server Load:
5. Temporal Server Version:
Debugging Steps:
SHOW PROCESSLIST
command to see what queries are running on your MySQL server and identify any slow or long-running queries.ping
or traceroute
to measure the network latency between your Temporal server and the MySQL database.GROUP BY
query or add appropriate indexes to improve performance.temporal_worker_task_slots_available
, temporal_workflow_task_schedule_to_start_latency
, temporal_activity_schedule_to_start_latency
) to assess server load and resource utilization.References:
By carefully investigating the potential reasons for the slow loading time and using the debugging steps provided, you can pinpoint the root cause and take appropriate actions to improve the performance of your Temporal workflow count endpoint.
Thanks for reporting this issue. Could you please tell me which version of the Temporal server are you using? Also, could you provide information on the workflow-count
endpoint you're using, as Temporal doesn't have a built-in endpoint for that purpose. Is this endpoint from a custom service or third-party application?
Thanks for reporting this issue! I see that you're experiencing a slow loading time for the http://10.0.0.57:32080/api/v1/namespaces/Answer-Flow/workflow-count?query=GROUP+BY+ExecutionStatus
endpoint, which is taking nearly a minute.
Could you please provide more context to help troubleshoot this issue?
Once I have this information, I can help you find the most appropriate solution for your slow loading time.
I'm seeing a very slow loading of the resource http://10.0.0.57:32080/api/v1/namespaces/Answer-Flow/workflow-count?query=GROUP+BY+ExecutionStatus, which takes nearly 1 minute. Our temporal uses a MySQL database
What could be the possible reasons? Please help me!