Skip to content

Commit

Permalink
Increase retention to 3GB und 300mb segments
Browse files Browse the repository at this point in the history
  • Loading branch information
weeco committed Mar 26, 2021
1 parent fcd7fb4 commit 47be3f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/kafka/config_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func NewKgoConfig(cfg *Config, logger *zap.Logger) ([]kgo.Opt, error) {
kgo.SeedBrokers(cfg.Brokers...),
kgo.MaxVersions(kversion.V2_6_0()),
kgo.ClientID(cfg.ClientID),
kgo.RequiredAcks(kgo.LeaderAck()),
}

// Create Logger
Expand Down
4 changes: 2 additions & 2 deletions pkg/shop/frontend_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func (svc *FrontendService) produceFrontendEvent(event fake.FrontendEvent) error
// createKafkaTopic tries to create the Kafka topic
func (svc *FrontendService) createKafkaTopic(ctx context.Context) error {
cleanupPolicy := "delete"
retentionBytes := "1000000000" // 1GB
segmentBytes := "1000000" // 100MB
retentionBytes := "3000000000" // 3GB
segmentBytes := "300000000" // 300MB
req := kmsg.CreateTopicsRequest{
Topics: []kmsg.CreateTopicsRequestTopic{
{
Expand Down

0 comments on commit 47be3f8

Please sign in to comment.