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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force close #73

Closed
wants to merge 1 commit into from
Closed

Force close #73

wants to merge 1 commit into from

Conversation

matzew
Copy link
Member

@matzew matzew commented Mar 13, 2019

I think I am hitting:

when using the the client, in a (kafka) consumer, like:

...
			go func(pc cluster.PartitionConsumer) {
				for msg := range pc.Messages() {
					log.Printf("Received %s", msg.Value)
					go post(msg.Value, ce)
					consumer.MarkOffset(msg, "") // mark message as processed
				}
			}(part)
...

where post() is like:

func post(data interface{}, ce client.Client) {
	event := cloudevents.Event{
		Context: cloudevents.EventContextV02{
			Type:   "kafka-event",
			Source: *types.ParseURLRef(topic),
		}.AsV02(),
		Data: data,
	}
	if err := ce.Send(context.TODO(), event); err != nil {
		log.Printf("sending event to channel failed: %v", err)
	}
}

I see, which really high load (on a single partition), lot's of

2019/03/13 19:27:59 sending event to channel failed: Post http://localhost:7080: dial tcp [::1]:7080: socket: too many open files

with locally hacking, this is way way less .... 馃

ping @n3wscott

@n3wscott
Copy link
Member

Interesting. I will test it out locally

@n3wscott
Copy link
Member

Closing in favor of #77

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.

None yet

2 participants