Help Center/ Distributed Message Service for Kafka/ User Guide (ME-Abu Dhabi Region)/ Managing Topics/ Modifying Synchronous Replication and Flushing Settings
Updated on 2023-05-06 GMT+08:00

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 in the upper left corner to select a region.

    Select the region where your Kafka instance is located.

  3. Click and choose Application > Distributed Message Service for Kafka to open the console of DMS for Kafka.
  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 .
    • To disable them, click .
    • 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.