dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

What could be the problem with the slow opening of the temporal web? #121

Open dhiaayachi opened 2 weeks ago

dhiaayachi commented 2 weeks ago

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!

dhiaayachi commented 5 days ago

Slow Loading of Workflow Count Endpoint

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:

2. Network Issues:

3. Temporal Server Configuration:

4. Temporal Server Load:

5. Temporal Server Version:

Debugging Steps:

  1. Monitor MySQL: Use the SHOW PROCESSLIST command to see what queries are running on your MySQL server and identify any slow or long-running queries.
  2. Analyze Temporal Server Logs: Check the Temporal Server logs for any errors or warnings related to the Visibility service or database connectivity.
  3. Check Network Latency: Use tools like ping or traceroute to measure the network latency between your Temporal server and the MySQL database.
  4. Optimize Queries: Simplify your GROUP BY query or add appropriate indexes to improve performance.
  5. Profile Temporal Server: Use profiling tools to identify potential bottlenecks within your Temporal server application.
  6. Temporal Server Metrics: Examine your Temporal server metrics (especially 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.

dhiaayachi commented 5 days ago

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?

dhiaayachi commented 5 days ago

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?

  1. What is the version of Temporal that you're using?
  2. What is the size of your MySQL database?
  3. Are you using any custom queries or filters in Temporal Web UI?
  4. Have you made any recent changes to your Temporal configuration or MySQL database?

Once I have this information, I can help you find the most appropriate solution for your slow loading time.