-
Notifications
You must be signed in to change notification settings - Fork 223
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-25] Logging improvements #124
Conversation
hi @wilfred-s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add some changes back to allow progress tracking
some code changes
pkg/cache/cluster_info.go
Outdated
@@ -562,7 +562,14 @@ func (m *ClusterInfo) processAllocationProposalEvent(event *cacheevent.Allocatio | |||
RejectedAllocations: event.AllocationProposals[:1], | |||
}) | |||
return | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no need for an else clause.
logging should be outside
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense. Done.
@@ -109,7 +106,8 @@ func (manager partitionManager) cleanQueues(schedulingQueue *SchedulingQueue) { | |||
} | |||
} else { | |||
// TODO time out waiting for draining and removal | |||
log.Logger().Debug("failed to remove scheduling queue due to existing assigned apps or leaf queues", | |||
log.Logger().Debug("skip removing the scheduling queue", | |||
zap.String("reason", "there are existing assigned apps or leaf queues"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have not used this setup anywhere splitting message into two, not sure about this but don't mind it either
pkg/scheduler/scheduler.go
Outdated
if alloc != nil { | ||
log.Logger().Debug("try to allocate resources for a request from a reservation", | ||
zap.String("allocation", alloc.String())) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is already logged in the scheduling_queue.tryReservedAllocate()
Improve logging messages