aws-solutions / media-services-application-mapper

Media Services Application Mapper is a browser-based tool that allows operators to visualize the structure and logical connections among AWS Media Services and supporting services in the cloud. The tool can be used as a top-down resource monitoring tool when integrated with CloudWatch.
Apache License 2.0
84 stars 27 forks source link

MSAM not installing correctly #404

Closed grf1 closed 1 year ago

grf1 commented 1 year ago

Describe the bug Initially installing this with the root CF template from the hosted docs failed with an S3 permissions error. Launching with the root template with this link: https://solutions-reference.s3.amazonaws.com/media-services-application-mapper/latest/aws-media-services-application-mapper-release.template did work - odd!

However, following the install the actual application itself doesn't seem to work as I'd expect, I've got media connect flows configured in the same region as MSAM but nothing shows in MSAM. The search function doesn't work, and overall it feels like something isn't quite right. I can't see any nodes that would form part of a tile, and I can't seem to make diagrams. The browser page hangs for ages on initial launch, and when I go to advance settings, then it finally loads. However all the refresh durations are by default set to NaN - again this doesn't seem right.

Expected behavior Media connect flows would automatically appear in MSAM as nodes.

Desktop (please complete the following information):

raulmlamzn commented 1 year ago

Thank you for your input. We will consider your feedback and have added this request to our backlog for this solution.

dch90 commented 1 year ago

Hello @grf1

I would like to have a better understanding to this issue, so here are some questions that can hopefully make the problem clearer.

  1. Could you provide the link of the root CF template from the hosted docs which fail the deployment with S3 permission error?

  2. Would you be able to post a screenshot of the MSAM browser application after it finishes loading similar to the screenshot I have posted? I am interested to see the Status tab after it finishes loading.

Figure 1. Application loads succesfully

1
  1. Would you be able to post a screenshot of the MSAM browser application network activity tab after it finishes loading?

    • Does it have any HTTP calls with Status other than 200?

Figure 2. Network Activity inspect tab.

2

Based on the behaviors you have described, I suspect that the AWS Account is running out of Lambda Concurrency quota.

To test the theory, I manually lowered the concurrency setting on the AWS account my instance of MSAM solution is deployed and I was able to reproduce the behaviors you were experiencing.

  1. The entire application hangs, specifically the Status bar at the bottom (it stays in loading animation and turns green intermittently).
  2. Search and Create Diagram functionality no longer work.
  3. Depending on which HTTP call was successful before hitting the concurrency limit, some nodes that were configured would not load including the connection/edges between the nodes.
  4. Opening the Advanced Settings does make it seem like it loads, but all the refresh durations are set to NaN.
    • Diagram Creation and Search functionality does not work still.

Figure 3. Advanced Settings tab displaying NaN as per the described issue

3

Figure 4. Nodes and Connection partially loaded due to concurrency quota issue (previously loaded fine) Also note that even though Status bar is green, the number of nodes and connection is lower compared to when the application loads without concurrenct issues

4