Modifying Synchronous Replication and Flushing Settings

Synchronous replication: A message is returned to the client only after the message creation request has been received and the message has been acknowledged by all replicas.

Synchronous flushing: A message is immediately flushed to disk once created.

  • Enabled: A message is immediately flushed to disk once it is created, resulting in higher reliability.

  • Disabled: A message is stored in the memory instead of being immediately flushed to disk once created.

The following procedure describes how to modify synchronous replication and synchronous flushing settings on the console.

Procedure

  1. Log in to the management console.

  2. Click image1 in the upper left corner to select a region.

    Note

    Select the region where your Kafka instance is located.

  3. Click Service List and choose Application > Distributed Message Service. The Kafka instance list is displayed.

  4. Click the desired Kafka instance to view the instance details.

  5. Click the Topics tab.

  6. Use either of the following methods to modify synchronous replication and synchronous flushing settings:

    • Select one or more topics and click Edit Topic above the topic list.

    • In the row that contains the topic whose synchronous replication and flushing settings are to be modified, click Edit.

  7. In the Edit Topic dialog box, enable or disable synchronous replication and synchronous flushing, and click OK.

    • To enable them, click image2.

    • To disable them, click image3.

    Note

    • If there is only one replica, synchronous replication cannot be enabled.

    • After enabling synchronous replication, set acks to all or -1 on the client. Otherwise, this function will not take effect.