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

Add interval option to config auto-update schedule #188

Open
kaisecheng opened this issue Aug 31, 2021 · 2 comments
Open

Add interval option to config auto-update schedule #188

kaisecheng opened this issue Aug 31, 2021 · 2 comments

Comments

@kaisecheng
Copy link
Contributor

kaisecheng commented Aug 31, 2021

Since 7.14, geoip check database updates every 24h since the server start time. The suggestion is to add interval option to allow users to change the checking interval in hours. The number should be >= 24 and < 168 (7 days)

xpack.geoip.download.interval=72
@kaisecheng
Copy link
Contributor Author

open question

  1. Is the interval only for database update check? Is the expiry routine running every day to respect the 30 days expiry rule?
  2. What is the motivation of have interval config? Checking updates every three days can save some server load considering users deploy ten thousand instances.

@kaisecheng
Copy link
Contributor Author

  1. elasticsearch check if db is valid on every use of geoip processor and tag doc if that’s not the case. cleanup of expired databases is done with ingest.geoip.downloader.poll.interval
  2. Check every 3 days is to reduce bandwidth, it’s configurable to allow for checking more aggressive (every day) if customer wants to always have freshest data possible or for tests where it’s easier to change this interval and wait seconds instead of days

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

No branches or pull requests

2 participants