Skip to content
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

This commit addresses multiple problems in the broker part of AMS #9

Merged
merged 5 commits into from
Nov 7, 2023

Conversation

lpottier
Copy link
Collaborator

@lpottier lpottier commented Sep 20, 2023

  • we are not sending input/output as encoded string anymore, we send binary blobs
  • base64 has been removed
  • a bug has been fixed with (very) old libevent version (<= 2.0.21-stable)
  • offloading inputs/outputs to the thread managing RMQ is now much faster (removed artificial sleeps)
  • Removed EventBuffer to simplify the code
  • Removed Pthreads

The structure of the binary messages that we send is documentation in the code.

- we are not sending input/output as encoded string anymore, we send binary blobs
- base64 has been removed
- a bug has been fixed with (very) old libevent version (<= 2.0.21-stable)
- offloading inputs/outputs to the thread managing RMQ is now much faster

Signed-off-by: Loic Pottier <pottier1@llnl.gov>
@lpottier lpottier requested a review from koparasy September 20, 2023 20:25
@lpottier lpottier self-assigned this Sep 20, 2023
@lpottier lpottier requested a review from koparasy November 2, 2023 01:36
Copy link
Member

@koparasy koparasy left a comment

Choose a reason for hiding this comment

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

@lpottier The PR look really good. Good job. I went through and commented mainly style changes. I will go deeper tomorrow and follow the architecture and the underlying logic. The PR will benefit if you add a high level description of the process. Briefly introducing the RMQ concept to a new developer. Thanks!

…rt pointers.

Signed-off-by: Loic Pottier <pottier1@llnl.gov>
Signed-off-by: Loic Pottier <pottier1@llnl.gov>
…code.

Signed-off-by: Loic Pottier <pottier1@llnl.gov>
… ResourceManager::copy

Signed-off-by: Loic Pottier <pottier1@llnl.gov>
@lpottier lpottier force-pushed the bugfix/rabbitmq_perf branch from 5efbc01 to d9c2bed Compare November 7, 2023 00:00
@koparasy koparasy merged commit 61bfb06 into feature/restructure Nov 7, 2023
koparasy pushed a commit that referenced this pull request Nov 7, 2023
* This commit addresses multiple problems in the broker part of AMS
- we are not sending input/output as encoded string anymore, we send binary blobs
- base64 has been removed
- a bug has been fixed with (very) old libevent version (<= 2.0.21-stable)
- offloading inputs/outputs to the thread managing RMQ is now much faster

* Moved to ResourceManager, created AMSMessage structures, moved to smart pointers.

* Complete re-design of the RabbitMQ backend

* Removed EventBuffer, removed pthread and signals. Big cleanup of the code.

* Added documentation and new AMSMsgHeader class + moved from memcpy to ResourceManager::copy
koparasy pushed a commit that referenced this pull request Nov 9, 2023
* This commit addresses multiple problems in the broker part of AMS
- we are not sending input/output as encoded string anymore, we send binary blobs
- base64 has been removed
- a bug has been fixed with (very) old libevent version (<= 2.0.21-stable)
- offloading inputs/outputs to the thread managing RMQ is now much faster

* Moved to ResourceManager, created AMSMessage structures, moved to smart pointers.

* Complete re-design of the RabbitMQ backend

* Removed EventBuffer, removed pthread and signals. Big cleanup of the code.

* Added documentation and new AMSMsgHeader class + moved from memcpy to ResourceManager::copy
koparasy pushed a commit that referenced this pull request Nov 10, 2023
* This commit addresses multiple problems in the broker part of AMS
- we are not sending input/output as encoded string anymore, we send binary blobs
- base64 has been removed
- a bug has been fixed with (very) old libevent version (<= 2.0.21-stable)
- offloading inputs/outputs to the thread managing RMQ is now much faster

* Moved to ResourceManager, created AMSMessage structures, moved to smart pointers.

* Complete re-design of the RabbitMQ backend

* Removed EventBuffer, removed pthread and signals. Big cleanup of the code.

* Added documentation and new AMSMsgHeader class + moved from memcpy to ResourceManager::copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants