Skip to main content
Skip to main content

Apache Kafka

Zerops provides a fully managed Apache Kafka messaging platform with automated scaling and zero infrastructure overhead, letting developers focus entirely on development.

Supported Versions​

Currently supported Kafka version:

  • 3.9
  • 3.8

Import configuration version:

  • kafka@3.9
  • kafka@3.8

Service Configuration​

Our Kafka implementation features optimized default settings designed for common use cases.

Key Configuration​

  • Client Connections: Data brokers available on port 9092
  • Authentication: Secure SASL PLAIN with automatically generated credentials
  • Data Persistence: Topic data stored indefinitely (no time or size limit)
  • Performance: Optimized settings for reliability and throughput

Resource Allocation​

Zerops automatically allocates resources to your Kafka service based on demand:

  • Memory: Up to 40GB RAM for high-performance message processing
  • Storage: Up to 250GB for persistent storage of messages and logs
  • Auto-scaling: Resources scale up and down automatically based on workload

Deployment Modes​

important

Deployment mode is selected during service creation and cannot be changed later.

High-Availability (HA) Setup​

The recommended solution for production workloads and mission-critical data:

  • Creates a multi-node Kafka cluster with 3 broker nodes
  • Configures 6 partitions across the cluster
  • Implements replication factor of 3 (each broker node has a copy of each partition)
  • Default topic replication is also 3 (overridable by user application)
  • Zerops automatically attempts to repair the cluster and data replication in case of a node failure

Single Node Instance​

Suitable for development and testing environments:

  • Consists of 1 broker node
  • Configures 3 partitions
  • No data replication
  • Lower resource requirements
  • Unavailable during maintenance of its server
Note

Use for development or non-critical data only, as data loss may occur due to container volatility.

Authentication Management​

Authentication credentials are automatically generated and managed by the platform using SASL PLAIN authentication.

Access your credentials through:

  • The service access details in the Zerops GUI
  • Environment variables in your service configuration:
    • user - Username for authentication
    • password - Generated secure password
    • port - Kafka port (value: 9092)

Client Access​

Client implementations differ, please refer to your chosen client's configuration manual for specific details.

Access Methods​

Seed Broker Connection​

Connect to the Kafka cluster using the "seed" (or "bootstrap") broker server:

<hostname>:9092

Specific Broker Access​

To access a single specific broker or a list of all/some brokers:

node-stable-1.db.<hostname>.zerops:9092,node-stable-2.db.<hostname>.zerops:9092,...

Rotating secrets​

Rotating secrets describes when and how to rotate, and what to do when it goes wrong. This section covers what is specific to Kafka.

What is rotated​

  • The password of the zerops user: the password variable.

The user, port and other variables don't change.

During the rotation​

Single-nodeHA
Kafkathe broker restartsall three brokers restart at the same time
Serviceis unavailable during the restartthe whole cluster is unavailable during the restart
Open connectionsare closedare closed
After the restartonly the new password is acceptedonly the new password is accepted

Good to know​

  • Kafka cannot change this password without a restart. One password serves the clients and the traffic between the brokers.
  • In HA mode it is not a rolling restart. All brokers are down together. Stored messages, topics and consumer offsets are kept.
  • Producers and consumers have to reconnect with the new password. A client that keeps the old one gets an authentication error.
  • Messages produced during the restart fail. The client has to send them again.
  • A broker that doesn't stop in time is stopped by force. It recovers its logs when it starts.

Best Practices​

Production Workloads​

  • Use HA mode for all production deployments
  • Configure proper retention policies for your topics based on your data requirements
  • Monitor consumer lag to ensure messages are being processed efficiently
  • Use consumer groups to distribute processing load

Development Environments​

  • Single node instances are suitable for development and testing
  • Be aware of potential data loss in non-HA deployments
  • Consider using smaller message sizes during development to reduce resource usage

Support​

For advanced configurations or custom requirements: