Skip to content

GET warning events for alert have some delay #244

Answered by diafour
kingsqv asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Nice to hear you like it!

I don't know the exact reason for your case, but I can guess what causes the delay:

  1. Legacy v0 configuration is used. New configuration has these advantages:
  • Existed Event objects are not ignored, a hook receives them on startup with Synchronization binding context.
  • Support for parallel queues.
  • Binding context contains JSON for Event object, no need to execute kubectl:
    LEVEL=$(jq .[0].object.type $BINDING_CONTEXT_PATH)
    
  • Binding context can combining events (#140) to execute a hook once for several events. This clears the queue much faster.
cat $BINDING_CONTEXT_PATH
[
  {"name":"kubernetes", type:"Event", "watchEvent":"Added", "object":{
     "metadata"…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shurup
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #168 on January 15, 2021 04:30.