|
1 |
| -// ====== Generated from librdkafka 2.3.0 file CONFIGURATION.md ====== |
| 1 | +// ====== Generated from librdkafka 2.6.1 file CONFIGURATION.md ====== |
2 | 2 | // Code that generated this is a derivative work of the code from Nam Nguyen
|
3 | 3 | // https://gist.github.com/ntgn81/066c2c8ec5b4238f85d1e9168a04e3fb
|
4 | 4 |
|
@@ -620,12 +620,33 @@ export interface GlobalConfig {
|
620 | 620 | "client.rack"?: string;
|
621 | 621 |
|
622 | 622 | /**
|
623 |
| - * Controls how the client uses DNS lookups. By default, when the lookup returns multiple IP addresses for a hostname, they will all be attempted for connection before the connection is considered failed. This applies to both bootstrap and advertised servers. If the value is set to `resolve_canonical_bootstrap_servers_only`, each entry will be resolved and expanded into a list of canonical names. NOTE: Default here is different from the Java client's default behavior, which connects only to the first IP address returned for a hostname. |
| 623 | + * The backoff time in milliseconds before retrying a protocol request, this is the first backoff time, and will be backed off exponentially until number of retries is exhausted, and it's capped by retry.backoff.max.ms. |
| 624 | + * |
| 625 | + * @default 100 |
| 626 | + */ |
| 627 | + "retry.backoff.ms"?: number; |
| 628 | + |
| 629 | + /** |
| 630 | + * The max backoff time in milliseconds before retrying a protocol request, this is the atmost backoff allowed for exponentially backed off requests. |
| 631 | + * |
| 632 | + * @default 1000 |
| 633 | + */ |
| 634 | + "retry.backoff.max.ms"?: number; |
| 635 | + |
| 636 | + /** |
| 637 | + * Controls how the client uses DNS lookups. By default, when the lookup returns multiple IP addresses for a hostname, they will all be attempted for connection before the connection is considered failed. This applies to both bootstrap and advertised servers. If the value is set to `resolve_canonical_bootstrap_servers_only`, each entry will be resolved and expanded into a list of canonical names. **WARNING**: `resolve_canonical_bootstrap_servers_only` must only be used with `GSSAPI` (Kerberos) as `sasl.mechanism`, as it's the only purpose of this configuration value. **NOTE**: Default here is different from the Java client's default behavior, which connects only to the first IP address returned for a hostname. |
624 | 638 | *
|
625 | 639 | * @default use_all_dns_ips
|
626 | 640 | */
|
627 | 641 | "client.dns.lookup"?: 'use_all_dns_ips' | 'resolve_canonical_bootstrap_servers_only';
|
628 | 642 |
|
| 643 | + /** |
| 644 | + * Whether to enable pushing of client metrics to the cluster, if the cluster has a client metrics subscription which matches this client |
| 645 | + * |
| 646 | + * @default true |
| 647 | + */ |
| 648 | + "enable.metrics.push"?: boolean; |
| 649 | + |
629 | 650 | /**
|
630 | 651 | * Enables or disables `event.*` emitting.
|
631 | 652 | *
|
@@ -703,20 +724,6 @@ export interface ProducerGlobalConfig extends GlobalConfig {
|
703 | 724 | */
|
704 | 725 | "retries"?: number;
|
705 | 726 |
|
706 |
| - /** |
707 |
| - * The backoff time in milliseconds before retrying a protocol request, this is the first backoff time, and will be backed off exponentially until number of retries is exhausted, and it's capped by retry.backoff.max.ms. |
708 |
| - * |
709 |
| - * @default 100 |
710 |
| - */ |
711 |
| - "retry.backoff.ms"?: number; |
712 |
| - |
713 |
| - /** |
714 |
| - * The max backoff time in milliseconds before retrying a protocol request, this is the atmost backoff allowed for exponentially backed off requests. |
715 |
| - * |
716 |
| - * @default 1000 |
717 |
| - */ |
718 |
| - "retry.backoff.max.ms"?: number; |
719 |
| - |
720 | 727 | /**
|
721 | 728 | * The threshold of outstanding not yet transmitted broker requests needed to backpressure the producer's message accumulator. If the number of not yet transmitted requests equals or exceeds this number, produce request creation that would have otherwise been triggered (for example, in accordance with linger.ms) will be delayed. A lower number yields larger and more effective batches. A higher value can improve latency when using compression on slow machines.
|
722 | 729 | *
|
@@ -810,12 +817,24 @@ export interface ConsumerGlobalConfig extends GlobalConfig {
|
810 | 817 | "heartbeat.interval.ms"?: number;
|
811 | 818 |
|
812 | 819 | /**
|
813 |
| - * Group protocol type. NOTE: Currently, the only supported group protocol type is `consumer`. |
| 820 | + * Group protocol type for the `classic` group protocol. NOTE: Currently, the only supported group protocol type is `consumer`. |
814 | 821 | *
|
815 | 822 | * @default consumer
|
816 | 823 | */
|
817 | 824 | "group.protocol.type"?: string;
|
818 | 825 |
|
| 826 | + /** |
| 827 | + * Group protocol to use. Use `classic` for the original protocol and `consumer` for the new protocol introduced in KIP-848. Available protocols: classic or consumer. Default is `classic`, but will change to `consumer` in next releases. |
| 828 | + * |
| 829 | + * @default classic |
| 830 | + */ |
| 831 | + "group.protocol"?: 'classic' | 'consumer'; |
| 832 | + |
| 833 | + /** |
| 834 | + * Server side assignor to use. Keep it null to make server select a suitable assignor for the group. Available assignors: uniform or range. Default is null |
| 835 | + */ |
| 836 | + "group.remote.assignor"?: string; |
| 837 | + |
819 | 838 | /**
|
820 | 839 | * How often to query for the current client group coordinator. If the currently assigned coordinator is down the configured query interval will be divided by ten to more quickly recover in case of coordinator reassignment.
|
821 | 840 | *
|
|
0 commit comments