hypershell 2.9.0a7__tar.gz → 2.9.0a8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/PKG-INFO +1 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/cluster_desc.rst +3 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/cluster_help.rst +35 -2
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_param_ref.rst +93 -2
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/relay_desc.rst +8 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/relay_help.rst +6 -3
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/server_desc.rst +5 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/server_help.rst +31 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/server_usage.rst +1 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_static/custom.css +0 -9
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/cluster.rst +8 -0
- hypershell-2.9.0a8/docs/cli/relay.rst +122 -0
- hypershell-2.9.0a8/docs/cli/server.rst +90 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/conf.py +1 -14
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/index.rst +20 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/pyproject.toml +1 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/share/bash_completion.d/hs +11 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/share/man/man1/hs.1 +159 -10
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/share/man/man1/hsx.1 +159 -10
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/share/man/man1/hyper-shell.1 +159 -10
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/share/zsh/site-functions/_hs +8 -3
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/client.py +2 -2
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/cluster/__init__.py +3 -3
- hypershell-2.9.0a8/src/hypershell/cluster/demand.py +185 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/cluster/launch.py +130 -3
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/cluster/local.py +2 -2
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/cluster/remote.py +183 -105
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/cluster/ssh.py +2 -2
- hypershell-2.9.0a8/src/hypershell/cluster/topology.py +643 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/config.py +5 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/dispatch.py +57 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/heartbeat.py +62 -8
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/queue.py +1 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/thread.py +19 -2
- hypershell-2.9.0a8/src/hypershell/core/topology.py +408 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/data/model.py +151 -40
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/relay/__init__.py +291 -24
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/relay/site.py +259 -11
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/relay/store.py +44 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/relay/upstream.py +153 -18
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/server.py +131 -22
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/submit.py +2 -2
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_autoscale.py +15 -4
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_cluster_launch.py +101 -4
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_contended_write.py +70 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_dispatch.py +75 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_dispatch_version.py +14 -2
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_fsm.py +41 -1
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_launch.py +3 -3
- hypershell-2.9.0a8/tests/test_relay_retire.py +545 -0
- hypershell-2.9.0a8/tests/test_relay_topology.py +1020 -0
- hypershell-2.9.0a8/tests/test_retire_judge.py +250 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_server.py +29 -0
- hypershell-2.9.0a8/tests/test_signal_wake.py +353 -0
- hypershell-2.9.0a8/tests/test_topology_judge.py +340 -0
- hypershell-2.9.0a8/tests/test_topology_plan.py +962 -0
- hypershell-2.9.0a8/tests/test_topology_server.py +621 -0
- hypershell-2.9.0a8/tests/test_zone_autoscale.py +775 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_zone_model.py +106 -3
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_zone_postgres.py +27 -2
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/uv.lock +1 -1
- hypershell-2.9.0a7/docs/_ext/site_notice.py +0 -39
- hypershell-2.9.0a7/docs/cli/relay.rst +0 -43
- hypershell-2.9.0a7/docs/cli/server.rst +0 -22
- hypershell-2.9.0a7/docs/whats_new.rst +0 -224
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/.gitignore +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/CODE_OF_CONDUCT.md +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/LICENSE +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/README.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/Makefile +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/citation.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/client_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/client_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/client_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/cluster_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_edit_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_edit_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_edit_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_get_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_get_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_get_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_intro.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_intro_alt.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_pythonpath.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_set_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_set_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_set_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_site_vars.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_task_env.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_task_env_alt.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_which_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_which_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/config_which_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/database.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/database_alt.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/exit_status.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/initdb_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/initdb_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/initdb_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/license.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/relay_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/security_alt.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/signals.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/submit_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/submit_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/submit_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_groups_alt.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_info_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_info_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_info_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_run_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_run_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_run_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_search_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_search_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_search_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_submit_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_submit_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_submit_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_update_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_update_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_update_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_wait_desc.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_wait_help.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/task_wait_usage.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/templates.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/templates_alt.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_include/tls_cli_options.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_static/logo-dark-mode.png +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/_static/logo-light-mode.png +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/alternatives.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/api/client.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/api/cluster.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/api/data.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/api/index.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/api/server.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/api/submit.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/client.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/config.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/config_edit.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/config_get.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/config_set.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/config_which.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/index.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/initdb.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/submit.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/task_info.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/task_run.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/task_search.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/task_submit.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/task_update.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/cli/task_wait.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/config.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/database.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/getting_started.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/install.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/logging.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/manual.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/security.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/docs/templates.rst +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/share/bash_completion.d/hsx +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/__init__.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/config.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/__init__.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/exceptions.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/fsm.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/logging.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/platform.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/pretty_print.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/reconnect.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/remote.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/resource.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/signal.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/sys.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/tag.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/template.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/tls.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/types.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/core/uuid.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/data/__init__.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/data/core.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/data/timescale.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/data/upgrade.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/src/hypershell/task.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/__init__.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/bench/bench_queue.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/cluster/build_archive.sh +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/cluster/compare.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/cluster/drive.sh +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/cluster/smoke.sh +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/conftest.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/fixtures/README.md +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/fixtures/hypershell-2.8.3.db +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/fixtures/make-2.8.3-db.sh +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/fixtures/make-legacy-postgres.sh +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_auth_variants.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_cancel.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_card_info.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_card_integration.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_card_render.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_client.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_client_request.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_cluster.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_cluster_compare.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_completions.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_contended_recovery.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_data/__init__.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_data/test_core.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_data/test_model.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_data/test_upgrade.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_dispatch_staged.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_dispatch_workload.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_factory_fsm.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_group_order.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_groups.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_initdb.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_list.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_logging.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_main.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_meta_status.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_queue.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_queue_address_family.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_queue_gc.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_queue_limits.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_queue_start.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_queue_tls.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_queue_workload.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_connector.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_db.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_judge.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_link.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_outage.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_return.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_roster.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_relay_workload.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_restart.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_retry_gate.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_server_fsm.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_signal.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_size_duration.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_source.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_status_label.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_submit.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_submit_json.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_template.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_timescale.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_update.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_upgrade_cli.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_upgrade_postgres.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_writeback.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_writeback_postgres.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_writeback_statement.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_zone_dispatch.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_zone_display.py +0 -0
- {hypershell-2.9.0a7 → hypershell-2.9.0a8}/tests/test_zone_workload.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: hypershell
|
|
3
|
-
Version: 2.9.
|
|
3
|
+
Version: 2.9.0a8
|
|
4
4
|
Summary: A cross-platform, high-throughput computing utility for processing shell commands over a distributed, asynchronous queue.
|
|
5
5
|
Project-URL: Homepage, https://hypershell.org
|
|
6
6
|
Project-URL: Documentation, https://hypershell.readthedocs.io
|
|
@@ -29,6 +29,8 @@ fast at scale; for very large workflows, a one-time ``submit`` followed by a bar
|
|
|
29
29
|
file re-read) is cheaper than re-feeding the *FILE* each run.
|
|
30
30
|
|
|
31
31
|
Use ``--autoscaling`` with either *fixed* or *dynamic* to run a persistent, elastically scalable
|
|
32
|
-
cluster using an external ``--launcher`` to bring up clients as needed.
|
|
32
|
+
cluster using an external ``--launcher`` to bring up clients as needed. Clients are scaled per zone:
|
|
33
|
+
each zone with tasks in the active group gets its own clients, and the launcher is told which zone
|
|
34
|
+
each one is for.
|
|
33
35
|
|
|
34
36
|
Use ``hsx`` in place of ``hs cluster``.
|
|
@@ -22,6 +22,11 @@ Modes
|
|
|
22
22
|
case you would specify ``--launcher=srun``; however, the *ARGS* are not merely the executable
|
|
23
23
|
but the full listing, e.g., ``--launcher='srun --mpi=pmi2'``.
|
|
24
24
|
|
|
25
|
+
With ``--autoscaling``, each launch names the zone of the client it starts: ``{zone}`` in
|
|
26
|
+
*ARGS* is replaced by the zone's name (``default`` for the default zone), and the launched
|
|
27
|
+
process has the name in its ``HYPERSHELL_ZONE`` environment variable. The client's own
|
|
28
|
+
``--template`` is never changed. See ``--autoscaling`` for an example.
|
|
29
|
+
|
|
25
30
|
Options
|
|
26
31
|
^^^^^^^
|
|
27
32
|
|
|
@@ -117,12 +122,17 @@ Options
|
|
|
117
122
|
bundles directly to the queue.
|
|
118
123
|
|
|
119
124
|
``--zone`` *NAME*
|
|
120
|
-
Zone of the submitted tasks and of every client the cluster launches
|
|
125
|
+
Zone of the submitted tasks and of every client the cluster launches; the own zone with
|
|
126
|
+
``--autoscaling`` (default: none).
|
|
121
127
|
|
|
122
128
|
The tasks read from *FILE* (or ``--from-json``) are placed in this zone, and each client is
|
|
123
129
|
launched with the same ``--zone``, so it runs them. Zones are recorded in the database, so
|
|
124
130
|
``--zone`` cannot be used with ``--no-db``.
|
|
125
131
|
|
|
132
|
+
With ``--autoscaling``, this is the cluster's own zone: the one that ``--init-size`` and
|
|
133
|
+
``--min-size`` apply to. Any other zone with tasks in the active *task group* gets clients
|
|
134
|
+
of its own, each launched with ``--zone`` set to that zone.
|
|
135
|
+
|
|
126
136
|
``--initdb``
|
|
127
137
|
Auto-initialize database.
|
|
128
138
|
|
|
@@ -324,7 +334,7 @@ Options
|
|
|
324
334
|
See also ``--task-timeout``.
|
|
325
335
|
|
|
326
336
|
``-A``, ``--autoscaling`` [*MODE*]
|
|
327
|
-
Enable autoscaling (default: disabled). Used with ``--launcher``.
|
|
337
|
+
Enable autoscaling per zone (default: disabled). Used with ``--launcher``.
|
|
328
338
|
|
|
329
339
|
Specifying this option on its own triggers the use of the autoscaler, with the default
|
|
330
340
|
*policy* or the configured policy. The *policy* can be specified directly here
|
|
@@ -342,6 +352,29 @@ Options
|
|
|
342
352
|
``--max-size`` depending on the observed *task pressure* given the specified scaling
|
|
343
353
|
``--factor``.
|
|
344
354
|
|
|
355
|
+
Clients are scaled per zone. Each zone with tasks in the active *task group* has a fleet of
|
|
356
|
+
its own, sized by the same policy and the same values of ``--factor`` and ``--max-size``,
|
|
357
|
+
with its own task pressure. ``--init-size`` and ``--min-size`` apply only to the cluster's
|
|
358
|
+
own zone (``--zone``, else the default zone); every other zone gets clients only while it
|
|
359
|
+
has work in the active group, so a zone whose tasks wait in a later group gets none yet.
|
|
360
|
+
Each ``--period``, at most one client is added per zone, so several zones can each add one
|
|
361
|
+
at once. Clients of a zone whose work is done leave by ``--timeout`` as usual.
|
|
362
|
+
|
|
363
|
+
Each launch names its zone to the launcher, as ``{zone}`` in the ``--launcher`` arguments
|
|
364
|
+
and as ``HYPERSHELL_ZONE`` in its environment, so one launcher can send the clients of each
|
|
365
|
+
zone to the resource that serves it. When partitions are named after zones, the launcher
|
|
366
|
+
alone can do it (``--launcher='srun -p {zone} -n1'``). Otherwise a small script given as
|
|
367
|
+
``--launcher='sh launch.sh'`` can choose, for example::
|
|
368
|
+
|
|
369
|
+
#!/bin/sh
|
|
370
|
+
# Start one client on the partition that serves its zone.
|
|
371
|
+
case "$HYPERSHELL_ZONE" in
|
|
372
|
+
gpu) partition=gpu ;;
|
|
373
|
+
himem) partition=himem ;;
|
|
374
|
+
*) partition=cpu ;;
|
|
375
|
+
esac
|
|
376
|
+
exec srun -p "$partition" -n1 "$@"
|
|
377
|
+
|
|
345
378
|
See also ``--factor``, ``--period``, ``--init-size``, ``--min-size``, and ``--max-size``.
|
|
346
379
|
|
|
347
380
|
``-F``, ``--factor`` *VALUE*
|
|
@@ -498,6 +498,12 @@
|
|
|
498
498
|
|
|
499
499
|
See also ``.factor``, ``.period``, ``.size.init``, ``.size.min``, and ``.size.max``.
|
|
500
500
|
|
|
501
|
+
A server autoscaling with relay sites (``hs server --autoscaling``) applies the policy to
|
|
502
|
+
each zone's demand alone: under `fixed`, a zone with work gets one client when none runs,
|
|
503
|
+
and its size otherwise comes from the relays' ``min`` and ``init``; under `dynamic`, a zone
|
|
504
|
+
grows by one client per check while its pressure is high, up to the sum of its live sites'
|
|
505
|
+
``max``.
|
|
506
|
+
|
|
501
507
|
``.factor``
|
|
502
508
|
Scaling factor (default: 1).
|
|
503
509
|
|
|
@@ -530,6 +536,49 @@
|
|
|
530
536
|
an MPI or SLURM command (e.g., ``srun``) to bring up each client through your resource
|
|
531
537
|
manager. Counterpart to the cluster ``--launcher`` option used with ``--autoscaling``.
|
|
532
538
|
|
|
539
|
+
Each launch names the zone of its client: ``{zone}`` in the launcher is replaced by the
|
|
540
|
+
zone's name (``default`` for the default zone), and the launched process has the name
|
|
541
|
+
in its ``HYPERSHELL_ZONE`` environment variable.
|
|
542
|
+
|
|
543
|
+
.. only:: html
|
|
544
|
+
|
|
545
|
+
.. versionchanged:: 2.9.0
|
|
546
|
+
:pr:`99`: ``{zone}`` and ``HYPERSHELL_ZONE``.
|
|
547
|
+
|
|
548
|
+
A server autoscaling with relay sites launches nothing and ignores this setting: each
|
|
549
|
+
relay launches its own site clients with its own launcher.
|
|
550
|
+
|
|
551
|
+
``.distribution``
|
|
552
|
+
How a zone's clients are split over the relay sites that serve it (default: `spread`).
|
|
553
|
+
|
|
554
|
+
Only a server autoscaling with relay sites (``hs server --autoscaling``) reads it. With
|
|
555
|
+
`spread`, each new client of a zone goes to the live site serving it that runs the
|
|
556
|
+
fewest, as peers. With `fill`, each new client goes to the first site in preference
|
|
557
|
+
order that has room below its ``max``, so a site is saturated before the next one gets
|
|
558
|
+
any: use it to prefer the cheaper site. Every site stays within the ``min``/``max`` its
|
|
559
|
+
relay advertises for the zone.
|
|
560
|
+
|
|
561
|
+
Its environment form is ``HYPERSHELL_AUTOSCALE_DISTRIBUTION``.
|
|
562
|
+
|
|
563
|
+
.. only:: html
|
|
564
|
+
|
|
565
|
+
.. versionadded:: 2.9.0
|
|
566
|
+
:pr:`100`
|
|
567
|
+
|
|
568
|
+
``.sites``
|
|
569
|
+
Preferred site order for the `fill` distribution (default: none).
|
|
570
|
+
|
|
571
|
+
A list of site names, or one comma-separated string (the environment form,
|
|
572
|
+
``HYPERSHELL_AUTOSCALE_SITES=east,west``). Under `fill`, the listed live sites come first in
|
|
573
|
+
the listed order, and live sites not listed follow in the order they first registered.
|
|
574
|
+
Any relay connected with the server's key takes part whether or not it is listed, and
|
|
575
|
+
`spread` ignores the list.
|
|
576
|
+
|
|
577
|
+
.. only:: html
|
|
578
|
+
|
|
579
|
+
.. versionadded:: 2.9.0
|
|
580
|
+
:pr:`100`
|
|
581
|
+
|
|
533
582
|
``[size]``
|
|
534
583
|
``.init``
|
|
535
584
|
Initial size of cluster (default: 1).
|
|
@@ -551,6 +600,9 @@
|
|
|
551
600
|
For a *dynamic* autoscaling policy, this sets an upper limit on the number of launched
|
|
552
601
|
clients. When this number is reached, scaling stops regardless of task pressure.
|
|
553
602
|
|
|
603
|
+
A server autoscaling with relay sites ignores ``[size]``: each relay advertises the
|
|
604
|
+
``min``, ``max`` and ``init`` of each zone it serves, and the server plans within those.
|
|
605
|
+
|
|
554
606
|
``[relay]``
|
|
555
607
|
Section for the `relay` workflow, which connects a site to an upstream *server*.
|
|
556
608
|
|
|
@@ -602,8 +654,9 @@
|
|
|
602
654
|
Zone or zones the relay serves (default: none, the default zone).
|
|
603
655
|
|
|
604
656
|
One zone name, a list of names, or one table per zone, ``[relay.zone.NAME]``, which may
|
|
605
|
-
give that zone's own ``launcher``, ``launcher_args``
|
|
606
|
-
relay's, for that zone's *clients* only); an empty table
|
|
657
|
+
give that zone's own ``launcher``, ``launcher_args``, ``size``, ``min``, ``max`` and
|
|
658
|
+
``init`` (each in place of the relay's, for that zone's *clients* only); an empty table
|
|
659
|
+
serves the zone with the relay's.
|
|
607
660
|
Upstream the relay is one *client* per zone, each with its own identity; at the site it
|
|
608
661
|
keeps one fleet of *clients* per zone, all served by the relay-local *server*. The first
|
|
609
662
|
zone's identity lists the site's *clients* upstream.
|
|
@@ -614,6 +667,7 @@
|
|
|
614
667
|
|
|
615
668
|
[relay.zone.gpu]
|
|
616
669
|
size = 2
|
|
670
|
+
max = 4
|
|
617
671
|
launcher = "srun"
|
|
618
672
|
launcher_args = "--gres=gpu:1"
|
|
619
673
|
|
|
@@ -627,8 +681,45 @@
|
|
|
627
681
|
``.size``
|
|
628
682
|
Number of *clients* the relay keeps launched at its site (default: `1`, at least `1`).
|
|
629
683
|
|
|
684
|
+
Against an upstream *server* autoscaling with relay sites it is the default ``.max``.
|
|
630
685
|
See also ``-N``, ``--size`` command-line option.
|
|
631
686
|
|
|
687
|
+
``.min``
|
|
688
|
+
Fewest *clients* of each zone an upstream topology assigns this site (default: `0`).
|
|
689
|
+
|
|
690
|
+
.. only:: html
|
|
691
|
+
|
|
692
|
+
.. versionadded:: 2.9.0
|
|
693
|
+
:pr:`100`
|
|
694
|
+
|
|
695
|
+
Held even while the zone's tasks wait in a later *task group*. A zone's own
|
|
696
|
+
``[relay.zone.NAME]`` table may set its own. Without a topology, a zone's fleet keeps at
|
|
697
|
+
least this many *clients* launched (at least `1`, by default the size). Each zone
|
|
698
|
+
advertises its bounds upstream; see :ref:`Topology <cli_relay_topology>`.
|
|
699
|
+
|
|
700
|
+
``.max``
|
|
701
|
+
Most *clients* of each zone an upstream topology assigns this site (default: the size).
|
|
702
|
+
|
|
703
|
+
.. only:: html
|
|
704
|
+
|
|
705
|
+
.. versionadded:: 2.9.0
|
|
706
|
+
:pr:`100`
|
|
707
|
+
|
|
708
|
+
Lowering it never ends a running *client*: the zone launches no more, and its *clients*
|
|
709
|
+
exit when idle. A zone's own ``[relay.zone.NAME]`` table may set its own.
|
|
710
|
+
|
|
711
|
+
``.init``
|
|
712
|
+
*Clients* of each zone an upstream topology assigns this site when the relay starts
|
|
713
|
+
(default: ``.min``).
|
|
714
|
+
|
|
715
|
+
.. only:: html
|
|
716
|
+
|
|
717
|
+
.. versionadded:: 2.9.0
|
|
718
|
+
:pr:`100`
|
|
719
|
+
|
|
720
|
+
Without a topology, the *clients* each zone's fleet starts with (by default the size).
|
|
721
|
+
Bounds must satisfy ``min <= init <= max``, with ``max`` at least `1`.
|
|
722
|
+
|
|
632
723
|
``.launcher``
|
|
633
724
|
Command prefix used to launch each *client* at the site (default: none).
|
|
634
725
|
|
|
@@ -42,7 +42,14 @@ one ``[relay.zone.NAME]`` table per zone). Upstream it is then one *client* per
|
|
|
42
42
|
own identity, all over the same connection: it takes the zones in turn, and asks for each only as
|
|
43
43
|
much as that zone's own *clients* at the site have room for. At the site it keeps one fleet of
|
|
44
44
|
*clients* per zone, launched alike but each serving its own zone, with that zone's own launcher,
|
|
45
|
-
launcher arguments and
|
|
45
|
+
launcher arguments, size and client bounds if its table gives them; the one relay-local *server*
|
|
46
|
+
serves them all. Every launch names its zone to the launcher: ``{zone}`` in the launcher or its
|
|
47
|
+
arguments is replaced by the zone's name (``default`` for the default zone), and the launched process
|
|
48
|
+
has it in ``HYPERSHELL_ZONE``. Each zone advertises its client bounds upstream; against an upstream
|
|
49
|
+
*server* autoscaling with relay sites, each fleet follows the topology it publishes (see
|
|
50
|
+
:ref:`Topology <cli_relay_topology>`). A relay that a newer relay at its site supersedes asks for no
|
|
51
|
+
more work, launches no *client*, hands back the tasks no *client* has started, lets its *clients*
|
|
52
|
+
finish, and exits.
|
|
46
53
|
The first zone's identity lists every *client* at the site upstream. Each identity sends its own
|
|
47
54
|
heartbeat, so if the relay fails, the upstream *server* evicts each one and puts back what each
|
|
48
55
|
held, in every zone.
|
|
@@ -29,14 +29,17 @@ Options
|
|
|
29
29
|
Number of *clients* the relay keeps launched at its site (default: 1).
|
|
30
30
|
|
|
31
31
|
A *client* that exits is launched again. The size must be at least 1: with no *client* at the
|
|
32
|
-
site the relay would never ask upstream for work.
|
|
32
|
+
site the relay would never ask upstream for work. Against an upstream *server* autoscaling with
|
|
33
|
+
relay sites, the size is instead the default ``max`` each zone advertises (see ``relay.max``),
|
|
34
|
+
and *clients* are launched as the published topology asks. See also ``relay.size``.
|
|
33
35
|
|
|
34
36
|
``--launcher`` *CMD*
|
|
35
37
|
Command prefix used to launch each *client* at the site (default: none).
|
|
36
38
|
|
|
37
39
|
With none, *clients* run directly on the relay's host. Otherwise each is launched as
|
|
38
|
-
``CMD [ARGS...] hyper-shell client ...`` (e.g., ``srun``).
|
|
39
|
-
|
|
40
|
+
``CMD [ARGS...] hyper-shell client ...`` (e.g., ``srun``). A ``{zone}`` in the launcher or
|
|
41
|
+
its arguments is replaced by the zone the *client* serves, and the launched process has it in
|
|
42
|
+
``HYPERSHELL_ZONE``. The *clients* connect back to the relay by its host name. The launcher must pass the environment through: each *client*
|
|
40
43
|
receives the site key there (``HYPERSHELL_SERVER_AUTH``), never on its command line.
|
|
41
44
|
See also ``relay.launcher``.
|
|
42
45
|
|
|
@@ -12,3 +12,8 @@ for tasks and re-submit them if their previous number of attempts is less.
|
|
|
12
12
|
Tasks are bundled for each client at the size it asks for, or at the server's ``-b``/``--bundlesize``
|
|
13
13
|
when it asks for none. By default the bundle size is one, meaning that at small scales there is
|
|
14
14
|
greater concurrency.
|
|
15
|
+
|
|
16
|
+
With ``--autoscaling``, the server schedules forever and launches nothing. Relays connected with its
|
|
17
|
+
key advertise the zones they serve and each zone's ``min``, ``max`` and ``init`` clients, and the server
|
|
18
|
+
publishes how many clients each relay should run in each zone, for the relay to launch with its own
|
|
19
|
+
launcher (see :ref:`autoscaling with relay sites <cli_server_sites>`).
|
|
@@ -151,6 +151,37 @@ Options
|
|
|
151
151
|
|
|
152
152
|
Conflicts with ``--no-db`` and mutually exclusive to ``--forever``.
|
|
153
153
|
|
|
154
|
+
``-A``, ``--autoscaling`` [*MODE*]
|
|
155
|
+
Publish client targets for relay sites (default: disabled).
|
|
156
|
+
|
|
157
|
+
The server schedules forever (as with ``--forever``) and launches nothing itself. Each relay
|
|
158
|
+
connected with the server's key advertises the zones it serves and, for each, its ``min``,
|
|
159
|
+
``max`` and ``init`` clients. Each ``--period`` the server computes each zone's demand from
|
|
160
|
+
its tasks in the active *task group*, splits it over the live sites that serve the zone by
|
|
161
|
+
``autoscale.distribution`` (*spread* or *fill*), and publishes the result, which each relay
|
|
162
|
+
fetches and launches with its own launcher.
|
|
163
|
+
|
|
164
|
+
The *policy* can be specified directly here as either *fixed* or *dynamic* (e.g.,
|
|
165
|
+
``--autoscaling=dynamic``); the default is the configured ``autoscale.policy``. Under *fixed*,
|
|
166
|
+
a zone with work gets one client when none runs, and otherwise keeps the floor its relays
|
|
167
|
+
advertise. Under *dynamic*, a zone grows by one client per check while its task pressure is
|
|
168
|
+
high, up to the sum of its sites' ``max``. Clients leave only by their idle timeout.
|
|
169
|
+
|
|
170
|
+
Conflicts with `FILE`, ``--restart``, ``--no-db`` and ``--no-confirm``.
|
|
171
|
+
|
|
172
|
+
See also ``--factor`` and ``--period``.
|
|
173
|
+
|
|
174
|
+
``-F``, ``--factor`` *VALUE*
|
|
175
|
+
Scaling factor (default: 1).
|
|
176
|
+
|
|
177
|
+
The dimensionless multiple of the average task duration that ``--autoscaling=dynamic`` compares
|
|
178
|
+
each zone's estimated time to completion against (its *task pressure*), as for the `cluster`.
|
|
179
|
+
|
|
180
|
+
``-P``, ``--period`` *SEC*
|
|
181
|
+
Scaling period in seconds (default: 60).
|
|
182
|
+
|
|
183
|
+
The server waits this long between checks and publishes a new topology only when it changes.
|
|
184
|
+
|
|
154
185
|
``--print``
|
|
155
186
|
Print failed task args to <stdout>.
|
|
156
187
|
|
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
``[-b NUM]`` ``[-w SEC]`` ``[-r NUM [--eager]]`` ``[-c NUM]`` ``[-m MEM]`` ``[-W SEC]``
|
|
3
3
|
``[-H ADDR]`` ``[-p PORT]`` ``[-k KEY]`` ``[-Q NUM]`` ``[--no-db [--no-confirm] | --initdb]`` ``[--print | -f PATH]``
|
|
4
4
|
``[--no-tls | [--tls-ca PATH] [--tls-cert PATH] [--tls-key PATH]]``
|
|
5
|
+
``[--autoscaling [MODE] [-F VALUE] [-P SEC]]``
|
|
@@ -14,12 +14,3 @@
|
|
|
14
14
|
-webkit-mask-image: var(--icon-admonition-default);
|
|
15
15
|
mask-image:var(--icon-admonition-default)
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
/* The site notice is a few sentences long: let it wrap instead of scrolling out of view. */
|
|
19
|
-
.announcement {
|
|
20
|
-
height: auto;
|
|
21
|
-
min-height: var(--header-height);
|
|
22
|
-
}
|
|
23
|
-
.announcement-content {
|
|
24
|
-
white-space: normal;
|
|
25
|
-
}
|
|
@@ -22,4 +22,12 @@ Description
|
|
|
22
22
|
:pr:`50`: ``--restart`` with a *FILE* submits only the tasks that never landed, and a file
|
|
23
23
|
that was already submitted is refused unless ``--repeat`` or ``--update`` is given.
|
|
24
24
|
|
|
25
|
+
.. versionchanged:: 2.9.0
|
|
26
|
+
:pr:`99`: with ``--autoscaling``, each launch names its client's zone to the launcher, as
|
|
27
|
+
``{zone}`` in the ``--launcher`` arguments and as ``HYPERSHELL_ZONE`` in its environment. A
|
|
28
|
+
launcher that held a literal ``{zone}`` now receives the zone's name in its place. The
|
|
29
|
+
autoscaler scales each zone with tasks in the active group on its own, under the same sizing
|
|
30
|
+
options; ``--zone`` names the cluster's own zone, the one ``--init-size`` and ``--min-size``
|
|
31
|
+
apply to.
|
|
32
|
+
|
|
25
33
|
.. include:: ../_include/cluster_help.rst
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.. _cli_relay:
|
|
2
|
+
|
|
3
|
+
Relay
|
|
4
|
+
=====
|
|
5
|
+
|
|
6
|
+
.. versionadded:: 2.9.0
|
|
7
|
+
:pr:`82`
|
|
8
|
+
|
|
9
|
+
Usage
|
|
10
|
+
-----
|
|
11
|
+
|
|
12
|
+
.. include:: ../_include/relay_usage.rst
|
|
13
|
+
|
|
14
|
+
Description
|
|
15
|
+
-----------
|
|
16
|
+
|
|
17
|
+
.. include:: ../_include/relay_desc.rst
|
|
18
|
+
|
|
19
|
+
|
|
|
20
|
+
|
|
21
|
+
.. include:: ../_include/relay_help.rst
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
.. _cli_relay_topology:
|
|
25
|
+
|
|
26
|
+
Topology
|
|
27
|
+
--------
|
|
28
|
+
|
|
29
|
+
.. versionadded:: 2.9.0
|
|
30
|
+
:pr:`100`
|
|
31
|
+
|
|
32
|
+
Each zone a relay serves has client bounds: ``min``, ``max`` and ``init``, set for every zone in
|
|
33
|
+
``[relay]`` or for one zone in its ``[relay.zone.NAME]`` table, beside its launcher. Every heartbeat
|
|
34
|
+
of the zone's identity advertises them upstream, with the *clients* launched in the zone now.
|
|
35
|
+
|
|
36
|
+
.. code-block:: toml
|
|
37
|
+
|
|
38
|
+
[relay]
|
|
39
|
+
site = "east"
|
|
40
|
+
|
|
41
|
+
[relay.zone.cpu]
|
|
42
|
+
max = 8
|
|
43
|
+
|
|
44
|
+
[relay.zone.gpu]
|
|
45
|
+
launcher = "srun --partition={zone}"
|
|
46
|
+
min = 1
|
|
47
|
+
max = 2
|
|
48
|
+
|
|
49
|
+
``min``
|
|
50
|
+
Fewest *clients* the zone is assigned, even while its tasks wait in a later *task group*
|
|
51
|
+
(default: 0, so a zone with no work gets none).
|
|
52
|
+
|
|
53
|
+
``init``
|
|
54
|
+
*Clients* the zone is assigned when the relay starts (default: ``min``).
|
|
55
|
+
|
|
56
|
+
``max``
|
|
57
|
+
Most *clients* the zone is assigned (default: the size, ``-N`` or the zone's ``size``, which
|
|
58
|
+
is 1 unless set: set ``max`` to let a zone grow).
|
|
59
|
+
|
|
60
|
+
Against an upstream *server* autoscaling with relay sites (:ref:`hs server --autoscaling
|
|
61
|
+
<cli_server_sites>`), the server plans every zone's *clients* over the relays that serve it, within
|
|
62
|
+
these bounds, and publishes the result. The relay reads it after every heartbeat, and once before
|
|
63
|
+
its site starts. For each zone it follows one rule: it launches the server's target less the count
|
|
64
|
+
the server's plan is known to rest on, or that zone's running *clients* if more, each time it learns
|
|
65
|
+
that count, and at no other time. A new plan states the count the server saw. While the plan stands
|
|
66
|
+
unchanged and the zone runs fewer *clients* than its target, the count is the zone's running
|
|
67
|
+
*clients* themselves, once the server has planned twice more since a heartbeat reported them: a
|
|
68
|
+
*client* that leaves before any heartbeat counts it, or after the server counted it but before the
|
|
69
|
+
relay read the plan made with it, changes nothing the server publishes. So a *client* that exits is
|
|
70
|
+
launched again only when the server, having planned on the exit, still asks for it; the relay never
|
|
71
|
+
launches beyond the target, and a server that plans less often than the relay checks is never taken
|
|
72
|
+
for one that lost count. It never ends a *client* to reconcile: a lowered target, or a target of
|
|
73
|
+
zero, takes effect as the zone's *clients* exit after ``relay.timeout`` idle seconds. With no
|
|
74
|
+
*clients* left the relay stays connected, ready to grow. A raised bound lets a later plan assign
|
|
75
|
+
more; bounds are read when the relay starts, so changing them means restarting it.
|
|
76
|
+
|
|
77
|
+
When a relay restarts while its old process is still running, both advertise the same site, and
|
|
78
|
+
the upstream *server* assigns the site's *clients* to the newer one only. It also marks the old
|
|
79
|
+
process superseded in the topology that process reads after each heartbeat, so the old process
|
|
80
|
+
learns of it within one check of the *server* (``autoscale.period``) after the newer relay
|
|
81
|
+
registers. The old process then retires. It asks for no more work and launches no more *clients*,
|
|
82
|
+
and it ends none of those it has. It hands back to the upstream *server* every task none of its
|
|
83
|
+
*clients* has started, and the *server* puts them back in the queue at once, for the newer relay,
|
|
84
|
+
within a few heartbeats rather than at an eviction. Its *clients* finish the tasks they hold and
|
|
85
|
+
leave, and their results go back upstream. The old process then ends its registration with a final
|
|
86
|
+
heartbeat and exits with status 0. While it retires it says so on every heartbeat, so an upstream
|
|
87
|
+
*server* that restarts meanwhile, or that evicts it and sees it register again, retires it again at
|
|
88
|
+
once and leaves the site with the newer relay, whichever of the two registers first. A relay of an
|
|
89
|
+
earlier release does not read the mark and behaves as before: tasks it pulled after being
|
|
90
|
+
superseded wait until it exits and the upstream *server* evicts it.
|
|
91
|
+
|
|
92
|
+
.. versionchanged:: 2.9.0
|
|
93
|
+
:pr:`101`: a superseded relay hands back the tasks its *clients* have not started, and exits.
|
|
94
|
+
|
|
95
|
+
Against any other upstream *server* (one not autoscaling with relay sites, or an earlier release)
|
|
96
|
+
each zone keeps its own fleet, as before: ``init`` *clients* at start and one launched again while
|
|
97
|
+
fewer than ``min`` run, where here ``min`` is at least 1 and each defaults to the size. A relay
|
|
98
|
+
configured with only a size behaves exactly as without bounds.
|
|
99
|
+
|
|
100
|
+
Every launch names its zone, whether or not a topology is published: ``{zone}`` in the launcher or
|
|
101
|
+
its arguments is replaced by the zone's name (``default`` for the default zone), and the launched
|
|
102
|
+
process has it in ``HYPERSHELL_ZONE``.
|
|
103
|
+
|
|
104
|
+
What a relay does not do
|
|
105
|
+
------------------------
|
|
106
|
+
|
|
107
|
+
A relay moves work across a wide-area hop to a site the upstream *server* cannot reach directly, and
|
|
108
|
+
keeps it running when that hop fails. It is not meant for, and does not provide:
|
|
109
|
+
|
|
110
|
+
- **More throughput.** A relay adds a hop. Tasks run no faster at its site than they would on
|
|
111
|
+
*clients* connected straight to the upstream *server*; it holds at most about two rounds of work
|
|
112
|
+
per site *client*, so it never takes more than its site can run soon.
|
|
113
|
+
- **Cancellation or output retrieval across sites.** ``hs update`` on the upstream *server* does not
|
|
114
|
+
reach a task the relay already holds, and ``hs info --stdout`` / ``--stderr`` reads captured output
|
|
115
|
+
from the host that ran the task, which upstream may have no route to.
|
|
116
|
+
- **Tolerance of clock skew.** The upstream *server* ages a relay's heartbeats by the relay's own
|
|
117
|
+
clock, so a relay host whose clock is far off the upstream *server*'s is evicted while alive (and
|
|
118
|
+
its tasks put back). Keep every relay host's clock synchronised with the upstream *server*'s.
|
|
119
|
+
|
|
120
|
+
A task cut for the relay upstream but not yet confirmed when the relay dies (or when its connection
|
|
121
|
+
drops) stays assigned upstream with no *client*; this window exists for every *client*, and is larger
|
|
122
|
+
for a relay by its bundle size.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.. _cli_server:
|
|
2
|
+
|
|
3
|
+
Server
|
|
4
|
+
======
|
|
5
|
+
|
|
6
|
+
Usage
|
|
7
|
+
-----
|
|
8
|
+
|
|
9
|
+
.. include:: ../_include/server_usage.rst
|
|
10
|
+
|
|
11
|
+
Description
|
|
12
|
+
-----------
|
|
13
|
+
|
|
14
|
+
.. include:: ../_include/server_desc.rst
|
|
15
|
+
|
|
16
|
+
|
|
|
17
|
+
|
|
18
|
+
.. versionchanged:: 2.9.0
|
|
19
|
+
:pr:`78`: clients request their bundles; ``-b``/``--bundlesize`` applies to a client that asks
|
|
20
|
+
for no size of its own, and ``server.bundlemax`` caps every reply.
|
|
21
|
+
|
|
22
|
+
.. include:: ../_include/server_help.rst
|
|
23
|
+
|
|
24
|
+
.. _cli_server_sites:
|
|
25
|
+
|
|
26
|
+
Autoscaling with relay sites
|
|
27
|
+
----------------------------
|
|
28
|
+
|
|
29
|
+
.. versionadded:: 2.9.0
|
|
30
|
+
:pr:`100`
|
|
31
|
+
|
|
32
|
+
With ``--autoscaling``, the server keeps no launcher of its own. It can run anywhere its relays can
|
|
33
|
+
reach, off-cluster or in a container, and the capacity comes from the :ref:`relays <cli_relay>`
|
|
34
|
+
connected to it. Any relay that connects with the server's key takes part; the server needs no list
|
|
35
|
+
of sites.
|
|
36
|
+
|
|
37
|
+
Each relay advertises its site (the relay host's name unless its ``site`` is set), the zones it
|
|
38
|
+
serves and, for each zone, the ``min``, ``max`` and ``init`` clients configured beside that zone's
|
|
39
|
+
launcher at the relay. At each check the server:
|
|
40
|
+
|
|
41
|
+
- reads each zone's work in the active *task group*, exactly as ``hs cluster --autoscaling`` does,
|
|
42
|
+
so a zone whose tasks wait in a later group gets no growth yet;
|
|
43
|
+
- holds each site's floor in each zone, its ``min`` (and its ``init`` while it starts), even while
|
|
44
|
+
the zone's tasks wait in a later group;
|
|
45
|
+
- grows a zone by its demand, at most one client per check, never past the sum of its live sites'
|
|
46
|
+
``max``, and places each new client on a site that serves the zone by the distribution;
|
|
47
|
+
- publishes the result as a new version when it changed. Each relay fetches its own entries at its
|
|
48
|
+
heartbeat and launches what is asked of it with its own launcher.
|
|
49
|
+
|
|
50
|
+
The distribution is ``autoscale.distribution``:
|
|
51
|
+
|
|
52
|
+
*spread* (the default)
|
|
53
|
+
Each new client of a zone goes to the live site serving it that runs the fewest of them.
|
|
54
|
+
|
|
55
|
+
*fill*
|
|
56
|
+
Each new client goes to the first site in preference order that is below its ``max``, so one
|
|
57
|
+
site is saturated before the next gets any. The order is ``autoscale.sites`` (listed sites
|
|
58
|
+
first, as listed), then every other live site in the order it first registered. Use it to
|
|
59
|
+
prefer the site whose service units cost less.
|
|
60
|
+
|
|
61
|
+
Under the *fixed* policy, a zone with work gets one client when none runs, and its size otherwise
|
|
62
|
+
comes from the relays' ``min`` and ``init``; use *dynamic* to grow with task pressure. The server's
|
|
63
|
+
own ``autoscale.size`` and ``autoscale.launcher`` do not apply. Nothing is ever terminated to
|
|
64
|
+
reconcile a lower target: the relay launches no more, and its extra clients leave by their idle
|
|
65
|
+
timeout. A relay with no clients stays connected, ready to grow.
|
|
66
|
+
|
|
67
|
+
A site whose relay is evicted drops out of the plan. Its unfinished tasks are put back as for any
|
|
68
|
+
evicted client, and under *dynamic* its share regrows at the remaining sites, one client per check.
|
|
69
|
+
When two live relays advertise the same site, the one that registered last holds the site's entries
|
|
70
|
+
for every zone it serves, the older one is asked for none in any zone (a zone only the older one
|
|
71
|
+
serves goes to the other sites that serve it), and the server logs a warning naming both. The newer
|
|
72
|
+
relay is planned on its own clients alone, so a relay restarted after a crash is planned at once
|
|
73
|
+
rather than after its predecessor's eviction; if the older relay is in fact still running, its
|
|
74
|
+
clients run beside the newer relay's until they leave by their idle timeout. The older relay is
|
|
75
|
+
also told it is superseded: it asks for no more work, hands back the tasks none of its clients has
|
|
76
|
+
started, which the server puts back in the queue at once, and exits once its clients have finished
|
|
77
|
+
(see :ref:`Topology <cli_relay_topology>`). A relay that says on its heartbeat that it is retiring
|
|
78
|
+
never holds its site, in whatever order it registered.
|
|
79
|
+
|
|
80
|
+
.. versionchanged:: 2.9.0
|
|
81
|
+
:pr:`101`: a superseded relay hands back the tasks its clients have not started, and exits.
|
|
82
|
+
|
|
83
|
+
For example, a server run in a container needs only its key and its settings in the environment:
|
|
84
|
+
|
|
85
|
+
.. code-block:: shell
|
|
86
|
+
|
|
87
|
+
export HYPERSHELL_SERVER_AUTH=...
|
|
88
|
+
export HYPERSHELL_AUTOSCALE_DISTRIBUTION=fill
|
|
89
|
+
export HYPERSHELL_AUTOSCALE_SITES=east,west
|
|
90
|
+
hs server --autoscaling=dynamic -H 0.0.0.0
|
|
@@ -11,15 +11,9 @@
|
|
|
11
11
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
12
12
|
|
|
13
13
|
import datetime
|
|
14
|
-
import os
|
|
15
|
-
import sys
|
|
16
14
|
|
|
17
15
|
import hypershell
|
|
18
16
|
|
|
19
|
-
# Local helper modules (not Sphinx extensions) live in _ext/.
|
|
20
|
-
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '_ext'))
|
|
21
|
-
from site_notice import announcement # noqa: E402
|
|
22
|
-
|
|
23
17
|
# -- Project information -----------------------------------------------------
|
|
24
18
|
|
|
25
19
|
year = datetime.datetime.now().year
|
|
@@ -96,7 +90,7 @@ master_doc = 'index'
|
|
|
96
90
|
# This pattern also affects html_static_path and html_extra_path.
|
|
97
91
|
# The _include/ fragments are read by `.. include::` only; built as pages of their own they would
|
|
98
92
|
# duplicate every label they define.
|
|
99
|
-
exclude_patterns = ['_build', '_include', '
|
|
93
|
+
exclude_patterns = ['_build', '_include', 'Thumbs.db', '.DS_Store']
|
|
100
94
|
|
|
101
95
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
102
96
|
pygments_style = 'dracula'
|
|
@@ -131,7 +125,6 @@ html_theme_options = {
|
|
|
131
125
|
'color-background-primary': '#161B23',
|
|
132
126
|
'color-sidebar-background': '#11151b',
|
|
133
127
|
'color-sidebar-search-background': '#11151b',
|
|
134
|
-
'color-announcement-background': '#ee0d7e;',
|
|
135
128
|
},
|
|
136
129
|
'footer_icons': [
|
|
137
130
|
{
|
|
@@ -149,12 +142,6 @@ html_theme_options = {
|
|
|
149
142
|
],
|
|
150
143
|
}
|
|
151
144
|
|
|
152
|
-
# The site builds from develop, so while the version is a pre-release or development version every
|
|
153
|
-
# page says which line the docs track and how to install it; a final version shows no notice.
|
|
154
|
-
site_notice = announcement(release, base=html_baseurl)
|
|
155
|
-
if site_notice:
|
|
156
|
-
html_theme_options['announcement'] = site_notice
|
|
157
|
-
|
|
158
145
|
# Add any paths that contain custom static files (such as style sheets) here,
|
|
159
146
|
# relative to this directory. They are copied after the builtin static files,
|
|
160
147
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
@@ -49,6 +49,26 @@ Design elements include but are not limited to:
|
|
|
49
49
|
* **User-defined tags:** annotate tasks with `key`:`value` tags. |br|
|
|
50
50
|
Manage catalogs of large collections of tasks with ease.
|
|
51
51
|
|
|
52
|
+
.. admonition:: What's new
|
|
53
|
+
:class: tip
|
|
54
|
+
|
|
55
|
+
*HyperShell* 2.9 is in pre-release. Highlights so far:
|
|
56
|
+
|
|
57
|
+
* **Zones and relays:** place tasks and clients by name, and run one campaign across several
|
|
58
|
+
sites. With ``--autoscaling``, ``hs cluster`` scales each zone on its own, and ``hs server``
|
|
59
|
+
spreads clients across relay sites within the bounds each relay sets.
|
|
60
|
+
* **TimescaleDB and in-place upgrades:** a TimescaleDB provider with compression, and the first
|
|
61
|
+
2.9 process upgrades a 2.8 database in place.
|
|
62
|
+
* **Task files:** submit tasks from JSON, submit the same file again safely, and pin each task
|
|
63
|
+
to its own core or GPU.
|
|
64
|
+
* **Installing 2.9:** it is a pre-release, so use ``pip install --pre hypershell``. Upgrade the
|
|
65
|
+
server and every client together, and back up the database first.
|
|
66
|
+
* **2.8.1 to 2.8.7:** fixes for cancelled tasks, retries, and stranded task groups, and the run
|
|
67
|
+
key kept off command lines. If you run 2.8, upgrade to 2.8.7.
|
|
68
|
+
|
|
69
|
+
Read the release notes for `2.9.0 <https://www.hypershell.org/blog/hypershell-2-9-0>`__ and
|
|
70
|
+
`2.8.1 to 2.8.7 <https://www.hypershell.org/blog/hypershell-2-8-x>`__.
|
|
71
|
+
|
|
52
72
|
-------------------
|
|
53
73
|
|
|
54
74
|
Usage
|
|
@@ -186,7 +206,6 @@ If this software has helped facilitate your research please consider citing us.
|
|
|
186
206
|
:hidden:
|
|
187
207
|
:caption: Intro
|
|
188
208
|
|
|
189
|
-
whats_new
|
|
190
209
|
getting_started
|
|
191
210
|
install
|
|
192
211
|
security
|