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

[core] Introducing InstrumentedIOContextWithThread. #47831

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

rynewang
Copy link
Contributor

@rynewang rynewang commented Sep 26, 2024

Previously we had several ad-hoc places to do a "thread and io_context" pattern: create a thread dedicated to an asio io_context, then workload can post async tasks onto it. This makes duplicate code: everywhere we create threads, implement stop and join.

Introducing InstrumentedIOContextWithThread that does exactly this and replaces existing usages.

Also fixes some absl::Time computations with best practice.

This is refactoring. Should have no runtime difference.

commit cf3f343
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Wed Sep 25 14:33:23 2024 -0700

    update doc

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

commit a1ab6c6
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Wed Sep 25 14:19:59 2024 -0700

    fix atomics in periodical_runner

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

commit 99f7ba9
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Wed Sep 25 10:23:26 2024 -0700

    size_t -> int for proto

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

commit bbf02cd
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Tue Sep 24 16:06:50 2024 -0700

    fix

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

commit 7cd7705
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Tue Sep 24 12:17:50 2024 -0700

    atomics

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

commit a87c39d
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Tue Sep 24 11:40:12 2024 -0700

    fix atomics now that we have multiple thread reads...

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

commit 36fc808
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Mon Sep 23 16:31:17 2024 -0700

    fix cpp test

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

commit 5d8eaee
Merge: a021521 8173a1e
Author: Ruiyang Wang <56065503+rynewang@users.noreply.github.com>
Date:   Fri Sep 20 15:47:51 2024 -0700

    Merge branch 'master' into dedicated-kv-ioctx

commit a021521
Merge: c84fd80 ab94e48
Author: Ruiyang Wang <56065503+rynewang@users.noreply.github.com>
Date:   Thu Sep 19 17:19:54 2024 -0700

    Merge branch 'master' into dedicated-kv-ioctx

commit c84fd80
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Wed Sep 18 14:30:59 2024 -0700

    move gcs_table_storage_ back to main service.

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

commit bcf81c8
Author: Ruiyang Wang <rywang014@gmail.com>
Date:   Wed Sep 18 13:53:21 2024 -0700

    dedicated kv ioctx

    Signed-off-by: Ruiyang Wang <rywang014@gmail.com>

Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
@rynewang rynewang requested a review from a team as a code owner September 26, 2024 17:47
Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
@rynewang rynewang added the go add ONLY when ready to merge, run all tests label Sep 26, 2024
src/ray/gcs/gcs_server/gcs_server.cc Show resolved Hide resolved
src/ray/gcs/gcs_server/gcs_server.cc Show resolved Hide resolved
src/ray/gcs/gcs_server/gcs_server.cc Show resolved Hide resolved
src/ray/gcs/gcs_server/gcs_server.cc Show resolved Hide resolved
Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
@rynewang rynewang enabled auto-merge (squash) September 26, 2024 20:53
@rynewang rynewang merged commit 6b44557 into ray-project:master Sep 26, 2024
6 checks passed
@rynewang rynewang deleted the ioctx-cls branch September 26, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants