Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greengrass data usage #1663

Open
2 tasks
wills721 opened this issue Oct 10, 2024 · 5 comments
Open
2 tasks

Greengrass data usage #1663

wills721 opened this issue Oct 10, 2024 · 5 comments
Labels
needs-triage Needs eyeballs

Comments

@wills721
Copy link

Feature Description
data usage

Use Case
understand mobile carrier data charges

Proposed Solution
unknown

Other
[Add detailed explanation, stacktraces, related issues, links for us to have context, etc]
(https://repost.aws/questions/QUf5la_hFMQsi2EwHuzckWNA/greengrass-carrier-data-charges)

I have seen several monitoring tools related to monitoring traffic between greengrass and AWS but none yet that really do the job of helping me understand data usage?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@wills721 wills721 added the needs-triage Needs eyeballs label Oct 10, 2024
@wills721 wills721 changed the title (module name): short issue description Greengrass data usage Oct 10, 2024
@yitingb
Copy link
Member

yitingb commented Oct 10, 2024

Hi, on rpi, it's possible to use Wireshark to capture packets https://www.wireshark.org/docs/wsug_html_chunked/AppToolstcpdump.html.

We need some more information to understand what's going on with the traffic.

  1. What time period did you notice the high data charges?
  2. Are you comfortable with sharing the deployment document?
  3. What are the target components of your deployment?

@wills721
Copy link
Author

The carrier really doesnt get specific -- its just a large monthly charge :)

So, I'm wondering how to sort of 'profile' what is going on or whether greengrass has some way or report to help tell me the size of all data travelling back and forth to validate the carrier charge?

@wills721
Copy link
Author

So I am experimenting with Wireshark. So far no real luck -- I'm surprised no one else has run into this. We use GG on RPi with a mobile cell dongle.

@wills721
Copy link
Author

wills721 commented Nov 4, 2024

I am still trying to understand how to profile Greengrass. I am certain the large data xfer is something going on in Greengrass. I have removed LogManager and also LocalDebugConsole. This leaves CLI, Diskspooler, Nucleus, clientdevices.Auth, clientdevices.IPDetector. Would any of the latter result in >40GB daily usage?

@MikeDombo
Copy link
Member

IP detector will update the IP address whenever it changes, this can happen frequently on mobile connections. Check the greengrass log file to see what is going on; any update is logged.

Use wireshark to see how many data is transferring over port 8883, 8443, and 443. These are the ports used by Greengrass.

MQTT has a keepalive packet which is sent every 30 seconds, this is configurable in the Nucleus configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Needs eyeballs
Projects
None yet
Development

No branches or pull requests

3 participants