|
@@ -45,11 +45,12 @@ The sql query to run for the rule.
|
|
|
|
|
|
### actions
|
|
|
|
|
|
-Currently, 3 kinds of actions are supported: [log](sinks/logs.md), [mqtt](sinks/mqtt.md) and [rest](sinks/rest.md). Each action can define its own properties. There are 2 common properties:
|
|
|
+Currently, 3 kinds of actions are supported: [log](sinks/logs.md), [mqtt](sinks/mqtt.md) and [rest](sinks/rest.md). Each action can define its own properties. There are 3 common properties:
|
|
|
|
|
|
| property name | Type & Default Value | Description |
|
|
|
| ------------- | -------- | ------------------------------------------------------------ |
|
|
|
-| concurrency | int: 1 | Specify how many instances of the sink will be run. |
|
|
|
+| concurrency | int: 1 | Specify how many instances of the sink will be run. If the value is bigger than 1, the order of the messages may not be retained. |
|
|
|
+| bufferLength | int: 1024 | Specify how many messages can be buffered in memory. If the buffered messages exceed the limit, the sink will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. |
|
|
|
| runAsync | bool:false | Whether the sink will run asynchronously for better performance. If it is true, the sink result order is not promised. |
|
|
|
|
|
|
Actions could be customized to support different kinds of outputs, see [extension](../extension/overview.md) for more detailed info.
|
|
@@ -60,4 +61,6 @@ The current options includes:
|
|
|
| Option name | Type & Default Value | Description |
|
|
|
| ------------- | -------- | ------------------------------------------------------------ |
|
|
|
| isEventTime | boolean: false | Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the [stream]([extension](../sqls/streams.md)) definition. |
|
|
|
-| lateTolerance | int64:0 | When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped. |
|
|
|
+| lateTolerance | int64:0 | When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped. |
|
|
|
+| concurrency | int: 1 | A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained. |
|
|
|
+| bufferLength | int: 1024 | Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint. |
|