-
Notifications
You must be signed in to change notification settings - Fork 15
Improve HttpOfferSet performance #214
Improve HttpOfferSet performance #214
Conversation
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.
Left some comments
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
I saw "CI build error" will push another fix. |
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.
One minor fix and it's ready from my end
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
@zorro786 If you have time, please take another look. |
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.
Left some more comments
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/io/github/aurora/scheduler/offers/HttpOfferSetImpl.java
Outdated
Show resolved
Hide resolved
@zorro786 another push. Thanks for the quick response. |
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.
Last review comment above and LGTM
I resolved the last comment from @zorro786 and replaced "this." in the plugin. |
### Description: - Improve json encoding performance by replacing gson with jackson. - Use ClosableHttpClient for multiple requests. - Monitor the differences between the original offerset and the received ones. ### Testing Done: - performance test on 2000 offers with ~3ms improvement per scheduling cycle. - verify the correctness on 2-agent cluster setup.
Description:
Testing Done: