Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KafkaSinkSingle: remove dest host config, rely solely on dest port #1371

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

rukai
Copy link
Member

@rukai rukai commented Nov 20, 2023

As per the comment I added:
KafkaSinkSingle is designed solely for the use case of running a shotover instance on the same machine as each kafka instance.

I cannot think of a valid configuration where the destination host is set to a value other than the private ip of the machine.
It could technically be set to localhost but AFAIK that doesnt offer any advantages over just using the private ip.
Is there a case i'm missing?

So given this, allowing the user to set the full address is just a footgun so we should remove this config instead only allowing the user to set the port.

@rukai rukai force-pushed the kafka_sink_single_remove_host_config branch from f47bc89 to 1082b2c Compare November 20, 2023 23:53
@rukai rukai marked this pull request as draft November 21, 2023 00:03
@rukai rukai force-pushed the kafka_sink_single_remove_host_config branch 3 times, most recently from 5ade993 to 7a04ba4 Compare November 24, 2023 01:01
@rukai rukai force-pushed the kafka_sink_single_remove_host_config branch from 7a04ba4 to d3dd1b6 Compare November 24, 2023 01:19
@rukai rukai marked this pull request as ready for review November 24, 2023 01:54
@rukai rukai requested a review from conorbros November 24, 2023 01:54
Copy link
Collaborator

@cjrolo cjrolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment regarding machines that might have several NICs and/or IPs

@rukai rukai enabled auto-merge (squash) November 27, 2023 22:53
@rukai rukai merged commit f4fde8a into shotover:main Nov 27, 2023
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants