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

Increased MongoDB Traffic When Enabling TOTP #6783

Closed
muratugureminoglu opened this issue Nov 12, 2024 · 0 comments
Closed

Increased MongoDB Traffic When Enabling TOTP #6783

muratugureminoglu opened this issue Nov 12, 2024 · 0 comments
Assignees

Comments

@muratugureminoglu
Copy link
Collaborator

muratugureminoglu commented Nov 12, 2024

Short description

When TOTP is enabled and viewed with a specific SubscriberID, the traffic on MongoDB increases. The MongoDB traffic statistics differ when watching streams with and without TOTP enabled, as shown in the attached screenshots.

Here are the steps to observe this increase in MongoDB traffic (note: internal connections also generate traffic, but this increase can be observed by comparing the two screenshots):

Without TOTP (Left Edge Instance, Right MongoDB instance)
MongoDB-without-TOTP

With TOTP (Left Edge Instance, Right MongoDB instance)

MongoDB-TOTP

As shown, the average traffic for one user is between 1Mbps - 2.4Mbps.

Environment

  • Operating system and version: Ubuntu 22.04
  • Java version: 17
  • Ant Media Server version: 2.11.3
  • Browser name and version: Chrome/Firefox

Steps to reproduce

  1. Enable TOTP in the player.
  2. Start the stream and play it as follows.
https://your-ams-server:5443/LiveApp/streams/testing.m3u8?&subscriberId=murat&subscriberCode=219967
  1. Monitor MongoDB traffic. (with ifstat tool, apt-get install ifstat -y)
  2. Disable TOTP.
  3. Start the stream again and play it.
  4. Monitor MongoDB traffic. (with ifstat tool, apt-get install ifstat -y)

Expected behavior

Traffic should not increase so much just because It 's a text data.

Actual behavior

the average traffic for one user is between 1Mbps - 2.4Mbps on MongoDB instance.

Logs

Place logs on pastebin or elsewhere and put links here

Ask your questions on Ant Media Github Discussions

@burak-58 burak-58 moved this to 📋 Backlog in Ant Media Server Nov 18, 2024
@burak-58 burak-58 moved this from 📋 Backlog to Next Sprint in Ant Media Server Nov 18, 2024
@burak-58 burak-58 moved this from 🔖 Sprint to 🏗 In progress in Ant Media Server Nov 25, 2024
@burak-58 burak-58 closed this as completed Dec 2, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Ant Media Server Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants