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

MM-55324: Apply learnings from Mattermost config review #706

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

agarciamontoro
Copy link
Member

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

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
@agarciamontoro agarciamontoro added the 2: Dev Review Requires review by a core committer label Mar 13, 2024
Copy link
Contributor

@streamer45 streamer45 left a 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
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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.

Copy link
Member Author

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.

@agarciamontoro agarciamontoro requested a review from agnivade March 19, 2024 15:31
@agarciamontoro agarciamontoro added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Mar 19, 2024
@agarciamontoro agarciamontoro merged commit a7100e9 into master Mar 19, 2024
1 check passed
@agarciamontoro agarciamontoro deleted the MM-55324.mm.config.review branch March 19, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants