Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Fixes #1497 - Do not query app versions in MarathonHealthCheckManager #1568

Merged
merged 1 commit into from
May 27, 2015

Conversation

kolloch
Copy link
Contributor

@kolloch kolloch commented May 26, 2015

.statuses(appId: PathId)

and make MarathonHealthCheckManager data structures more efficient

@kolloch kolloch added this to the 0.8.2 milestone May 26, 2015
protected[this] case class ActiveHealthCheck(
healthCheck: HealthCheck,
actor: ActorRef)

protected[this] var appHealthChecks = Map[AppVersion, Set[ActiveHealthCheck]]()
protected[this] var appHealthChecks: Map[PathId, Map[Timestamp, Set[ActiveHealthCheck]]] = Map.empty
Copy link
Contributor

Choose a reason for hiding this comment

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

Create a map with default Value, so you can get rid of all subsequent getOrlElse statements.

@aquamatthias
Copy link
Contributor

Cool! Especially since the statuses() performance is greatly improved.
Made a suggestions regarding default value - otherwise looks good.

@aquamatthias aquamatthias assigned kolloch and unassigned aquamatthias May 27, 2015
….statuses

and make MarathonHealthCheckManager data structures more efficient
@kolloch kolloch force-pushed the pk/1497_health_statuses_more_efficient branch from 8c5a0cf to 4279b6b Compare May 27, 2015 09:17
@kolloch
Copy link
Contributor Author

kolloch commented May 27, 2015

Followed up on your suggestion. Thanks!

@aquamatthias
Copy link
Contributor

👍

aquamatthias added a commit that referenced this pull request May 27, 2015
…_efficient

Fixes #1497 - Do not query app versions in MarathonHealthCheckManager
@aquamatthias aquamatthias merged commit aa13a8b into master May 27, 2015
@aquamatthias aquamatthias deleted the pk/1497_health_statuses_more_efficient branch May 27, 2015 10:29
@marcomonaco marcomonaco added the pr label Mar 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants