-
Notifications
You must be signed in to change notification settings - Fork 328
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
Reduce RPC cost of oscar by removing unnecessary tasks #2597
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.
LGTM, some comments are needed.
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.
LGTM
except asyncio.CancelledError: | ||
try: | ||
await self.cancel(address, message.message_id) | ||
except CannotCancelTask: | ||
# cancel failed, already finished | ||
raise asyncio.CancelledError | ||
except: # noqa: E722 # nosec # pylint: disable=bare-except | ||
pass |
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.
Why ignore the exception?
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.
To make the result consistent with async.wait
which does not raises. If any errors occur, await future
will raise it.
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.
LGTM
…ks (mars-project#2597) Merge branch cherry-pick-rpc-opt-mars-project#2597 of git@gitlab.alipay-inc.com:ray-project/mars.git into master https://code.alipay.com/ray-project/mars/pull_requests/217 Signed-off-by: 捕牛 <hejialing.hjl@antgroup.com> * Reduce RPC cost of oscar by removing unnecessary tasks (mars-project#2597) # Conflicts: # mars/deploy/oscar/session.py # mars/deploy/oscar/tests/test_local.py # mars/oscar/backends/pool.py # mars/oscar/backends/ray/communication.py # mars/services/scheduling/supervisor/assigner.py
What do these changes do?
Reduce RPC cost of oscar by removing unnecessary tasks. Now Oscar can handle 4500 calls pser sec instead of 2500 before optimization.
Related issue number
Fixes #xxxx
Check code requirements