Skip to main content

Instance tree generation for organization or higher throughput submission

Project description

Flux Hierarchy

Create trees of Flux instances

PyPI version

https://github.com/converged-computing/flux-hierarchy/blob/main/img/flux-hierarchy-small.png?raw=true

This tool enables generation and orchestration of Flux hierarchies, or trees of instances. Such a setup can enable programmatic organization and submission of commands, or high throughput. Use cases we want to address:

  • Creation (and organization) of a Flux Hierarchy
  • Discovery of an existing Flux Hierarchy (e.g, for MCP)

Usage

Let's first create a hierarchy. This will be a Flux job. You'll need to be in a Flux instance where a handle is discoverable. E.g., in the DevContainer:

flux start

Then create a simple, flat hierarchy with all the resources allocated to one broker.

flux-hierarchy start ./examples/hierarchy-one.yaml

You can test throughput (this also starts the hierarchy):

flux-hierarchy throughput ./examples/hierarchy-one.yaml

For either of the above, the hierarchy will continue running (and you need to cancel the job).

flux cancel $(flux job last)

Development

To build and release:

python3 -m build
twine upload dist/flux-hierarchy-<version>*

WIP

  • Developing a more robust way to organize / discover handles.
  • Then will test with throughput on more instances, etc.

License

HPCIC DevTools is distributed under the terms of the MIT license. All new contributions must be made under this license.

See LICENSE, COPYRIGHT, and NOTICE for details.

SPDX-License-Identifier: (MIT)

LLNL-CODE- 842614

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flux_hierarchy-0.0.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flux_hierarchy-0.0.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file flux_hierarchy-0.0.0.tar.gz.

File metadata

  • Download URL: flux_hierarchy-0.0.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for flux_hierarchy-0.0.0.tar.gz
Algorithm Hash digest
SHA256 df10312a69cadc45033f00f8390eb1d70540741a65b139e0c3e4519dbdbf4fb2
MD5 132c8788115ecf9cb0fe4bb02ff04d59
BLAKE2b-256 4c019b123294ee9c5865f0ac978a861181d3db413cf0b37947d4f464940fd08d

See more details on using hashes here.

File details

Details for the file flux_hierarchy-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: flux_hierarchy-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for flux_hierarchy-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b468877d6773cef2682989b091614909187f34943832be8e5f5911bf956d8a
MD5 7dceb07a3b1f03d2be2f0d8e4052a832
BLAKE2b-256 6ae1ed03c7c03576b683c3585c52c03931aaf607d50aaa4c068d093d2e43c509

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page