After you create a Function Compute sink connector, you can modify its configurations in the Message Queue for Apache Kafka console.
- Log on to the Message Queue for Apache Kafka console.
- In the Resource Distribution section of the Overview page, select the region where your instance resides.
- On the Instances page, click the name of the instance that you want to manage.
- In the left-side navigation pane, click Connectors.
- On the Connectors page, find the connector whose configurations you want to modify and click in the Actions column.
- In the Modify Configuration panel, change the values of the parameters that are described in the following table and click OK.
Parameter Description Consumer Thread Concurrency The number of concurrent consumer threads to synchronize data from the data source topic. Valid values:
- Default value: 6.
Failure Handling Policy Specifies whether to retain the subscription to the partition where an error occurs after the relevant message fails to be sent. Valid values:
- Continue Subscription: retains the subscription to the partition where an error occurs and returns the logs.
- Stop Subscription: stops the subscription to the partition where an error occurs and returns the logs.
- For information about how to view the connector logs, see View connector logs.
- For information about how to troubleshoot errors based on error codes, see Error codes.
- To resume the subscription to the partition where an error occurs, submit a ticket to the technical support of Message Queue for Apache Kafka .
Transmission Mode The mode in which messages are sent. Valid values:
- Synchronous: The producer and consumer must be running at the same time to be ready for data exchanges.
- Asynchronous: After the producer sends a message, the producer does not need to wait for the response from the broker and can continue processing other tasks.
Data Size The maximum number of messages that can be sent at a time.
Valid values: 1 to 5000. Default value: 20.
Retries The maximum number of retries allowed after a message fails to be sent. Valid values: 1 to 3. Default value: 2. In specific cases where a message fails to be sent, retries are not supported. The following information describes the types of error codes and whether retries are supported. For more information, see Error codes.
Note The connector calls the InvokeFunction operation to send messages to Function Compute.
- 4XX: Retries are not supported except in the case where 429 is returned.
- 5XX: Retries are supported.