Running /search?pageSize=500&q=foobar&type=applications with ecs.enabled = true results in very slow response times (10-20+ seconds), occasionally timing out. Doubling both the instance (from 1cpu/3GB to 2cpu/4GB) or the DB (cpu + RAM) does not lower the response time.
However, when I disable ecs again (e.g. only aws anymore enabled), then the search is almost instant again.
Two things I noticed:
- When I have ecs disabled, the search is just exactly 1 query (which is what I would expect):

however, when I enable ecs, it is doing over 3k SQL queries per search request:


With many queries being done against alarms (??), taskDefinitions, services, etc.:

- I noticed that the "application" column is empty in many of the ecs tables:

And also ecs services are missing from cats_v1_applications
This is with Spinnaker version: 1.22.1, 1.23.1 - we definitely had the issue though earlier (e.g. the search with ecs never worked), and also had it when using redis as database for clouddriver. It is only now that we gained visibility after adding datadog-apm.
Running
/search?pageSize=500&q=foobar&type=applicationswithecs.enabled = trueresults in very slow response times (10-20+ seconds), occasionally timing out. Doubling both the instance (from 1cpu/3GB to 2cpu/4GB) or the DB (cpu + RAM) does not lower the response time.However, when I disable ecs again (e.g. only aws anymore enabled), then the search is almost instant again.
Two things I noticed:
however, when I enable ecs, it is doing over 3k SQL queries per search request:
With many queries being done against alarms (??), taskDefinitions, services, etc.:
And also ecs services are missing from
cats_v1_applicationsThis is with Spinnaker version: 1.22.1, 1.23.1 - we definitely had the issue though earlier (e.g. the search with ecs never worked), and also had it when using redis as database for clouddriver. It is only now that we gained visibility after adding datadog-apm.