You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/09/30 10:08:33 UTC

[GitHub] [pulsar] tuteng commented on a change in pull request #5291: [Doc] Add *Redis sink connector guide*

tuteng commented on a change in pull request #5291: [Doc] Add *Redis sink connector guide*
URL: https://github.com/apache/pulsar/pull/5291#discussion_r329502037
 
 

 ##########
 File path: site2/docs/io-redis-sink.md
 ##########
 @@ -0,0 +1,69 @@
+---
+id: io-redis-sink
+title: Redis sink connector
+sidebar_label: Redis sink connector
+---
+
+The  Redis sink connector pulls messages from Pulsar topics 
+and persists the messages to a Redis database.
+
+
+
+## Configuration
+
+The configuration of the Redis sink connector has the following properties.
+
+
+
+### Property
+
+| Name | Type|Required | Default | Description 
+|------|----------|----------|---------|-------------|
+| `redisHosts` |String|true|" " (empty string) | A comma-separated list of Redis hosts to connect to. |
+| `redisPassword` |String|true|" " (empty string) | The password used to connect to Redis. |
+| `redisDatabase` | int|true|0  | The Redis database to connect to. |
+| `clientMode` |String| false|Standalone | The client mode when interacting with Redis cluster. <br><br>Below are the available options: <br><li>Standalone<br><li>Cluster |
+| `autoReconnect` | boolean|false|true | Whether the Redis client automatically reconnect or not. |
+| `requestQueue` | int|false|2147483647 | The maximum number of queued requests to Redis. |
+| `tcpNoDelay` |boolean| false| false | Whether to enable TCP with no delay or not. |
+| `keepAlive` | boolean|false | false |Whether to enable a keepalive to Redis or not. |
+| `connectTimeout` |long| false|10000 | The time to wait before timing out when connecting in milliseconds. |
+| `operationTimeout` | long|false|10000 | The time before an operation is marked as timed out in milliseconds . |
+| `batchTimeMs` | int|false|1000 | The Redis operation time in milliseconds. |
+| `batchSize` | int|false|1000 | The batch size of writing to Redis database. |
 
 Review comment:
   The default value for field `batchSize` is 200

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services