-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Update en.json - SMTP Max. connections info #2133
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct. Max conns can be anything and don't need to be message_rate x concurrency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I based it on your comment here #2069 (comment)
Would it be more accurate to say
SMTP Max. connections should = the Performance -> Concurrency number
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your last comment in that issue also makes it sound like this current help text is incorrect:
Per your comment, it sounds like "Message rate" is the actual limit, and "Concurrency" just enables it.
So I think the help text for each of the performance settings needs some tweaking/clarification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should change the setting's label to
Max message rate
instead ofMessage rate
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would you be getting 50k/minute with
50/s x 60 seconds = 3k/minute.
To get 50k/minute you'd need something like
Concurrency: 2500
Message rate: 830
SMTP Max. connections 830??
This also doesn't make sense based on what you've said recently. Message Rate seems to be a hard limit, not a per-worker (concurrency) rate.
EDIT:
I just confirmed (#2069 (comment)) that "Message rate" is not "max message rate" since I had message rate at 10 and I was sending at 20/s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the instance of the settings I shared (which keep getting tweaked based on campaigns) 250 workers with each worker doing a max of 50/sec = 12.5k/sec max. For larger campaigns, we spawn and add multiple SMTP servers and raise the limits accordingly.
hm, sending 20/sec with 10 in settings, I'll have to investigate that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I guess there's a communication issue because this indicates that the
If concurrency = 10 and message_rate = 10, then up to 10x10=100 messages may be pushed out every second
help text is correct, even though it sounded like you contradicted that recently.Yet my own experiments indicate that help text is wrong.
None of this is making sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lost track. After reviewing this, the help text is correct. It begins by saying
Max..
. So it's the maximum upper limit permitted, but it does not mean that the program can actually push out so many e-mails to an SMTP server. There are many bottlenecks (CPU/network resources, database bottlenecks, network, and of course, the capacity of the SMTP server itself).We've set an upper limit of 250 workers with 50/worker/sec max. With that, including all the bottlenecks (primarily the capacity of the SMTP servers to handle messages), we're achieving a net throughput of 50k. If the SMTP servers aren't performant, it can drop to any number. It doesn't mean that the system will be achieve a 750k/min throughput.
Basically, like the help text indicates, it is the
Maximum
upper limit, not a guarantee of any throughput.