Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: move blocking Operation to its own file (#7242)
- Loading branch information
Showing
3 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...n/docs/guide/httpServer/serverConfiguration/threadPools/blockingOperations.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters