Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

[httpofferset] put the bad offers to the bottom of the list #336

Merged
merged 43 commits into from
Oct 25, 2021
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d8f6f1f
performance & monitoring improvement
lenhattan86 May 14, 2021
c4e650b
use the same CloseableHttpClient for multiple requests
lenhattan86 May 14, 2021
d3d77a2
fix compiling error
lenhattan86 May 15, 2021
42bf2f7
fix CI error
lenhattan86 May 18, 2021
2a35900
fix CI error
lenhattan86 May 18, 2021
1196da5
resolve review comments
lenhattan86 May 19, 2021
81b887c
resolve PR comments
lenhattan86 May 19, 2021
6d836ea
reflect comments
lenhattan86 May 20, 2021
113a0bc
polish code
lenhattan86 May 20, 2021
dc594d5
polish code
lenhattan86 May 20, 2021
9d6a7f6
remove this.
lenhattan86 May 20, 2021
7bd29c3
update aurora version 0.24.0
lenhattan86 Jun 18, 2021
bd36a72
fix release-candidate error
lenhattan86 Jun 18, 2021
ff11201
Updating CHANGELOG for 0.24.2 release.
lenhattan86 Jun 18, 2021
e600867
Incrementing snapshot version to 0.25.0-SNAPSHOT.
lenhattan86 Jun 18, 2021
c4a6fc3
fixed release candidate
lenhattan86 Jun 18, 2021
48e75b3
fixed release candidate script
lenhattan86 Jun 18, 2021
22bc79e
aurora version 0.24.2
lenhattan86 Jun 18, 2021
6aff891
Updating CHANGELOG.md for 0.24.2 release.
lenhattan86 Jun 18, 2021
daffeee
Incrementing snapshot version to 0.25.0-SNAPSHOT.
lenhattan86 Jun 18, 2021
9f94253
Merge pull request #1 from lenhattan86/origin/http_offer_set_perf_imp…
lenhattan86 Jun 18, 2021
b9c9ce6
Merge branch 'master' into master
lenhattan86 Sep 7, 2021
259eb54
Merge pull request #2 from aurora-scheduler/master
lenhattan86 Sep 7, 2021
cc35f9a
Merge branch 'aurora-scheduler:master' into master
lenhattan86 Oct 5, 2021
1092fee
Merge branch 'aurora-scheduler:master' into master
lenhattan86 Oct 6, 2021
4f437b8
Merge branch 'aurora-scheduler:master' into master
lenhattan86 Oct 11, 2021
8fae700
put the bad offers with too many starting tasks to the bottom
lenhattan86 Oct 15, 2021
e4fccf2
put the bad offers with too many starting tasks to the bottom
lenhattan86 Oct 15, 2021
e04afb9
fix unit test
lenhattan86 Oct 15, 2021
93d85f9
fix unit test
lenhattan86 Oct 15, 2021
a1f8c84
fix unit test
lenhattan86 Oct 15, 2021
d8d7019
Merge branch 'aurora-scheduler:master' into docker_bug
lenhattan86 Oct 18, 2021
4c15ab0
update on unit tests
lenhattan86 Oct 19, 2021
7a60c49
Merge branch 'docker_bug' of https://github.com/lenhattan86/scheduler…
lenhattan86 Oct 19, 2021
5d48911
when no offers, skip calculating stats
lenhattan86 Oct 19, 2021
7b30d1b
fix java.util.ConcurrentModificationException
lenhattan86 Oct 19, 2021
574bb62
periodically fetching the starting tasks
lenhattan86 Oct 20, 2021
7026337
Update docs/features/custom-plugins.md
lenhattan86 Oct 21, 2021
0aaf21b
Update src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetIm…
lenhattan86 Oct 21, 2021
c116586
address comment
lenhattan86 Oct 21, 2021
5664d89
Apply suggestions from code review
lenhattan86 Oct 21, 2021
4af9021
addressed comments
lenhattan86 Oct 21, 2021
1621f86
add parameter
lenhattan86 Oct 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix unit test
lenhattan86 committed Oct 15, 2021
commit a1f8c8407247e3eb8c920d4c3cd2c0ae77a3d582
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@
import org.apache.aurora.gen.ScheduledTask;
import org.apache.aurora.scheduler.base.TaskGroupKey;
import org.apache.aurora.scheduler.base.TaskTestUtil;
import org.apache.aurora.scheduler.filter.SchedulingFilter;
import org.apache.aurora.scheduler.offers.HostOffer;
import org.apache.aurora.scheduler.offers.Offers;
import org.apache.aurora.scheduler.storage.Storage;
@@ -197,9 +198,10 @@ public void testGetOrdered() {

// OFFER_B is put in the bottom of list as it has 1 starting task.
IScheduledTask task = makeTask("id", JOB);
Iterable<HostOffer> sortedOffers = httpOfferSet.getOrdered(
TaskGroupKey.from(task.getAssignedTask().getTask()),
TaskTestUtil.toResourceRequest(task.getAssignedTask().getTask()));
TaskGroupKey groupKey = TaskGroupKey.from(task.getAssignedTask().getTask());
SchedulingFilter.ResourceRequest resourceRequest =
TaskTestUtil.toResourceRequest(task.getAssignedTask().getTask());
Iterable<HostOffer> sortedOffers = httpOfferSet.getOrdered(groupKey, resourceRequest);

assertEquals(3, Iterables.size(sortedOffers));
HostOffer lastOffer = null;