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

[YUNIKORN-2052] Logging Enhancement for Preemption #678

Closed

Conversation

rrajesh-cloudera
Copy link
Contributor

@rrajesh-cloudera rrajesh-cloudera commented Oct 20, 2023

Logging Enhancement for Preemption Logs

Newly Added fields in the Preemption Logs

  • applicationID of ask => "askApplicationID"
  • allocationKey of ask => "askAllocationKey"
  • queue of ask => "askQueue"
  • queue of victim => "victimQueue"

Also, rename a few of the existing output items:

  • "applicationID" => "victimApplicationID"
  • "allocationKey" => "victimAllocationKey"
  • "nodeID" -> victimNodeID
  • "resources" -> victimAllocatedResource

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-2052

Copy link
Contributor

@manirajv06 manirajv06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. Minor nit.

zap.Stringer("resources", victim.GetAllocatedResource()),
zap.String("askApplicationID", p.ask.applicationID),
zap.String("askAllocationKey", p.ask.allocationKey),
zap.String("askQueue", p.ask.String()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of p.ask.String(), it should be p.queue.

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #678 (2ceff58) into master (46ad05a) will increase coverage by 0.00%.
The diff coverage is 75.00%.

@@           Coverage Diff           @@
##           master     #678   +/-   ##
=======================================
  Coverage   77.69%   77.70%           
=======================================
  Files          79       79           
  Lines       13089    13095    +6     
=======================================
+ Hits        10170    10175    +5     
- Misses       2594     2595    +1     
  Partials      325      325           
Files Coverage Δ
pkg/scheduler/objects/preemption.go 76.42% <75.00%> (+0.06%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

pkg/scheduler/objects/preemption.go Outdated Show resolved Hide resolved
pkg/scheduler/objects/preemption.go Show resolved Hide resolved
@manirajv06
Copy link
Contributor

@wilfred-s Do you have anymore comments?

@rrajesh-cloudera rrajesh-cloudera changed the title Logging Enhancement for Preemption [YUNIKORN-2052] Logging Enhancement for Preemption Oct 20, 2023
Copy link
Contributor

@wilfred-s wilfred-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

3 participants