Kafka sending less number of messages in a batch all of a sudden The 2019 Stack Overflow Developer Survey Results Are Inapache spark streaming - kafka - reading older messagesDelete message after consuming it in KAFKAIs key required as part of sending messages to Kafka?kafka to consume only new messagesIs it possible to obtain specific message offset in Kafka+SparkStreaming?Recovery techniques for Spark Streaming scheduling delayLimit Kafka batches size when using Spark StreamingSpark Streaming: Issues when processing time > batch timeKafka 0.10.2 consumers getting massive number of duplicatesSpark Streaming with Kafka - Not all Kafka messages are received
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
How to support a colleague who finds meetings extremely tiring?
How to translate "being like"?
Why doesn't mkfifo with a mode of 1755 grant read permissions and sticky bit to the user?
What is this business jet?
Why didn't the Event Horizon Telescope team mention Sagittarius A*?
Is it possible for absolutely everyone to attain enlightenment?
Can an undergraduate be advised by a professor who is very far away?
Dropping list elements from nested list after evaluation
writing variables above the numbers in tikz picture
Output the Arecibo Message
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
How safe is it to go to Baghdad?
Table Fragmentation
How much of the clove should I use when using big garlic heads?
I am an eight letter word. What am I?
If a sorcerer casts the Banishment spell on a PC while in Avernus, does the PC return to their home plane?
Button changing its text & action. Good or terrible?
Geography at the pixel level
Why not take a picture of a closer black hole?
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
The phrase "to the numbers born"?
Does HR tell a hiring manager about salary negotiations?
Can a flute soloist sit?
Kafka sending less number of messages in a batch all of a sudden
The 2019 Stack Overflow Developer Survey Results Are Inapache spark streaming - kafka - reading older messagesDelete message after consuming it in KAFKAIs key required as part of sending messages to Kafka?kafka to consume only new messagesIs it possible to obtain specific message offset in Kafka+SparkStreaming?Recovery techniques for Spark Streaming scheduling delayLimit Kafka batches size when using Spark StreamingSpark Streaming: Issues when processing time > batch timeKafka 0.10.2 consumers getting massive number of duplicatesSpark Streaming with Kafka - Not all Kafka messages are received
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have implemented spark streaming and currently testing this. I have submitted the program and it looks good. But all of a sudden, after 10 hrs, it started behaving weirdly.
The average number of records per batch (10 secs) would be around 600K messages. But all of a sudden the number of messages for few batches is coming to 1000 though there are thousands of messages. And then the number increases to millions as mentioned below. Also, the total delay is huge when the number of messages is in thousand
log - Batch completed, Total delay :19786 ms for messages:1000
log - Batch completed, Total delay :18787 ms for messages:1000
log - Batch completed, Total delay :16476 ms for messages:1000
log - Batch completed, Total delay :13354 ms for messages:1000
log - Batch completed, Total delay :10290 ms for messages:1000
...
...
log - Batch completed, Total delay :5103 ms for messages:311500
log - Batch completed, Total delay :7599 ms for messages:610250
log - Batch completed, Total delay :7358 ms for messages:803000
log - Batch completed, Total delay :7833 ms for messages:1091250
log - Batch completed, Total delay :7219 ms for messages:1393250
log - Batch completed, Total delay :9601 ms for messages:1930000
log - Batch completed, Total delay :8718 ms for messages:2010250
Not sure if these low number of messages are backlog messages or due to some other config. Could you please let me know why all of a sudden am I getting only 1000 messages in a batch and then huge spike in the count. Are these messages (in 1000) from old batches?
Also, am not sure why the delay time is too high for these low messages though the execution time for the batch is less than 10s
Total delay: 113.748 s for time 1553181660000 ms (execution: 8.314 s)
Is this because they are from old batches?
Thanks
apache-kafka spark-streaming kafka-consumer-api
add a comment |
I have implemented spark streaming and currently testing this. I have submitted the program and it looks good. But all of a sudden, after 10 hrs, it started behaving weirdly.
The average number of records per batch (10 secs) would be around 600K messages. But all of a sudden the number of messages for few batches is coming to 1000 though there are thousands of messages. And then the number increases to millions as mentioned below. Also, the total delay is huge when the number of messages is in thousand
log - Batch completed, Total delay :19786 ms for messages:1000
log - Batch completed, Total delay :18787 ms for messages:1000
log - Batch completed, Total delay :16476 ms for messages:1000
log - Batch completed, Total delay :13354 ms for messages:1000
log - Batch completed, Total delay :10290 ms for messages:1000
...
...
log - Batch completed, Total delay :5103 ms for messages:311500
log - Batch completed, Total delay :7599 ms for messages:610250
log - Batch completed, Total delay :7358 ms for messages:803000
log - Batch completed, Total delay :7833 ms for messages:1091250
log - Batch completed, Total delay :7219 ms for messages:1393250
log - Batch completed, Total delay :9601 ms for messages:1930000
log - Batch completed, Total delay :8718 ms for messages:2010250
Not sure if these low number of messages are backlog messages or due to some other config. Could you please let me know why all of a sudden am I getting only 1000 messages in a batch and then huge spike in the count. Are these messages (in 1000) from old batches?
Also, am not sure why the delay time is too high for these low messages though the execution time for the batch is less than 10s
Total delay: 113.748 s for time 1553181660000 ms (execution: 8.314 s)
Is this because they are from old batches?
Thanks
apache-kafka spark-streaming kafka-consumer-api
add a comment |
I have implemented spark streaming and currently testing this. I have submitted the program and it looks good. But all of a sudden, after 10 hrs, it started behaving weirdly.
The average number of records per batch (10 secs) would be around 600K messages. But all of a sudden the number of messages for few batches is coming to 1000 though there are thousands of messages. And then the number increases to millions as mentioned below. Also, the total delay is huge when the number of messages is in thousand
log - Batch completed, Total delay :19786 ms for messages:1000
log - Batch completed, Total delay :18787 ms for messages:1000
log - Batch completed, Total delay :16476 ms for messages:1000
log - Batch completed, Total delay :13354 ms for messages:1000
log - Batch completed, Total delay :10290 ms for messages:1000
...
...
log - Batch completed, Total delay :5103 ms for messages:311500
log - Batch completed, Total delay :7599 ms for messages:610250
log - Batch completed, Total delay :7358 ms for messages:803000
log - Batch completed, Total delay :7833 ms for messages:1091250
log - Batch completed, Total delay :7219 ms for messages:1393250
log - Batch completed, Total delay :9601 ms for messages:1930000
log - Batch completed, Total delay :8718 ms for messages:2010250
Not sure if these low number of messages are backlog messages or due to some other config. Could you please let me know why all of a sudden am I getting only 1000 messages in a batch and then huge spike in the count. Are these messages (in 1000) from old batches?
Also, am not sure why the delay time is too high for these low messages though the execution time for the batch is less than 10s
Total delay: 113.748 s for time 1553181660000 ms (execution: 8.314 s)
Is this because they are from old batches?
Thanks
apache-kafka spark-streaming kafka-consumer-api
I have implemented spark streaming and currently testing this. I have submitted the program and it looks good. But all of a sudden, after 10 hrs, it started behaving weirdly.
The average number of records per batch (10 secs) would be around 600K messages. But all of a sudden the number of messages for few batches is coming to 1000 though there are thousands of messages. And then the number increases to millions as mentioned below. Also, the total delay is huge when the number of messages is in thousand
log - Batch completed, Total delay :19786 ms for messages:1000
log - Batch completed, Total delay :18787 ms for messages:1000
log - Batch completed, Total delay :16476 ms for messages:1000
log - Batch completed, Total delay :13354 ms for messages:1000
log - Batch completed, Total delay :10290 ms for messages:1000
...
...
log - Batch completed, Total delay :5103 ms for messages:311500
log - Batch completed, Total delay :7599 ms for messages:610250
log - Batch completed, Total delay :7358 ms for messages:803000
log - Batch completed, Total delay :7833 ms for messages:1091250
log - Batch completed, Total delay :7219 ms for messages:1393250
log - Batch completed, Total delay :9601 ms for messages:1930000
log - Batch completed, Total delay :8718 ms for messages:2010250
Not sure if these low number of messages are backlog messages or due to some other config. Could you please let me know why all of a sudden am I getting only 1000 messages in a batch and then huge spike in the count. Are these messages (in 1000) from old batches?
Also, am not sure why the delay time is too high for these low messages though the execution time for the batch is less than 10s
Total delay: 113.748 s for time 1553181660000 ms (execution: 8.314 s)
Is this because they are from old batches?
Thanks
apache-kafka spark-streaming kafka-consumer-api
apache-kafka spark-streaming kafka-consumer-api
edited Mar 22 at 4:31
Indira
asked Mar 22 at 4:15
IndiraIndira
2915
2915
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292825%2fkafka-sending-less-number-of-messages-in-a-batch-all-of-a-sudden%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292825%2fkafka-sending-less-number-of-messages-in-a-batch-all-of-a-sudden%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown