Skip to content

Commit

Permalink
chapter-destinations: use chunk/destination-option-threaded-workers.m…
Browse files Browse the repository at this point in the history
…d where possible

It is possible where the default is 1.

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
  • Loading branch information
alltilla committed Aug 17, 2023
1 parent eda225f commit b877073
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,4 @@ In case the server on the specified URL returns a redirect request, {{% param "p

{{< include-headless "chunk/option-destination-description-workers.md" >}}

{{% include-headless "chunk/http-load-balance-workers.md" %}}
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,6 @@ In case the server on the specified URL returns a redirect request, {{% param "p
{{% include-headless "chunk/option-destination-http-use-system-cert-store.md" %}}

{{< include-headless "chunk/option-destination-threaded-workers.md" >}}

{{% include-headless "chunk/http-load-balance-workers.md" %}}

Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,13 @@ For details on formatting messages in JSON format, see [format-json]({{< relref
{{< include-headless "chunk/option-destination-ts-format.md" >}}


## workers() {#kafka-option-kafka-topic}
{{< include-headless "chunk/option-destination-threaded-workers.md" >}}

| | |
| -------- | ------- |
| Type: | integer |
| Default: | 1 |
{{% alert title="Note" color="info" %}}

*Description:* The workers are only responsible for formatting the messages that need to be delivered to the Kafka clients. Configure this option only if your Kafka clients have many threads and they do not receive enough messages.
The workers are only responsible for formatting the messages that need to be delivered to the Kafka clients. Configure this option only if your Kafka clients have many threads and they do not receive enough messages.

{{% /alert %}}

{{% alert title="Note" color="info" %}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,7 @@ For MongoDB operations, {{% param "product.abbrev" %}} uses a one-minute timeout

{{< include-headless "wnt/note-typehinting.md" >}}


## workers()

| | |
| -------- | ------- |
| Type: | integer |
| Default: | 1 |


*Description:* Specifies the number of worker threads (at least 1) that {{% param "product.abbrev" %}} uses to send messages to the server. Increasing the number of worker threads can drastically improve the performance of the destination.

{{< include-headless "wnt/warning-diskbuffer-workers.md" >}}
{{< include-headless "chunk/option-destination-threaded-workers.md" >}}

## write-concern() {#mongodb-option-write-concern}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,5 @@ Note the following points when using the `redis()` destination:

{{% include-headless "chunk/option-source-time-reopen.md" %}}


## workers()

| | |
| -------- | ------- |
| Type: | integer |
| Default: | 1 |

{{< include-headless "chunk/option-destination-description-workers.md" >}}
{{< include-headless "chunk/option-destination-threaded-workers.md" >}}

Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,5 @@ For more information, see [Discord: Rate Limits](https://discord.com/developers/
{{% include-headless "chunk/option-destination-http-use-system-cert-store.md" %}}

{{< include-headless "chunk/option-destination-threaded-workers.md" >}}

{{% include-headless "chunk/http-load-balance-workers.md" %}}
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,5 @@ To handle HTTP error responses, if the HTTP server returns 5xx codes, {{% param
{{% include-headless "chunk/option-destination-http-use-system-cert-store.md" %}}

{{< include-headless "chunk/option-destination-threaded-workers.md" >}}

{{% include-headless "chunk/http-load-balance-workers.md" %}}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@
*Description:* Specifies the number of worker threads (at least 1) that {{% param "product.abbrev" %}} uses to send messages to the server. Increasing the number of worker threads can drastically improve the performance of the destination.

{{< include-headless "wnt/warning-diskbuffer-workers.md" >}}

{{% include-headless "chunk/http-load-balance-workers.md" %}}

0 comments on commit b877073

Please sign in to comment.