-
Notifications
You must be signed in to change notification settings - Fork 113
Persist the spec of the computing_unit entity and its relationship with workflow_executions into DB
#3400
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52daba5 to
0f3d50d
Compare
207e2a0 to
ba7986c
Compare
b44761d to
95022be
Compare
computing_unit entity and its relationship with workflow_executions into DB
...ala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala
Outdated
Show resolved
Hide resolved
d71158c to
af58603
Compare
shengquan-ni
approved these changes
May 25, 2025
af58603 to
ff09926
Compare
bd050f3 to
0a9ff4d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR persists the computing unit information to the Database and uniforms the underlying implementation of single mode(with local computing master as the computing unit) and cluster mode(with kubernetes pod as the computing unit).
For Developers
Please do the following steps to incorporate with new changes:
core/scripts/sql/updates/07.sqlto your local postgres instanceComputingUnitManagingServicewhen you launch the Texera's backend micro-services.Database Schema Changes
Modification of
computing_unitTableThe following fields have been added:
type: Type of computing unit (e.g., "local" or "kubernetes").resource: A json string contains:Modification of
workflow_executionTableA new column
cuidhas been added to the existing workflow_execution table to establish a relationship between workflow executions and computing units. This column serves as a foreign key referencing thecuidin thecomputing_unittable.Configuration File Changes
computing-unit.confhas been addedA variable
computing-unit.local.enabledis added. The default value istrue. In cluster mode, this should be set tofalse.kubernetes.confhas been changedA variable
kubernetes.enabledis added. The default value isfalse. In cluster mode, this should be set totrue.User Experience
1. Cluster Mode
Run & interact with the workflow on different computing units at the same time

Check which computing unit is used in the execution via the execution history table

If a workflow is running in some computing units, the workflow CANNOT be modified until there are no RUNNING executions

2. Single Node Mode (Local Development)
Single node Mode needs a little extra step of connecting to a computing unit: in the pop-up window, users can input an address that points to the computing unit master service (the default value is http://localhost:8085)

Users can also disconnect from the local computing unit by clicking on the delete button in the drop-down item:

Related Changes
1. Helm Chart
KUBERNETES_COMPUTING_UNIT_ENABLEDandCOMPUTING_UNIT_LOCAL_ENABLEDhave been added/api/executions/{wid}/stats/{eid}will be routed toenvoy2. Execution Lifecycle
widandcuid, i.e. the latest execution of a workflow on a computing unit.3. Execution & Result Lifecycle Binding
cuid