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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit_execution new feature : problem with synchronization between main cron and rules specific cron not matching #2119

Open
damioune123 opened this issue Feb 6, 2019 · 1 comment

Comments

@damioune123
Copy link

damioune123 commented Feb 6, 2019

Hello,
I've encountered a problem with the new limit_execution feature. Let's say the main cron is running every rules every minutes and I have a limit_execution on a specific rule with for example that value : "10 11-17 * * 1-5".
If the cron of the specific rule wakes up at 11:10:02 (because previous rules took sometimes), the rules will be paused until next execution without doing anything.

@rabiashaikabdulkader
Copy link

Hello,
I've encountered a problem with the new limit_execution feature. Let's say the main cron is running every rules every minutes and I have a limit_execution on a specific rule with for example that value : "10 11-17 * * 1-5".
If the cron of the specific rule wakes up at 11:10:02 (because previous rules took sometimes), the rules will be paused until next execution without doing anything.

Hi @damioune123 could you please guide me how the alert.yaml file should like ?

I am unsure on under which hierrachy should we add this attribute limit_execution:

Is it okay if I add the attribute like this :

type: frequency
index: prod-filebeat-k8s-*
timeframe:
  minutes: 0
num_events: 1
limit_execution: "* 02-03 * * *"
filter:
  - term:
      kubernetes.container.name: get-sqs-stats
  - term:
      json.message: "Approximate number of messages on the queue"
  - term:

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

No branches or pull requests

2 participants