<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ding-Xin Chen on Medium]]></title>
        <description><![CDATA[Stories by Ding-Xin Chen on Medium]]></description>
        <link>https://medium.com/@dancingactor?source=rss-4db8d7623d0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gAiTjeGpW_v5WXYeOhQIyg.png</url>
            <title>Stories by Ding-Xin Chen on Medium</title>
            <link>https://medium.com/@dancingactor?source=rss-4db8d7623d0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:57:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dancingactor/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ray Contribution Diary 134]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-134-f626e356f790?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f626e356f790</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 01:45:25 GMT</pubDate>
            <atom:updated>2026-06-15T01:45:25.895Z</atom:updated>
            <content:encoded><![CDATA[<h4>Continued working on 7/n RaySyncer updates and learned about io_context</h4><p>Goal: 9 hr / Actual: 8 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/62005">[core] Fix GPU fractional scheduling by tracking per-instance availability</a></p><ul><li>Continued working on 7/n <strong>RaySyncer Updates<br>► </strong>Update LocalResourceManager::PopulateResourceViewSyncMessage to populate its per-instance vector resource view<br>► Update the original scalar resources_available field from a string to a vector in ResourceViewSyncMessage<br>► Since this PR&#39;s scope focuses solely on RaySyncer changes, both the GCS Placement Group and Raylet task scheduling logic remain unchanged<br> ►When the GCS receives a per-instance vector resource view from Raylets (for example, inside GcsResourceManager::ConsumeSyncMessage()), it should aggregate the vector back into a scalar and store it in ClusterResourceManager <br> ► When a Raylet receives a per-instance resource view of other raylets from the GCS, it should also aggregate the vector in the message into a scalar and store it in ClusterResourceManager</li><li>Learned about Asynchronous in C++ and io_context<br>► In summary, you can think of asynchronous execution as a mechanism where, instead of a thread completely executing a task and waiting idly for it to complete, the thread simply registers the task with the Operating System. The thread then lets the OS notify it whenever the task is ready so it can execute the callback<br>► Asynchronous means that when a thread executes a line of code — for example, reading data from a remote server — it doesn’t have to wait. In a synchronous mechanism, the thread would need to wait until the entire process completes before it could move on to execute the next line of code. However, in an asynchronous mechanism, when the thread executes that line of code, it simply registers the event with the Operating System. The thread then immediately moves on to execute the next line of code, leaving the OS to notify it whenever the data is received</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*1XqNeFek9-gkgIr_M9GZCA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f626e356f790" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 133]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-133-2aac21a4e80b?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aac21a4e80b</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 01:44:14 GMT</pubDate>
            <atom:updated>2026-06-15T01:44:14.833Z</atom:updated>
            <content:encoded><![CDATA[<h4>Found a potential issue regarding RaySyncer::BroadcastMessage and cnontinued working on 7/n RaySyncer Updates</h4><p>Goal: 9 hr / Actual: 8 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/62005">[core] Fix GPU fractional scheduling by tracking per-instance availability</a></p><ul><li>Continued working on 7/n <strong>RaySyncer Updates</strong></li><li>While tracing how cluster resource views sync from the GCS to Raylets via RaySyncer, I noticed an architectural pattern that might be an unnecessary coupling or a minor code smell</li><li>Currently, the client-side reactor handler inside RaySyncer::Connect() (which is how a Raylet handles incoming messages from the GCS) is wired directly to BroadcastMessage:</li></ul><pre>/* message_processor */ [this](auto msg) { BroadcastMessage(std::move(msg)); }</pre><ul><li>BroadcastMessage handles both local state consumption (NodeState::ConsumeSyncMessage) and peer broadcasting. Because a Raylet is a leaf node that only needs to consume updates from the GCS and shouldn&#39;t broadcast them further, routing its incoming messages through a &quot;broadcast&quot; function feels counterintuitive</li><li>Is it worth refactoring this to make the leaf-node consumption explicit (e.g., creating a separate ConsumeMessage path), or is the current unified BroadcastMessage approach a cleaner abstraction because it enforces the &quot;broadcast only if new to you&quot; invariant across both hub and leaf nodes? Leaving this as an open question for now</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*ofGYwWgygrf2Xl3rW-WytQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aac21a4e80b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 132]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-132-35acf1347924?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/35acf1347924</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 16:15:26 GMT</pubDate>
            <atom:updated>2026-06-03T16:15:26.923Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reviewed [Autoscaler][v2] Fix RAY_STOP_REQUESTED → RAY_RUNNING fallback when drain has succeeded and particpated in OpenSource4You activity</h4><p>Goal: 9 hr / Actual: 7 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/63508">[Core][GPU fraction][6/n] Migrate Node struct and callers from original class to base class pointer type</a></p><ul><li>Reviewed <a href="https://github.com/ray-project/ray/pull/63424">[Autoscaler][v2] Fix RAY_STOP_REQUESTED → RAY_RUNNING fallback when drain has succeeded</a></li><li>Participated in OpenSource4You activity</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/0*YqVPGg-Ur4-QqNOB" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35acf1347924" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 131]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-131-c4b30c0fc6d1?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4b30c0fc6d1</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 16:11:24 GMT</pubDate>
            <atom:updated>2026-06-03T16:11:24.035Z</atom:updated>
            <content:encoded><![CDATA[<h4>Discussed with Yicheng and decided that we should let RaySyncer send the per-instance version of resources_available in ResourceViewSyncMessage</h4><p>Goal: 9 hr / Actual: 7 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/63508">[Core][GPU fraction][6/n] Migrate Node struct and callers from original class to base class pointer type</a></p><ul><li>Discussed with Yicheng and decided that we should let RaySyncer send the per-instance version of resources_available in ResourceViewSyncMessage</li><li>Configure LocalResourceManager to only report the vector version</li><li>Have Raylet and GCS scheduling logic maintain the scalar version by aggregating the vector to a scalar</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*RDHFXuOHgjVLvhQkGAz2vw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4b30c0fc6d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 130]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-129-7dd30f8d2a45?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7dd30f8d2a45</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Sun, 31 May 2026 13:29:46 GMT</pubDate>
            <atom:updated>2026-06-03T03:16:46.744Z</atom:updated>
            <content:encoded><![CDATA[<h4>Continued working on 7/n and learned how RaySyncer works using a Publish/Subscribe patter</h4><p>Goal: 9 hr / Actual: 5 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/63508">[Core][GPU fraction][6/n] Migrate Node struct and callers from original class to base class pointer type</a></p><ul><li>Continued working on 7/n, RaySyncer changes.</li><li>Learned how RaySyncer works using a Publish/Subscribe pattern, where NodeManager registers LocalResourceManager as the RESOURCE_VIEW reporter and itself as the receiver.</li><li>Learned how BroadcastMessage is pushed</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*RDHFXuOHgjVLvhQkGAz2vw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dd30f8d2a45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 129]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-128-90079e1e0701?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/90079e1e0701</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Sun, 31 May 2026 13:24:08 GMT</pubDate>
            <atom:updated>2026-06-03T03:16:35.455Z</atom:updated>
            <content:encoded><![CDATA[<h4>Started working on 7/n, RaySyncer changes</h4><p>Goal: 9 hr / Actual: 5 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/63508">[Core][GPU fraction][6/n] Migrate Node struct and callers from original class to base class pointer type</a></p><ul><li>Started working on 7/n, RaySyncer changes</li><li>Learned how LocalResourceManager populates messages once local available resources change (e.g., AllocateLocalTaskResources, ReleaseWorkerResources, AddLocalResourceInstances, DeleteLocalResource)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*7lfAz9Si6dBTOBj1moYGNg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90079e1e0701" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 128]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-127-117c05f7e7f5?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/117c05f7e7f5</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Sat, 30 May 2026 05:57:45 GMT</pubDate>
            <atom:updated>2026-06-03T03:16:21.691Z</atom:updated>
            <content:encoded><![CDATA[<h4>Applying 4/n to 6/n, replacing IsV2 + static_cast with a config flag + dynamic_cast</h4><p>Goal: 9 hr / Actual: 7 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/63508">[Core][GPU fraction][6/n] Migrate Node struct and callers from original class to base class pointer type</a></p><ul><li>Applying 4/n to 6/n, replacing IsV2 + static_cast with a config flag + dynamic_cast</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*ndiAxH6zTdPvruK79r01dA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=117c05f7e7f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 127]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-127-52687f75feb0?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/52687f75feb0</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Sat, 30 May 2026 05:55:41 GMT</pubDate>
            <atom:updated>2026-05-30T05:57:53.291Z</atom:updated>
            <content:encoded><![CDATA[<h4>Met with Yicheng to go through PR 4/n to 6/n</h4><p>Goal: 9 hr / Actual: 9 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/63508">[Core][GPU fraction][6/n] Migrate Node struct and callers from original class to base class pointer type</a></p><ul><li>Met with Yicheng to go through PR 4/n to 6/n</li><li>Discussed with Yicheng replacing IsV2 + static_cast with a config flag + dynamic_cast</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*JeVFog1vXFaIKgDlqW9rzQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52687f75feb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 126]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-126-b7569920ad6e?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7569920ad6e</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Thu, 28 May 2026 15:10:21 GMT</pubDate>
            <atom:updated>2026-05-28T15:10:21.647Z</atom:updated>
            <content:encoded><![CDATA[<h4>Finished the 6/n PR description</h4><p>Goal: 9 hr / Actual: 7 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/63508">[Core][GPU fraction][6/n] Migrate Node struct and callers from original class to base class pointer type</a></p><ul><li>Finished the 6/n PR description</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wB8t7X_6VuF7BZY4uAiz8Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7569920ad6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ray Contribution Diary 125]]></title>
            <link>https://medium.com/@dancingactor/ray-contribution-diary-125-0c4da2567d6d?source=rss-4db8d7623d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c4da2567d6d</guid>
            <dc:creator><![CDATA[Ding-Xin Chen]]></dc:creator>
            <pubDate>Thu, 28 May 2026 14:41:55 GMT</pubDate>
            <atom:updated>2026-05-29T14:23:51.213Z</atom:updated>
            <content:encoded><![CDATA[<h4>Summarized two rules for 6/n and checked all usage</h4><p>Goal: 9 hr / Actual: 7 hr</p><p>Contributing PR: <a href="https://github.com/ray-project/ray/pull/63508">[WIP][Core][GPU fraction][6/n] Migrate Node struct and callers from original class to base class pointer type</a></p><ul><li>Summarized two rules for 6/n:<br>► In ClusterResourceManager, changing Struct Node storage type from the V1 to the base class pointer, so that ClusterResourceManager can actually store either V1 or V2. Note that all the Add/Update Node logic inside ClusterResourceManager remains V1<br>► Functions that previously only accepted a reference to V1 now accept a reference to the base class, so that callers can pass either the V1 or V2 class</li><li>Went through every NodeResources to check if it follow these two rules</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O3zJXL3BCWTpyibIr4FoNQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c4da2567d6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>