Page MenuHomePhabricator

Test creation of Kafka v2 topic in EC2 instance and then dev
Open, HighPublic3 Estimated Story Points

Description

User Story: “As a developer deploying the Kafka v2 topics, I want to test that the Terraform update will not break existing infrastructure and applies the appropriate Kafka changes,
so that I can be confident the IAC changes will work as expected.”

Acceptance criteria

The Terraform changes for Kafka work in dev

ToDo

  • Spin up new EC2 instance in same VPC as dev MSK cluster
  • Connect with AWS SSM to the instance and run the Python deployer with write mode disabled
  • Output the MSK changes to a JSON file
  • Review the JSON changes and share with team to verify deployment plan
  • Upgrade the DEV brokers EC2 instances to X-Large, so they are the same as Prod hardware
  • Deploy to DEV and check that the topics and partitions are allocated correctly
  • Monitor DEV reingest of the first two or three projects
Test Strategy

Share the Topic and ACL file with the team. And compare the JSON topic/partition list with the TF code

Things to consider:
  • Check that we can connect to the MSK cluster using an EC2 instance and run the Python deployer script without other IAC dependencies

Event Timeline

Python deploy logs are in GD in folder Misc/kafka_deployer.out

The screenshot shows no structural changes except for 3600 new topics. ACL changes are there as well

image.png (648×1 px, 272 KB)

should we scale the dev cluster? or merge as is?

Recommendations?

I didn't change the broker EC2 instance types, because I wanted to check the added topics first. The team decision was to keep 4 brokers and see how DV copes with the load.

I will update the MR, so DV has the same instance types as PR

Add it as part of the ticket...and address it when ticket is picked up please

ROdonnell-WMF updated the task description. (Show Details)
ROdonnell-WMF updated the task description. (Show Details)

v1 is ingested into compact topics
v2 is not ingested

Possibly an issue with v2 Env variables not being set in dev?