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

Add configuration parameters for load testing #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ftrippel
Copy link

Hi. We are using this SMTP server for load testing and thus we have to increase the resources available to the server

Copy link
Owner

@gessnerfl gessnerfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently the build fails. Can please make sure that the system builds successfully and all tests work.

@@ -21,10 +22,14 @@ public SmtpServerFactoryImpl(EmailPersister emailPersister, SmtpServerConfigurat
this.configurator = configurator;
}

@Value("${fakesmtp.smtpServer.maxConnections:40}")
Integer maxConnections;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of just using @value I would add this to the configuration class FakeSmtpConfigurationProperties.

@@ -8,11 +9,14 @@
@Configuration
public class SchedulingConfig implements SchedulingConfigurer {

@Value("${fakesmtp.taskScheduler.poolSize:10}")
Integer poolSize;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of just using @Value I would move the configuration into the configuration class FakeSmtpConfigurationProperties. In the class we could then add an additional subclass for configuring the task Scheduler.

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

Successfully merging this pull request may close these issues.

2 participants