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

doc: move blocking Operation to its own file #7242

Merged
merged 1 commit into from Apr 21, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -29,19 +29,3 @@ NOTE: The default value for the number of threads is the value of the system pro
See the following table for configuring event loops:

include::{includedir}configurationProperties/io.micronaut.http.netty.channel.DefaultEventLoopGroupConfiguration.adoc[]

==== Blocking Operations

When dealing with blocking operations, Micronaut shifts the blocking operations to an unbound, caching I/O thread pool by default. You can configure the I/O thread pool using the api:scheduling.executor.ExecutorConfiguration[] named `io`. For example:

.Configuring the Server I/O Thread Pool
[source,yaml]
----
micronaut:
executors:
io:
type: fixed
nThreads: 75
----

The above configuration creates a fixed thread pool with 75 threads.
@@ -0,0 +1,13 @@
When dealing with blocking operations, Micronaut shifts the blocking operations to an unbound, caching I/O thread pool by default. You can configure the I/O thread pool using the api:scheduling.executor.ExecutorConfiguration[] named `io`. For example:

.Configuring the Server I/O Thread Pool
[source,yaml]
----
micronaut:
executors:
io:
type: fixed
nThreads: 75
----

The above configuration creates a fixed thread pool with 75 threads.
4 changes: 3 additions & 1 deletion src/main/docs/guide/toc.yml
Expand Up @@ -118,7 +118,9 @@ httpServer:
serverEvents: Server Events
serverConfiguration:
title: Configuring the HTTP Server
threadPools: Configuring Server Thread Pools
threadPools:
title: Configuring Server Thread Pools
blockingOperations: Blocking Operations
nettyPipeline: Configuring the Netty Pipeline
cors: Configuring CORS
https: Securing the Server with HTTPS
Expand Down