第 45 章 TieredStorageCustom 模式参考


使用于: KafkaClusterSpec

TieredStorageCustom 模式属性的完整列表

为 Kafka 启用自定义分层存储。

如果要使用自定义分层存储,您必须首先通过构建自定义容器镜像将 Kafka 插件的分层存储添加到 Apache Kafka 镜像的 Streams 中。

自定义分层存储配置允许使用自定义 RemoteStorageManager 配置。RemoteStorageManager 是一个 Kafka 接口,用于管理 Kafka 和远程分层存储之间的交互。

如果启用了自定义分层存储,Apache Kafka 的流将 TopicBasedRemoteLogMetadataManager 用于 Remote Log Metadata Management (RLMM)。

警告

分层存储是一个早期访问 Kafka 功能,它也可用于 Apache Kafka 的流。由于其 当前限制,不建议在生产环境中使用。

自定义分层存储配置示例

kafka:
  tieredStorage:
    type: custom
    remoteStorageManager:
      className: com.example.kafka.tiered.storage.s3.S3RemoteStorageManager
      classPath: /opt/kafka/plugins/tiered-storage-s3/*
      config:
        # A map with String keys and String values.
        # Key properties are automatically prefixed with `rsm.config.`
        # and appended to Kafka broker config.
        storage.bucket.name: my-bucket
  config:
    ...
    # Additional RLMM configuration can be added through the Kafka config
    # under `spec.kafka.config` using the `rlmm.config.` prefix.
    rlmm.config.remote.log.metadata.topic.replication.factor: 1
Copy to Clipboard Toggle word wrap

45.1. TieredStorageCustom 模式属性

type 属性是一个辨别器,可区分将 TieredStorageCustom 类型的使用与其他子类型(可能在以后添加)。对于类型 TieredStorageCustom,它需要是 custom 的值。

Expand
属性属性类型描述

type

string

必须是 custom

remoteStorageManager

RemoteStorageManager

远程存储管理器的配置。

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat