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

Fix rpc_benchmark and add fcall mode #6173

Merged
merged 1 commit into from
Sep 24, 2020

Conversation

nb-ohad
Copy link
Contributor

@nb-ohad nb-ohad commented Sep 17, 2020

Explain the changes

  1. Fix rpc_banchmark (was broken since Move most of APIClient interface to its promise chain #6022 was merged)
  2. Refactor start as an async/await function
  3. Add a --fcall flag to test RPC over fcalll connection (process acts as both server and client)

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

@@ -110,14 +117,15 @@ schema.compile();

// create rpc
const rpc = new RPC({
schema: schema,
client_factory: api.client_factory_from_schema(schema),
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I want to make sure rpc module is usable even without api module.
Do you think this can be done?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok we have it now in a sepetate PR: #6178
We can wait to merge this one untill the other one is merged

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rebased against master and removed dependency with the api module

Copy link
Member

@guymguym guymguym left a comment

Choose a reason for hiding this comment

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

See one comment, but overall this is good. Any results from running it?

Copy link
Member

@guymguym guymguym left a comment

Choose a reason for hiding this comment

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

Please rebase master

@nb-ohad nb-ohad force-pushed the ohad-add-fcall-mode-to-rpc-benchmark branch 2 times, most recently from 61a933a to 9f9d9c6 Compare September 24, 2020 09:29
Copy link
Member

@guymguym guymguym left a comment

Choose a reason for hiding this comment

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

Looks great. Do you have the results of running this between the new fcall that clones messages and the previous which was using JSON.stringify/parse?

@nb-ohad
Copy link
Contributor Author

nb-ohad commented Sep 24, 2020

No, as this change was merged to master after the fcall changes

Also move the start promise chain to async/await

Signed-off-by: nb-ohad <mitrani.ohad@gmail.com>
@nb-ohad nb-ohad force-pushed the ohad-add-fcall-mode-to-rpc-benchmark branch from 9f9d9c6 to 767e785 Compare September 24, 2020 10:48
@nb-ohad nb-ohad merged commit e0a1012 into noobaa:master Sep 24, 2020
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