Skip to content

fix(modelgateway): kafka topics with correct number of partitions #5427

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

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

lc525
Copy link
Member

@lc525 lc525 commented Mar 12, 2024

The number of partitions with which model-specific kafka topics is created needs to be the same as the number of partitions for other topics (pipelines/experiments/etc). This is a Kafka Streams constraint in order for joins to work correctly.

Until now, an incorrect environment variable was being passed to modelgateway, which meant that it was always creating topics with 1 partition. This in turn led to dataflow processing getting stuck whenever other topics were created with multiple partitions

Fixed issues:

  • INFRA-822: Pipelines get stuck on triggers/joins

The number of partitions with which model-specific kafka topics
is created needs to be the same as the number of partitions for
other topics (pipelines/experiments/etc). This is a Kafka Streams
constraint in order for joins to work correctly.

Until now, an incorrect environment variable was being passed to
modelgateway, which meant that it was always creating topics with
1 partition. This in turn led to dataflow processing getting stuck
whenever other topics were created with multiple partitions

**Fixed issues**:
- INFRA-822: Pipelines get stuck on triggers/joins
@lc525 lc525 added the v2 label Mar 12, 2024
@lc525 lc525 requested a review from sakoush as a code owner March 12, 2024 11:21
@@ -252,7 +252,7 @@ serverConfig:
pullPolicy: IfNotPresent
registry: docker.io
repository: seldonio/mlserver
tag: 1.3.5
tag: 1.5.0
Copy link
Member Author

Choose a reason for hiding this comment

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

without this change, on automated re-generation of helm-charts & yamls, 1.3.5 was being introduced instead of 1.5.0

Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch

Copy link
Contributor

@sakoush sakoush left a comment

Choose a reason for hiding this comment

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

lgtm

@lc525 lc525 merged commit bdeba06 into SeldonIO:v2 Mar 12, 2024
@lc525 lc525 deleted the fix.dataflow.infra-822.pipeline-stuck branch March 12, 2024 11:58
jtayl222 pushed a commit to jtayl222/seldon-core that referenced this pull request Jul 20, 2025
…ldonIO#5427)

The number of partitions with which model-specific kafka topics
is created needs to be the same as the number of partitions for
other topics (pipelines/experiments/etc). This is a Kafka Streams
constraint in order for joins to work correctly.

Until now, an incorrect environment variable was being passed to
modelgateway, which meant that it was always creating topics with
1 partition. This in turn led to dataflow processing getting stuck
whenever other topics were created with multiple partitions

**Fixed issues**:
- INFRA-822: Pipelines get stuck on triggers/joins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants