-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add prototype/experiment of testing multiple applications per pod
combined with the fluxion scheduler as a service, this could be a pretty cool idea. I am not sold on this being a good idea for production, but I think it will afford interesting experiments and workflow designs. Signed-off-by: vsoch <[email protected]>
- Loading branch information
Showing
23 changed files
with
296 additions
and
91 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Build the manager binary | ||
FROM golang:1.20 as builder | ||
FROM golang:1.20 AS builder | ||
|
||
WORKDIR /workspace | ||
|
||
|
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,3 @@ kind: Kustomization | |
images: | ||
- name: controller | ||
newName: ghcr.io/flux-framework/flux-operator | ||
newTag: test |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
72 changes: 72 additions & 0 deletions
72
examples/experimental/multiple-applications-per-pod/minicluster.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
apiVersion: flux-framework.org/v1alpha2 | ||
kind: MiniCluster | ||
metadata: | ||
name: flux-sample | ||
spec: | ||
size: 4 | ||
interactive: true | ||
|
||
# shell in, and then: | ||
# source /mnt/flux/flux-view.sh | ||
# flux proxy $fluxsocket bash | ||
# flux resource list | ||
|
||
# 1. Create resource graph independent of what hwloc does. | ||
# 2. Will need to pass JGF into fluxion when it starts (try this out for R and starting the broker) | ||
# 3. crearte resource graph with double number of resources we want. If we want N brokers, increase by factor of N. | ||
# 4. Each brokers needs to get one 1/N of thart resource graph | ||
# 5. When we submit jobspec, we need to submit with entire resource graph (request 4x the number of resouresce we want) | ||
# the entire resource graph is allocated to that job | ||
# for the executable we have to specify which part of graph we are execurting. | ||
# all brokers at node level | ||
|
||
# Note that: | ||
# 1. all the containers here have an ubuntu 20.04 base! | ||
# 2. The non-flux runners also need a name. | ||
# 3. Since we control the logic of the sidecars, we need to add | ||
# an entrypoint that keeps them running. Otherwise, it jumps to | ||
# "not ready" | ||
# 4. The issue we will run into is that the job won't complete when | ||
# the main flux running shuts down. It will need to be deleted. | ||
flux: | ||
container: | ||
image: ghcr.io/converged-computing/flux-view-ubuntu:tag-focal | ||
|
||
# This ensures that fluxion is running as a service to the MiniCluster | ||
services: | ||
- image: ghcr.io/converged-computing/fluxion:latest | ||
command: /code/bin/server --host 0.0.0.0 | ||
name: fluxion | ||
|
||
# This starts the flux broker without a command (interactive) | ||
interactive: true | ||
|
||
# A required marker from the user that they want multiple runFlux | ||
# to work. This is considered an advanced use case. | ||
oversubscribe: true | ||
|
||
containers: | ||
|
||
# This is a faux "queue only" broker container. It will be | ||
# the interface to which we submit jobs. We don't run Flux | ||
# but we will orchestrate running things. | ||
- image: rockylinux:9 | ||
name: queue | ||
|
||
# TODO we will need to allow the other ones to still see flux | ||
- image: ghcr.io/rse-ops/lammps-matrix:mpich-ubuntu-20.04-amd64 | ||
name: lammps | ||
workingDir: /opt/lammps/examples/reaxff/HNS | ||
command: run_interactive_cluster | ||
runFlux: true | ||
|
||
# command: lmp -v x 2 -v y 2 -v z 2 -in in.reaxc.hns -nocite | ||
- image: ghcr.io/converged-computing/metric-ior:latest | ||
name: ior | ||
command: run_interactive_cluster | ||
runFlux: true | ||
|
||
- image: ghcr.io/converged-computing/metric-chatterbug:latest | ||
name: chatterbug | ||
command: run_interactive_cluster | ||
runFlux: true |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.