You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "waitinfuture (via GitHub)" <gi...@apache.org> on 2023/07/22 16:21:19 UTC

[GitHub] [incubator-celeborn] waitinfuture opened a new pull request, #1747: [CELEBORN-824][DOC] Add PushData document

waitinfuture opened a new pull request, #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747

   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     - Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] Your PR title ...'.
     - Be sure to keep the PR description updated to reflect all changes.
     - Please write your PR title to summarize what this PR proposes.
     - If possible, provide a concise example to reproduce the issue for a faster review.
   -->
   
   ### What changes were proposed in this pull request?
   As title.
   
   
   ### Why are the changes needed?
   As title
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   No.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] cfmcgrady commented on pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "cfmcgrady (via GitHub)" <gi...@apache.org>.
cfmcgrady commented on PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#issuecomment-1646633465

   the arrow indicating data flow from Mapper1 to Worker2 is missing on line 6 in file `docs/assets/img/softsplit.svg`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] waitinfuture commented on pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#issuecomment-1647107957

   Hi @cfmcgrady @pan3793 , I've addressed the comments, please take a look again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] cfmcgrady commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "cfmcgrady (via GitHub)" <gi...@apache.org>.
cfmcgrady commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271323419


##########
docs/developers/pushdata.md:
##########
@@ -0,0 +1,113 @@
+---
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  http://www.apache.org/licenses/LICENSE-2.0
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+---
+
+
+# Push Data
+
+This articles describes the detailed design of the process of push data.
+
+## API specification
+The push data API is as follows:
+```shell

Review Comment:
   shell -> java



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] cfmcgrady commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "cfmcgrady (via GitHub)" <gi...@apache.org>.
cfmcgrady commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271323499


##########
docs/developers/pushdata.md:
##########
@@ -0,0 +1,113 @@
+---
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  http://www.apache.org/licenses/LICENSE-2.0
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+---
+
+
+# Push Data
+
+This articles describes the detailed design of the process of push data.

Review Comment:
   ```suggestion
   This article describes the detailed design of the process of push data.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] waitinfuture commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271661111


##########
docs/assets/img/softsplit.svg:
##########


Review Comment:
   But we still use `PbRevive` as protobuf message. Maybe we can merge them together in the future, then change the graph.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271664681


##########
docs/README.md:
##########
@@ -96,7 +96,7 @@ cd $SPARK_HOME
 --conf spark.shuffle.service.enabled=false
 ```
 Then run the following test case:
-```shell
+```scala
 spark.sparkContext.parallelize(1 to 10, 10)
   .flatMap( _ => (1 to 100).iterator
   .map(num => num)).repartition(10).count

Review Comment:
   ```suggestion
     .flatMap(_ => (1 to 100).iterator.map(num => num))
     .repartition(10).count
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271331675


##########
docs/assets/img/softsplit.svg:
##########


Review Comment:
   CELEBORN-781 renamed RPC message name from `REVIVE` to `CHANGE_LOCATION`, are we going to keep using concept revive?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271331906


##########
docs/developers/pushdata.md:
##########
@@ -0,0 +1,113 @@
+---
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  http://www.apache.org/licenses/LICENSE-2.0
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+---
+
+
+# Push Data
+
+This articles describes the detailed design of the process of push data.
+
+## API specification
+The push data API is as follows:
+```shell
+  public abstract int pushData(
+      int shuffleId,
+      int mapId,
+      int attemptId,
+      int partitionId,
+      byte[] data,
+      int offset,
+      int length,
+      int numMappers,
+      int numPartitions)
+      throws IOException;
+```
+
+- `shuffleId` is the unique shuffle id of the application
+- `mapId` is the map id of the shuffle
+- `attemptId` is the attempt id of the map task, i.e. speculative task or task rerun for Apache Spark
+- `partitionId` is the partition id the data belongs to
+- `data`,`offset`,`length` specifies the bytes to be pushed
+- `numMappers` is the number map tasks in the shuffle
+- `numPartitions` is the number of partitions in the shuffle
+
+## Lazy Shuffle Register
+The first time `pushData` is called, Client will check whether the shuffle id has been registered. If Not,
+it sends `RegisterShuffle` to `LifecycleManager`, `LifecycleManager` then sends `RequestSlots` to `Master`.
+`RequestSlots` specifies how many `PartitionLocation`s this shuffle requires, each `PartitionLocation` logically
+responds to data of some partition id.
+
+Upon receiving `RequestSlots`, `Master` allocates slots for the shuffle among `Worker`s. If replication is turned on,
+`Master` allocates a pair of `Worker`s for each `PartitionLocation` to store two replicas for each `PartitionLocation`.
+The detailed allocation strategy can be found in [Slots Allocation](/developers/slotsallocation). `Master` then

Review Comment:
   I'm not sure if absolute path work since the docs site is not start from root `/`, may be relative path works



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] codecov[bot] commented on pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#issuecomment-1646624538

   ## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1747?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   > Merging [#1747](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1747?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (c6e6d2d) into [main](https://app.codecov.io/gh/apache/incubator-celeborn/commit/27521547f09b330d7a25848ef3a3a08162ed4639?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (2752154) will **not change** coverage.
   > The diff coverage is `n/a`.
   
   > :exclamation: Current head c6e6d2d differs from pull request most recent head 7c0223e. Consider uploading reports for the commit 7c0223e to get more accurate results
   
   ```diff
   @@           Coverage Diff           @@
   ##             main    #1747   +/-   ##
   =======================================
     Coverage   46.70%   46.70%           
   =======================================
     Files         161      161           
     Lines       10022    10022           
     Branches      925      925           
   =======================================
     Hits         4680     4680           
     Misses       5022     5022           
     Partials      320      320           
   ```
   
   
   [see 2 files with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1747/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271331906


##########
docs/developers/pushdata.md:
##########
@@ -0,0 +1,113 @@
+---
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  http://www.apache.org/licenses/LICENSE-2.0
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+---
+
+
+# Push Data
+
+This articles describes the detailed design of the process of push data.
+
+## API specification
+The push data API is as follows:
+```shell
+  public abstract int pushData(
+      int shuffleId,
+      int mapId,
+      int attemptId,
+      int partitionId,
+      byte[] data,
+      int offset,
+      int length,
+      int numMappers,
+      int numPartitions)
+      throws IOException;
+```
+
+- `shuffleId` is the unique shuffle id of the application
+- `mapId` is the map id of the shuffle
+- `attemptId` is the attempt id of the map task, i.e. speculative task or task rerun for Apache Spark
+- `partitionId` is the partition id the data belongs to
+- `data`,`offset`,`length` specifies the bytes to be pushed
+- `numMappers` is the number map tasks in the shuffle
+- `numPartitions` is the number of partitions in the shuffle
+
+## Lazy Shuffle Register
+The first time `pushData` is called, Client will check whether the shuffle id has been registered. If Not,
+it sends `RegisterShuffle` to `LifecycleManager`, `LifecycleManager` then sends `RequestSlots` to `Master`.
+`RequestSlots` specifies how many `PartitionLocation`s this shuffle requires, each `PartitionLocation` logically
+responds to data of some partition id.
+
+Upon receiving `RequestSlots`, `Master` allocates slots for the shuffle among `Worker`s. If replication is turned on,
+`Master` allocates a pair of `Worker`s for each `PartitionLocation` to store two replicas for each `PartitionLocation`.
+The detailed allocation strategy can be found in [Slots Allocation](/developers/slotsallocation). `Master` then

Review Comment:
   I'm not sure if absolute path works since the docs site is not start from root `/`, may be relative path works



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271331947


##########
docs/developers/pushdata.md:
##########
@@ -0,0 +1,113 @@
+---
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  http://www.apache.org/licenses/LICENSE-2.0
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+---
+
+
+# Push Data
+
+This articles describes the detailed design of the process of push data.
+
+## API specification
+The push data API is as follows:
+```shell
+  public abstract int pushData(
+      int shuffleId,
+      int mapId,
+      int attemptId,
+      int partitionId,
+      byte[] data,
+      int offset,
+      int length,
+      int numMappers,
+      int numPartitions)
+      throws IOException;
+```
+
+- `shuffleId` is the unique shuffle id of the application
+- `mapId` is the map id of the shuffle
+- `attemptId` is the attempt id of the map task, i.e. speculative task or task rerun for Apache Spark
+- `partitionId` is the partition id the data belongs to
+- `data`,`offset`,`length` specifies the bytes to be pushed
+- `numMappers` is the number map tasks in the shuffle
+- `numPartitions` is the number of partitions in the shuffle
+
+## Lazy Shuffle Register
+The first time `pushData` is called, Client will check whether the shuffle id has been registered. If Not,

Review Comment:
   ```suggestion
   The first time `pushData` is called, Client will check whether the shuffle id has been registered. If not,
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] waitinfuture commented on pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#issuecomment-1646622848

   cc @pan3793 @AngersZhuuuu @cfmcgrady 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1747:
URL: https://github.com/apache/incubator-celeborn/pull/1747#discussion_r1271665235


##########
docs/assets/img/softsplit.svg:
##########


Review Comment:
   cc @AngersZhuuuu 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-celeborn] waitinfuture closed pull request #1747: [CELEBORN-824][DOC] Add PushData document

Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture closed pull request #1747: [CELEBORN-824][DOC] Add PushData document
URL: https://github.com/apache/incubator-celeborn/pull/1747


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org