Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Run Periodic Scan at random minute #37

Open
gkowalski-google opened this issue Oct 7, 2019 · 1 comment
Open

Run Periodic Scan at random minute #37

gkowalski-google opened this issue Oct 7, 2019 · 1 comment

Comments

@gkowalski-google
Copy link
Contributor

gkowalski-google commented Oct 7, 2019

Story

When Forseti is deployed to GKE, the periodic scan will run every hour at the 0th minute(top of the hour). For example, it will run at 1pm, 2pm, 3pm, etc. This should be run every 2 hours at a random minute. CAI exports might be throttled if there are a lot happening at the same time. This issue was addressed for Forseti on GCE.

Proposed Solution

Update the serverSchedule value to run every 2 hours at a random minute.

Acceptance Criteria

GIVEN: Forseti is deployed on GKE with Helm
WHEN: The Periodic Scan is run
THEN: It is run at a random minute and there are no issues with the CAI export

@kevensen
Copy link
Contributor

kevensen commented Oct 7, 2019

Additional notes. If the Helm charts are invoked via Terraform, then whatever cron string with the random minute Terraform created will be applied here.

What we need to consider is the scenario where the Helm charts are deployed via the Helm CLI. So the default behavior in any case should be generate a random minute (definitely possible in the Helm template),

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants