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

[FEAT] stomp thread pool size #97

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,21 @@ public SimpleRabbitListenerContainerFactory rabbitListenerContainerFactory(
final SimpleRabbitListenerContainerFactory factory =
new SimpleRabbitListenerContainerFactory();
factory.setConnectionFactory(connectionFactory);
<<<<<<< Updated upstream
factory.setConcurrentConsumers(20);
factory.setMaxConcurrentConsumers(200);
<<<<<<< HEAD
<<<<<<< HEAD
=======
=======
factory.setConcurrentConsumers(10);
factory.setMaxConcurrentConsumers(50);
>>>>>>> 8093b8b ([FIX] thread pool size setting)
=======
=======
factory.setConcurrentConsumers(10);
factory.setMaxConcurrentConsumers(50);
>>>>>>> origin/feat/thread-pool-retry-backoff
return factory;
}

Expand All @@ -167,7 +180,17 @@ public SimpleRabbitListenerContainerFactory retryRabbitListenerContainerFactory(
new SimpleRabbitListenerContainerFactory();
factory.setConnectionFactory(connectionFactory);
factory.setConcurrentConsumers(5);
<<<<<<< HEAD
<<<<<<< HEAD
factory.setMaxConcurrentConsumers(50);
=======
factory.setMaxConcurrentConsumers(25);
>>>>>>> Stashed changes
>>>>>>> 8093b8b ([FIX] thread pool size setting)
=======
factory.setMaxConcurrentConsumers(25);
>>>>>>> Stashed changes
>>>>>>> origin/feat/thread-pool-retry-backoff
factory.setRetryTemplate(retryTemplate());
return factory;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public void configureClientOutboundChannel(final ChannelRegistration registratio
@Bean
public ThreadPoolTaskExecutor inboundTaskExecutor() {
final ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(15);
executor.setMaxPoolSize(150);
executor.setCorePoolSize(10);
executor.setMaxPoolSize(20);
executor.setThreadNamePrefix("stomp-inbound-");
executor.initialize();
return executor;
Expand All @@ -65,8 +65,8 @@ public ThreadPoolTaskExecutor inboundTaskExecutor() {
@Bean
public ThreadPoolTaskExecutor outboundTaskExecutor() {
final ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(20);
executor.setMaxPoolSize(200);
executor.setCorePoolSize(10);
executor.setMaxPoolSize(20);
executor.setThreadNamePrefix("stomp-outbound-");
executor.initialize();
return executor;
Expand Down
Loading