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

Improve HttpOfferSet performance #214

Merged
merged 11 commits into from
May 20, 2021
Merged

Improve HttpOfferSet performance #214

merged 11 commits into from
May 20, 2021

Conversation

lenhattan86
Copy link
Collaborator

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.

Copy link
Contributor

@ridv ridv left a comment

Choose a reason for hiding this comment

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

Left some comments

@lenhattan86
Copy link
Collaborator Author

I saw "CI build error" will push another fix.

Copy link
Contributor

@ridv ridv left a 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

@lenhattan86
Copy link
Collaborator Author

@zorro786 If you have time, please take another look.

Copy link
Collaborator

@zorro786 zorro786 left a 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

@lenhattan86
Copy link
Collaborator Author

@zorro786 another push. Thanks for the quick response.

Copy link
Collaborator

@zorro786 zorro786 left a 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

@lenhattan86
Copy link
Collaborator Author

I resolved the last comment from @zorro786 and replaced "this." in the plugin.

@zorro786 zorro786 merged commit 667a5f1 into aurora-scheduler:master May 20, 2021
ridv pushed a commit that referenced this pull request May 20, 2021
### 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.
@lenhattan86 lenhattan86 added java Pull requests that update Java code enhancement New feature or request labels Jun 17, 2021
@lenhattan86 lenhattan86 added this to the 0.24.2 milestone Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants