Test Results

Table 1 Test results

Partitions

Replicas

Synchronous Replication Enabled

batch.size

Cross-AZ Production

Message Production Rate on the Client Side (Records/Second)

CPU Usage on the Server Side (broker-0)

CPU Usage on the Server Side (broker-1)

CPU Usage on the Server Side (broker-2)

3

1

No

1 KB

No

34,128

58.10%

56.70%

53.30%

3

1

No

16 KB

No

102,399

24.10%

25.00%

23.30%

3

1

No

1 KB

Yes

8523

17.20%

16.70%

18.80%

3

3

Yes

1 KB

No

3981

60.00%

55.20%

50.00%

3

3

No

1 KB

No

14,468

86.70%

80.60%

86.20%

Based on the test results, the following conclusions are drawn (for reference only):

  • When the batch.size of production requests is 16 times larger, the message production rate increases, and the CPU usage decreases.
  • Compared with cross-AZ production, intra-AZ production significantly increases message production rate and CPU usage.
  • When the number of replicas changes from 1 to 3, the message production rate decreases significantly, and the CPU usage increases.
  • Compared with synchronous replication, asynchronous replication increases the message production rate and the CPU usage.