-
Notifications
You must be signed in to change notification settings - Fork 42
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
MM-55324: Apply learnings from Mattermost config review #706
Conversation
These configuration changes are the result of a review of the Mattermost config generated by a load-test. Read the full report here: https://mattermost.atlassian.net/wiki/spaces/XYZ/pages/2675015717/Load-test+server+configuration+review
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.
Looks good, thanks!
@@ -599,8 +603,10 @@ func (t *Terraform) updateAppConfig(siteURL string, sshc *ssh.Client, jobServerE | |||
cfg.SqlSettings.DataSourceReplicas = readerDSN | |||
cfg.SqlSettings.MaxIdleConns = model.NewInt(100) | |||
cfg.SqlSettings.MaxOpenConns = model.NewInt(100) | |||
cfg.SqlSettings.Trace = model.NewBool(false) // Can be enabled for specific tests, but defaulting to false to declutter logs |
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.
It's anyways set to false by default. I guess we are being explicit here?
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.
Yes, I like it to beg explicit in case a user wants to change it at some point.
@@ -561,6 +561,10 @@ func (t *Terraform) updateAppConfig(siteURL string, sshc *ssh.Client, jobServerE | |||
// Setting to * is more of a quick fix. A proper fix would be to get the DNS name of the first | |||
// node or the proxy and set that. | |||
cfg.ServiceSettings.AllowCorsFrom = model.NewString("*") | |||
cfg.ServiceSettings.EnableOpenTracing = model.NewBool(false) // Large overhead, better to disable |
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 is also set to false by default.
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 was more a safety measure, in case it is enabled by default at some point, but we can remove it if you have a strong opinion.
Summary
These configuration changes are the result of a review of the Mattermost config generated by a load-test. Report: https://mattermost.atlassian.net/wiki/spaces/XYZ/pages/2675015717/Load-test+server+configuration+review
Ticket Link
https://mattermost.atlassian.net/browse/MM-55324