Questions about logging #330
Replies: 4 comments 1 reply
-
Hi @ncupertino , Punctuator is a scheduler, you can access it if you use the Processor API (low level api The Task is assigned to a single partition, so |
Beta Was this translation helpful? Give feedback.
-
Forgive me, I still don't understand. How can I access via the API? Can you provide me with an example? I have another question. Can the thread read more than one partition? In my scenario I have a consumer hosted on a k8s with 3 active PODS. As you explained, do the 3 PODS read the 3 partitions randomly? |
Beta Was this translation helpful? Give feedback.
-
Processor API Example : https://github.com/LGouellec/kafka-streams-dotnet/blob/develop/test/Streamiz.Kafka.Net.Tests/Processors/KStreamProcessorAPITests.cs Thread can read more than one partition for sure. If you scale your app with 1 instance, and 1 thread per instance, let's suppose your source topic has 4 partitions. You have 1 thread = 4 partitions, 2 threads = 2 partitions each ..., 4 threads = 1 partition each 3 PODS with a source topic with 3 partitions = 1 pod per partition yes. |
Beta Was this translation helpful? Give feedback.
-
Now I'm confused lol. You said that my log was committed to 2 partitions. Can you explain this log better to me? I will post an image here. In this image, it means, for example, I processed 29 records and of these 29 records I committed 1 time. Am I correct in my analysis? Could you please suggest what I could put more information in the log> |
Beta Was this translation helpful? Give feedback.
-
I have an application where this is logging: Processed 58 total records, ran 0 punctuators and committed 2 total tasks since the last update
Can you explain to me what ran and committed 2 mean?
Beta Was this translation helpful? Give feedback.
All reactions