KafkaConfiguration¶
- class lsst.ts.salkafka.KafkaConfiguration(broker_url: str, registry_url: str, partitions: int, replication_factor: int, wait_for_ack: Union[int, str], sasl_plain_username: Union[None, str] = None, sasl_plain_password: Union[None, str] = None)¶
Bases:
object
Kakfa producer configuration.
- Parameters:
- broker_url
str
Kafka broker URL, without the transport. For example:
my.kafka:9000
- registry_url
str
Schema Registry URL, including the transport. For example:
https://registry.my.kafka/
- partitions
int
Number of partitions for each Kafka topic.
- replication_factor
int
Number of replicas for each Kafka partition.
- wait_for_ack
int
orstr
The only allowd values are:
0: do not wait (unsafe)
1: wait for first kafka broker to respond (recommended)
“all”: wait for all kafka brokers to respond
- sasl_plain_username
None
|str
username for SASL authentication. If specified then you must also specify sasl_plain_password. Default: None
- sasl_plain_password
str
password for SASL authentication. If specified then you must also specify sasl_plain_username. Default: None
- broker_url
Attributes Summary
Attributes Documentation