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

Job stats server enhancements #24

Merged
merged 7 commits into from
Jan 2, 2024
Merged

Conversation

mahendrapaipuri
Copy link
Owner

  • BatchJob struct now includes more job properties
  • Ensure that we dont duplicate entries in DB
  • Add CLI arg to stats_server to set admin users
  • Allow admins to impersonate users
  • Limit query window to 3 months
  • Ability to make a request for specific jobs

* Include all possible job props to DB to render them in dashboard

* Use model.Duration from prometheus/common for CLI args that need time duration. More user friendly

* Ensure that we do not duplicate entries in DB using INSERT or REPLACE. This enables us to query for running jobs as well in future if necessary

* Create a unique index on jobid and start time

* Minor formatting updates

Signed-off-by: Mahendra Paipuri <[email protected]>
* Add admin-users CLI arg. Admin users can impersonate users by querying for different user set in specific header

* Add ability to query for a single job based on jobid and/or jobuuid

* Pass entire DB config to server

* Limit query window to 3 months to prevent making big queries

* Add new test scenarios for testing different end points

* Update test fixtures and Makefile

Signed-off-by: Mahendra Paipuri <[email protected]>
* The current logic might end up in a situation where vacuuming will never be triggered

* Use only constraint of hour of vacuuming along with vacuum interval of 1 week

Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
@mahendrapaipuri mahendrapaipuri merged commit 2f3cd1e into main Jan 2, 2024
5 checks passed
@mahendrapaipuri mahendrapaipuri deleted the job_stats_server_feats branch January 2, 2024 11:29
@mahendrapaipuri mahendrapaipuri added the enhancement New feature or request label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant