Skip to content

Use Proxy queue + Python queue for Python UDF flow control credits - #2206

Merged
Yicong-Huang merged 55 commits into
masterfrom
yicong-pressure-from-python-queue
Nov 16, 2023
Merged

Yicong-Huang merged 55 commits into
masterfrom
yicong-pressure-from-python-queue

Conversation

@Yicong-Huang

@Yicong-Huang Yicong-Huang commented Nov 2, 2023 •

Copy link
Copy Markdown
Contributor

This PR makes the Python flow control credits to be used by the flow control component.

  • The proxy side will keep track of credit from PVM's internal queue.
  • The flow control will use the credit from the Proxy's queue and credit from PVM's internal queue together as the credit of a Python Worker.
  • We calculate the data message sizes with library pympler.

Yicong-Huang and others added 30 commits October 13, 2022 11:48
@Yicong-Huang
Yicong-Huang force-pushed the yicong-pressure-from-python-queue branch from 5ca2a64 to 02d3e17 Compare November 6, 2023 19:13
Base automatically changed from ethan-python-udf-credit-flow to master November 10, 2023 00:39
# Conflicts:
#	core/amber/src/main/python/core/runnables/network_receiver.py
#	core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/pythonworker/PythonProxyClient.scala
#	core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/pythonworker/PythonWorkflowWorker.scala
@Yicong-Huang
Yicong-Huang requested review from shengquan-ni and removed request for yunyad November 16, 2023 00:35
# Conflicts:
#	core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/messaginglayer/FlowControl.scala
#	core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/messaginglayer/NetworkCommunicationActor.scala
#	core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/messaginglayer/NetworkInputPort.scala
#	core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/pythonworker/PythonWorkflowWorker.scala
#	core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/pythonworker/WorkerBatchInternalQueue.scala
#	core/amber/src/main/scala/edu/uci/ics/amber/engine/architecture/worker/WorkflowWorker.scala

@shengquan-ni shengquan-ni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left minor comment

@Yicong-Huang
Yicong-Huang merged commit 008d38f into master Nov 16, 2023
@Yicong-Huang
Yicong-Huang deleted the yicong-pressure-from-python-queue branch November 16, 2023 06:03
Xiao-zhen-Liu pushed a commit that referenced this pull request Jan 16, 2024
…2206)

This PR makes the Python flow control credits to be used by the flow
control component.
- The proxy side will keep track of credit from PVM's internal queue.
- The flow control will use the credit from the Proxy's queue and credit
from PVM's internal queue together as the credit of a Python Worker.
- We calculate the data message sizes with library `pympler`.

---------

Co-authored-by: yunyad <[email protected]>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…pache#2206)

This PR makes the Python flow control credits to be used by the flow
control component.
- The proxy side will keep track of credit from PVM's internal queue.
- The flow control will use the credit from the Proxy's queue and credit
from PVM's internal queue together as the credit of a Python Worker.
- We calculate the data message sizes with library `pympler`.

---------

Co-authored-by: yunyad <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implementation of flow control APIs for python UDF

4 participants