与 Redis Cloud 融合

介绍如何将 Redis Cloud 集成到 Confluent Cloud 中。

您可以使用适用于 Confluent Cloud 的 Redis Sink 连接器将数据从 Confluent Cloud 发送到 Redis Cloud 数据库。

先决条件

在将 Redis Sink Confluent 连接器添加到 Confluent Cloud 集群之前:

  1. 在与 Confluent Cloud 集群相同的区域中创建数据库

  2. 如果您决定为 Redis 数据库启用传输层安全性 (TLS),请从 Redis Cloud 控制台下载服务器证书,并将其编码以用于 Confluent Cloud。

  3. 确保您满足 Redis Sink 连接器文档中的先决条件,以使用 Confluent Cloud 设置 Redis Sink。

对服务器证书进行编码

如果您决定为数据库启用传输层安全性 (TLS),则需要对服务器证书进行编码 (redis_ca.pem) 用作 Confluent Cloud Truststore 文件。作步骤:

  1. 使用 base64 实用程序进行编码redis_ca.pem到 base64 中。例如,使用base64命令行实用程序:

    $ base64 -i redis_ca.pem -o <truststore_file_name>
    
  2. Using a text editor, add the following text to the beginning of the truststore file:

    data:text/plain;base64
    
  3. Save and close the truststore file.

Connect the Redis Sink connector to Redis Cloud

To add the Redis Sink connector to your Confluent Cloud environment from the Redis Cloud console:

  1. From the Redis Cloud console, select Account Settings and then select the Integrations tab.

  2. Select the Configure button in the Confluent tile.

    The Confluent integration tile.
  3. This will take you to New Sink Connector on Confluent Cloud. If you have more than one Confluent Cloud environment or Cluster, select your environment and cluster from the lists and select Continue.

    Select your environment and cluster from the Create a Connector selector.
  4. From there, follow the steps to Enter the connector details on the Confluent documentation.

    When you get to the Authentication step, fill in the fields with the following information:

    • Redis hostname: The Public endpoint of your database, without the port number. This can be found in the Redis Cloud console from the database list or from the General section of the Configuration tab for the source database.
    • Redis port number: The database's port. This is the number at the end of your database's Public endpoint.
    • Redis database index: Set this to 0 for a Redis Cloud database.
    • Redis server password: Enter the database password. If you have not set your own database user and password, use the default user password, which appears in the Security section of the Configuration tab of the database details screen.
    • SSL mode: Set depending on what type of TLS authentication is set for your database.
      • If TLS authentication is turned off, select disabled.
      • If TLS authentication is turned on, select server.
    • Trustore file: If the SSL mode is set to server, upload the truststore file created when you encoded the server certificate.
    • Redis Server mode: If OSS Cluster API is enabled, select Cluster. Otherwise, select Standalone.

    Select Continue once you have entered the database information. Enter the rest of the connector details from the Configuration step.

  5. Connect to your database to verify that data is being stored.

RATE THIS PAGE
Back to top ↑