Skip to content

Add Kafka topic creation scripts for inkless migration#155

Open
ezgong wants to merge 1 commit into
mainfrom
egong-inkless-update-v2
Open

Add Kafka topic creation scripts for inkless migration#155
ezgong wants to merge 1 commit into
mainfrom
egong-inkless-update-v2

Conversation

@ezgong
Copy link
Copy Markdown
Contributor

@ezgong ezgong commented Mar 4, 2026

Update this heading, and describe your changes

Added a script to create topics based on the output of the discovery script.

@@ -0,0 +1,18 @@
Topic: AA_INPUT_PAYLOAD_VPN_IP_QUALITY_GEOLOCATION_TEST TopicId: ueQGsjXIQn2Iipi_vIjn_w PartitionCount: 8 ReplicationFactor: 2 Configs: flush.ms=60000,max.message.bytes=33554432,unclean.leader.election.enable=true,retention.bytes=107374182400
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

rename the topic to something else @ezgong

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

rename the file to diskless instead of inkless

# This pulls just the numbers from the 'key=value' strings
MAX_MSG=$(echo "$line" | sed -n 's/.*max.message.bytes=\([0-9]*\).*/\1/p')
RETENTION=$(echo "$line" | sed -n 's/.*retention.bytes=\([0-9]*\).*/\1/p')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there should be retention time parameter as well..

# This pulls just the numbers from the 'key=value' strings
MAX_MSG=$(echo "$line" | sed -n 's/.*max.message.bytes=\([0-9]*\).*/\1/p')
RETENTION=$(echo "$line" | sed -n 's/.*retention.bytes=\([0-9]*\).*/\1/p')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

retention time is also necessary

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.

2 participants