After you create a Function Compute sink connector, you can modify its configurations in the Message Queue for Apache Kafka console.

Procedure

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance resides.
  3. On the Instances page, click the name of the instance that you want to manage.
  4. In the left-side navigation pane, click Connectors.
  5. On the Connectors page, find the connector whose configurations you want to modify and click Modify Configuration in the Actions column.
  6. 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:
    • 1
    • 2
    • 3
    • 6
    • 12
    • 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.
    Note
    • 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.
    • 4XX: Retries are not supported except in the case where 429 is returned.
    • 5XX: Retries are supported.
    Note The connector calls the InvokeFunction operation to send messages to Function Compute.

Result

After the values of the parameters are changed, go to the Connectors page and find the connector. Click Details in the Actions column. On the Connector Details page, check the updated configurations,