From b8770730a38e9c381c4693e85869e80c305dfcb9 Mon Sep 17 00:00:00 2001 From: Attila Szakacs Date: Thu, 17 Aug 2023 12:22:38 +0200 Subject: [PATCH] chapter-destinations: use chunk/destination-option-threaded-workers.md where possible It is possible where the default is 1. Signed-off-by: Attila Szakacs --- .../_index.md | 1 + .../reference-destination-http-nonjava/_index.md | 3 +++ .../reference-destination-kafka-c/_index.md | 10 ++++------ .../reference-destination-mongodb/_index.md | 13 +------------ .../reference-destination-redis/_index.md | 10 +--------- .../reference-destination-discord/_index.md | 2 ++ .../reference-destination-slack/_index.md | 2 ++ .../chunk/option-destination-description-workers.md | 3 --- 8 files changed, 14 insertions(+), 30 deletions(-) diff --git a/content/chapter-destinations/configuring-destinations-elasticsearch-http/reference-destination-elasticsearch-http/_index.md b/content/chapter-destinations/configuring-destinations-elasticsearch-http/reference-destination-elasticsearch-http/_index.md index 039c4cb7..d7e7b50b 100644 --- a/content/chapter-destinations/configuring-destinations-elasticsearch-http/reference-destination-elasticsearch-http/_index.md +++ b/content/chapter-destinations/configuring-destinations-elasticsearch-http/reference-destination-elasticsearch-http/_index.md @@ -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" %}} diff --git a/content/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/_index.md b/content/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/_index.md index 6dd3b2e1..4d25daf1 100644 --- a/content/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/_index.md +++ b/content/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/_index.md @@ -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" %}} + diff --git a/content/chapter-destinations/configuring-destinations-kafka-c/reference-destination-kafka-c/_index.md b/content/chapter-destinations/configuring-destinations-kafka-c/reference-destination-kafka-c/_index.md index d1f4bc74..ced883f9 100644 --- a/content/chapter-destinations/configuring-destinations-kafka-c/reference-destination-kafka-c/_index.md +++ b/content/chapter-destinations/configuring-destinations-kafka-c/reference-destination-kafka-c/_index.md @@ -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" %}} diff --git a/content/chapter-destinations/configuring-destinations-mongodb/reference-destination-mongodb/_index.md b/content/chapter-destinations/configuring-destinations-mongodb/reference-destination-mongodb/_index.md index 9a832043..5ee4c2ac 100644 --- a/content/chapter-destinations/configuring-destinations-mongodb/reference-destination-mongodb/_index.md +++ b/content/chapter-destinations/configuring-destinations-mongodb/reference-destination-mongodb/_index.md @@ -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} diff --git a/content/chapter-destinations/configuring-destinations-redis/reference-destination-redis/_index.md b/content/chapter-destinations/configuring-destinations-redis/reference-destination-redis/_index.md index d8489c83..ed73379f 100644 --- a/content/chapter-destinations/configuring-destinations-redis/reference-destination-redis/_index.md +++ b/content/chapter-destinations/configuring-destinations-redis/reference-destination-redis/_index.md @@ -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" >}} diff --git a/content/chapter-destinations/destination-discord/reference-destination-discord/_index.md b/content/chapter-destinations/destination-discord/reference-destination-discord/_index.md index 0eb4412f..13463282 100644 --- a/content/chapter-destinations/destination-discord/reference-destination-discord/_index.md +++ b/content/chapter-destinations/destination-discord/reference-destination-discord/_index.md @@ -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" %}} diff --git a/content/chapter-destinations/destination-slack/reference-destination-slack/_index.md b/content/chapter-destinations/destination-slack/reference-destination-slack/_index.md index da52c60d..dd7c6988 100644 --- a/content/chapter-destinations/destination-slack/reference-destination-slack/_index.md +++ b/content/chapter-destinations/destination-slack/reference-destination-slack/_index.md @@ -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" %}} diff --git a/content/headless/chunk/option-destination-description-workers.md b/content/headless/chunk/option-destination-description-workers.md index 300e9ff5..9d0be0b1 100644 --- a/content/headless/chunk/option-destination-description-workers.md +++ b/content/headless/chunk/option-destination-description-workers.md @@ -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" %}} -