🕰️ 작성일 : 2025.06.25

Q : Amazon MSK의 Configuration을 업데이트하고자 합니다. message.max.bytes 의 Configuration을 추가하고자 할 경우 클러스터에 어떤 영향이 있을까요?

A : Amazon MSK는 Configuration 업데이트 시 기본적으로 하나의 브로커씩 업데이트를 적용하는 Rolling 방식의 업데이트를 수행합니다. 그러나 클러스터 전체에 영향을 주는 구성 변경의 경우 전체가 잠시 중단될 수 있습니다. 업데이트하고자 하는 max.message.bytes 는 한번에 토픽에 전송 할 수 있는 레코드의 최대 메세지 크기이기 때문에 Topic-Level의 Configuration 입니다. 이는 클러스터 전체 업데이트가 아닌 Rolling 방식의 업데이트로 진행됩니다.

Configuration 업데이트 확인하기

message.max.bytes=2097152

결론

[ec2-user@ip-10-10-10-246 bin]$ ./kafka-configs.sh --bootstrap-server $BOOTSTRAP_SERVERS --entity-type topics --describe --entity-name topic3
Dynamic configs for topic topic3 are:
  max.message.bytes=64000 sensitive=false synonyms={DYNAMIC_TOPIC_CONFIG:max.message.bytes=64000, STATIC_BROKER_CONFIG:message.max.bytes=2097152, DEFAULT_CONFIG:message.max.bytes=1048588}