hypershell 2.9.0a8__tar.gz → 2.9.0a9__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.0a8 → hypershell-2.9.0a9}/PKG-INFO +1 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/client_desc.rst +5 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/client_help.rst +29 -18
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/client_usage.rst +1 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/cluster_desc.rst +18 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/cluster_help.rst +70 -14
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/cluster_usage.rst +2 -2
- hypershell-2.9.0a9/docs/_include/config_intro.rst +196 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_intro_alt.rst +5 -5
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_param_ref.rst +311 -18
- hypershell-2.9.0a9/docs/_include/config_set_desc.rst +15 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_set_help.rst +1 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_task_env.rst +11 -3
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_task_env_alt.rst +6 -3
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/database.rst +18 -18
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/database_alt.rst +5 -6
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/relay_desc.rst +16 -4
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/relay_help.rst +20 -3
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/relay_usage.rst +2 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/security_alt.rst +9 -5
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/server_desc.rst +8 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/server_help.rst +33 -16
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/server_usage.rst +1 -1
- hypershell-2.9.0a9/docs/_include/submit_desc.rst +79 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/submit_help.rst +9 -7
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/submit_usage.rst +1 -1
- hypershell-2.9.0a9/docs/_include/task_groups_alt.rst +81 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_run_help.rst +6 -1
- hypershell-2.9.0a9/docs/_include/task_update_desc.rst +35 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_update_help.rst +5 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_wait_help.rst +6 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/templates.rst +6 -2
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/api/cluster.rst +15 -2
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/api/server.rst +10 -2
- hypershell-2.9.0a9/docs/cli/client.rst +49 -0
- hypershell-2.9.0a9/docs/cli/cluster.rst +118 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/config_set.rst +4 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/relay.rst +13 -3
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/server.rst +48 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/submit.rst +8 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/task_run.rst +4 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/task_search.rst +4 -0
- hypershell-2.9.0a9/docs/cli/task_update.rst +66 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/task_wait.rst +4 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/config.rst +0 -10
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/getting_started.rst +15 -6
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/index.rst +2 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/install.rst +4 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/manual.rst +25 -5
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/security.rst +61 -17
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/pyproject.toml +1 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/share/bash_completion.d/hs +21 -25
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/share/man/man1/hs.1 +568 -115
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/share/man/man1/hsx.1 +568 -115
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/share/man/man1/hyper-shell.1 +568 -115
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/share/zsh/site-functions/_hs +16 -17
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/client.py +134 -61
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/cluster/__init__.py +149 -48
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/cluster/launch.py +99 -26
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/cluster/local.py +13 -6
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/cluster/remote.py +195 -39
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/cluster/ssh.py +38 -15
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/cluster/topology.py +3 -2
- hypershell-2.9.0a9/src/hypershell/cluster/watch.py +228 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/config.py +32 -13
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/config.py +184 -21
- hypershell-2.9.0a9/src/hypershell/core/config_schema.py +391 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/dispatch.py +25 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/queue.py +212 -26
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/reconnect.py +67 -10
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/tls.py +44 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/types.py +76 -7
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/data/model.py +630 -104
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/relay/__init__.py +113 -27
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/relay/site.py +42 -22
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/relay/store.py +63 -4
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/relay/upstream.py +262 -40
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/server.py +321 -104
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/submit.py +577 -145
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/task.py +80 -123
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/bench/bench_queue.py +7 -6
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/fixtures/README.md +32 -0
- hypershell-2.9.0a9/tests/fixtures/make-task-wire-2.9.0a8.sh +94 -0
- hypershell-2.9.0a9/tests/input_checks.py +149 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_auth_variants.py +7 -3
- hypershell-2.9.0a9/tests/test_autoscale_failed_launches.py +444 -0
- hypershell-2.9.0a9/tests/test_client_bundle_keys.py +145 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_client_request.py +20 -5
- hypershell-2.9.0a9/tests/test_client_return.py +191 -0
- hypershell-2.9.0a9/tests/test_cluster_advertise.py +236 -0
- hypershell-2.9.0a9/tests/test_cluster_evict.py +196 -0
- hypershell-2.9.0a9/tests/test_cluster_exit.py +711 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_cluster_launch.py +124 -38
- hypershell-2.9.0a9/tests/test_cluster_locked.py +587 -0
- hypershell-2.9.0a9/tests/test_cluster_no_db.py +181 -0
- hypershell-2.9.0a9/tests/test_cluster_nodb_finish.py +206 -0
- hypershell-2.9.0a9/tests/test_command_hash.py +225 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_completions.py +14 -0
- hypershell-2.9.0a9/tests/test_config_schema.py +478 -0
- hypershell-2.9.0a9/tests/test_config_set_types.py +385 -0
- hypershell-2.9.0a9/tests/test_config_unread.py +438 -0
- hypershell-2.9.0a9/tests/test_contended_recovery.py +1520 -0
- hypershell-2.9.0a9/tests/test_contended_write.py +1018 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_data/test_model.py +6 -5
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_dispatch.py +24 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_dispatch_staged.py +3 -2
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_dispatch_version.py +3 -2
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_dispatch_workload.py +18 -14
- hypershell-2.9.0a9/tests/test_duration_options.py +425 -0
- hypershell-2.9.0a9/tests/test_env_blame.py +92 -0
- hypershell-2.9.0a9/tests/test_env_config.py +669 -0
- hypershell-2.9.0a9/tests/test_env_duration.py +220 -0
- hypershell-2.9.0a9/tests/test_env_export.py +130 -0
- hypershell-2.9.0a9/tests/test_finish_wake.py +309 -0
- hypershell-2.9.0a9/tests/test_group_integer.py +370 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_group_order.py +7 -6
- hypershell-2.9.0a9/tests/test_group_stream.py +171 -0
- hypershell-2.9.0a9/tests/test_key_option.py +311 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_list.py +13 -1
- hypershell-2.9.0a9/tests/test_period_floor.py +322 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_queue_limits.py +11 -10
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_queue_start.py +5 -3
- hypershell-2.9.0a9/tests/test_queue_tls.py +1120 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_queue_workload.py +3 -3
- hypershell-2.9.0a9/tests/test_reached_group.py +335 -0
- hypershell-2.9.0a9/tests/test_relay_advertise.py +253 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_connector.py +279 -8
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_fsm.py +23 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_launch.py +32 -1
- hypershell-2.9.0a9/tests/test_relay_link.py +752 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_outage.py +1 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_retire.py +39 -2
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_return.py +148 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_roster.py +29 -5
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_workload.py +152 -32
- hypershell-2.9.0a9/tests/test_resubmit_lower_group.py +117 -0
- hypershell-2.9.0a9/tests/test_retry_declarations.py +143 -0
- hypershell-2.9.0a9/tests/test_retry_defaults.py +215 -0
- hypershell-2.9.0a9/tests/test_retry_terminal.py +192 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_server.py +0 -1
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_server_fsm.py +71 -0
- hypershell-2.9.0a9/tests/test_server_initdb.py +499 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_source.py +98 -1
- hypershell-2.9.0a9/tests/test_stream_input.py +466 -0
- hypershell-2.9.0a9/tests/test_tail_judge.py +160 -0
- hypershell-2.9.0a9/tests/test_task_wire.py +307 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_topology_server.py +7 -6
- hypershell-2.9.0a9/tests/test_update.py +170 -0
- hypershell-2.9.0a9/tests/test_update_refusals.py +144 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_upgrade_cli.py +3 -3
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_writeback_postgres.py +18 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_zone_autoscale.py +9 -2
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_zone_workload.py +4 -3
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/uv.lock +1 -1
- hypershell-2.9.0a8/docs/_include/config_intro.rst +0 -82
- hypershell-2.9.0a8/docs/_include/config_set_desc.rst +0 -1
- hypershell-2.9.0a8/docs/_include/submit_desc.rst +0 -42
- hypershell-2.9.0a8/docs/_include/task_groups_alt.rst +0 -29
- hypershell-2.9.0a8/docs/_include/task_update_desc.rst +0 -16
- hypershell-2.9.0a8/docs/cli/client.rst +0 -25
- hypershell-2.9.0a8/docs/cli/cluster.rst +0 -33
- hypershell-2.9.0a8/docs/cli/task_update.rst +0 -21
- hypershell-2.9.0a8/tests/test_contended_recovery.py +0 -631
- hypershell-2.9.0a8/tests/test_contended_write.py +0 -432
- hypershell-2.9.0a8/tests/test_queue_tls.py +0 -572
- hypershell-2.9.0a8/tests/test_relay_link.py +0 -390
- hypershell-2.9.0a8/tests/test_update.py +0 -62
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/.gitignore +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/CODE_OF_CONDUCT.md +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/LICENSE +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/README.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/Makefile +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/citation.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_edit_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_edit_help.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_edit_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_get_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_get_help.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_get_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_help.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_pythonpath.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_set_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_site_vars.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_which_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_which_help.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/config_which_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/exit_status.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/initdb_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/initdb_help.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/initdb_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/license.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/signals.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_info_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_info_help.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_info_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_run_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_run_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_search_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_search_help.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_search_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_submit_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_submit_help.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_submit_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_update_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_wait_desc.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/task_wait_usage.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/templates_alt.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_include/tls_cli_options.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_static/custom.css +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_static/logo-dark-mode.png +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/_static/logo-light-mode.png +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/alternatives.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/api/client.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/api/data.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/api/index.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/api/submit.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/config.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/config_edit.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/config_get.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/config_which.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/index.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/initdb.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/task_info.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/cli/task_submit.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/conf.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/database.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/logging.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/docs/templates.rst +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/share/bash_completion.d/hsx +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/__init__.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/cluster/demand.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/__init__.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/exceptions.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/fsm.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/heartbeat.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/logging.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/platform.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/pretty_print.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/remote.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/resource.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/signal.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/sys.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/tag.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/template.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/thread.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/topology.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/core/uuid.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/data/__init__.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/data/core.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/data/timescale.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/src/hypershell/data/upgrade.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/__init__.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/cluster/build_archive.sh +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/cluster/compare.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/cluster/drive.sh +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/cluster/smoke.sh +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/conftest.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/fixtures/hypershell-2.8.3.db +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/fixtures/make-2.8.3-db.sh +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/fixtures/make-legacy-postgres.sh +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_autoscale.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_cancel.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_card_info.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_card_integration.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_card_render.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_client.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_cluster.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_cluster_compare.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_data/__init__.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_data/test_core.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_data/test_upgrade.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_factory_fsm.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_groups.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_initdb.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_logging.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_main.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_meta_status.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_queue.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_queue_address_family.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_queue_gc.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_db.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_judge.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_relay_topology.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_restart.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_retire_judge.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_retry_gate.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_signal.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_signal_wake.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_size_duration.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_status_label.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_submit.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_submit_json.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_template.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_timescale.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_topology_judge.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_topology_plan.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_upgrade_postgres.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_writeback.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_writeback_statement.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_zone_dispatch.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_zone_display.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_zone_model.py +0 -0
- {hypershell-2.9.0a8 → hypershell-2.9.0a9}/tests/test_zone_postgres.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.0a9
|
|
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
|
|
@@ -7,3 +7,8 @@ These tasks are run locally by some number of a parallel task executors.
|
|
|
7
7
|
The environment for tasks are the same as for the client. Standard output and error
|
|
8
8
|
for tasks are forwarded to that of the client, unless ``--capture`` is used, in which
|
|
9
9
|
these are directed to individual files for each task.
|
|
10
|
+
|
|
11
|
+
The client takes the key to connect to the server from the ``HYPERSHELL_SERVER_AUTH`` environment
|
|
12
|
+
variable or from ``server.auth`` in a configuration file (or its ``auth_env`` and ``auth_eval``
|
|
13
|
+
forms), never from the command line. A client that ``hs cluster`` launches receives its key
|
|
14
|
+
in that environment variable.
|
|
@@ -20,8 +20,8 @@ Options
|
|
|
20
20
|
Size of task bundle to request from the server and to return results in (default: the
|
|
21
21
|
server's).
|
|
22
22
|
|
|
23
|
-
When given (on the command line, by ``
|
|
24
|
-
file as ``
|
|
23
|
+
When given (on the command line, by ``HYPERSHELL_CLIENT_BUNDLESIZE``, or in a configuration
|
|
24
|
+
file as ``client.bundlesize``), the client advertises this size and the server replies with
|
|
25
25
|
up to this many tasks, never more than its cap (``server.bundlemax``). When not given, the
|
|
26
26
|
client advertises no size and the server uses its own ``--bundlesize``; finished tasks are then
|
|
27
27
|
returned in bundles of the built-in default (1).
|
|
@@ -32,11 +32,17 @@ Options
|
|
|
32
32
|
See also ``--num-threads`` and ``--bundlewait``.
|
|
33
33
|
|
|
34
34
|
``-w``, ``--bundlewait`` *SEC*
|
|
35
|
-
|
|
35
|
+
Time to wait before flushing tasks (default: 5, or ``client.bundlewait``).
|
|
36
|
+
|
|
37
|
+
Specify a number of seconds, units ``d``, ``h``, ``m`` and ``s`` in that order, whole or
|
|
38
|
+
fractional (e.g., ``30s``, ``5m``, ``1h30m``, ``1.5h``), or a Slurm time ``MM:SS``,
|
|
39
|
+
``HH:MM:SS``, ``D-HH``, ``D-HH:MM`` or ``D-HH:MM:SS`` (e.g., ``1:30``). A fraction of a
|
|
40
|
+
second is rounded up to the next whole second.
|
|
36
41
|
|
|
37
42
|
The `client` collector thread that accumulates finished task bundles to return to
|
|
38
43
|
the `server` will push out a bundle after this period of time regardless of whether
|
|
39
|
-
it has reached the preferred bundle size.
|
|
44
|
+
it has reached the preferred bundle size. A client with nothing left to run returns what it
|
|
45
|
+
holds at once.
|
|
40
46
|
|
|
41
47
|
See also ``--bundlesize``.
|
|
42
48
|
|
|
@@ -53,25 +59,25 @@ Options
|
|
|
53
59
|
``-p``, ``--port`` *NUM*
|
|
54
60
|
Port number to connect with server (default: 50001).
|
|
55
61
|
|
|
56
|
-
``-k``, ``--auth`` *KEY*
|
|
57
|
-
Cryptographic authentication key to connect with server (default: <not secure>).
|
|
58
|
-
|
|
59
|
-
The default *KEY* used by the server and client is not secure and only a place holder.
|
|
60
|
-
It is expected that the user choose a secure *KEY*. The `cluster` automatically generates
|
|
61
|
-
a secure one-time *KEY*.
|
|
62
|
-
|
|
63
62
|
``-d``, ``--delay-start`` *SEC*
|
|
64
|
-
Delay time
|
|
63
|
+
Delay time before connecting to server (default: 0).
|
|
64
|
+
|
|
65
|
+
Specify a number of seconds, units ``d``, ``h``, ``m`` and ``s`` in that order, whole or
|
|
66
|
+
fractional (e.g., ``30s``, ``10m``, ``1h30m``, ``1.5h``), or a Slurm time ``MM:SS``,
|
|
67
|
+
``HH:MM:SS``, ``D-HH``, ``D-HH:MM`` or ``D-HH:MM:SS`` (e.g., ``1:30``). Fractions of a second
|
|
68
|
+
are kept (``--delay-start=1.5s`` waits one and a half seconds).
|
|
65
69
|
|
|
66
70
|
At larger scales it can be advantageous to uniformly delay the client launch sequence.
|
|
67
71
|
Hundreds or thousands of clients connecting to the server all at once is a challenge.
|
|
68
72
|
Even if the server could handle the load, your task throughput would be unbalanced,
|
|
69
73
|
coming in waves.
|
|
70
74
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
This also has the effect of staggering the workload. If your tasks take on the
|
|
74
|
-
minutes and you have 1000 nodes, choose ``--delay-start=-
|
|
75
|
+
Write the value with a leading ``-`` to impose a uniform random delay up to the magnitude
|
|
76
|
+
specified (e.g., ``--delay-start=-10m`` or ``--delay-start=-600`` would delay the client up to
|
|
77
|
+
ten minutes). This also has the effect of staggering the workload. If your tasks take on the
|
|
78
|
+
order of 30 minutes and you have 1000 nodes, choose ``--delay-start=-30m``. Attach a value
|
|
79
|
+
with a leading ``-`` to the option with ``=`` as shown; given as a separate word, only a plain
|
|
80
|
+
number (e.g., ``-d -600``) is read as a value on every version of Python.
|
|
75
81
|
|
|
76
82
|
``--no-confirm``
|
|
77
83
|
Disable client confirmation of task bundle received.
|
|
@@ -148,11 +154,16 @@ Options
|
|
|
148
154
|
See also ``--capture``.
|
|
149
155
|
|
|
150
156
|
``-R``, ``--ratelimit`` *NUM*
|
|
151
|
-
Maximum allowed tasks per second per client. (default: none).
|
|
157
|
+
Maximum allowed tasks per second per client; a number, e.g. 0.5 (default: none).
|
|
152
158
|
Individual tasks are throttled if exceeding this average limit.
|
|
153
159
|
|
|
154
160
|
``-S``, ``--signalwait`` *SEC*
|
|
155
|
-
Task-level signal escalation wait period
|
|
161
|
+
Task-level signal escalation wait period (default: 10).
|
|
162
|
+
|
|
163
|
+
Specify a number of seconds, units ``d``, ``h``, ``m`` and ``s`` in that order, whole or
|
|
164
|
+
fractional (e.g., ``30s``, ``5m``, ``1h30m``, ``1.5h``), or a Slurm time ``MM:SS``,
|
|
165
|
+
``HH:MM:SS``, ``D-HH``, ``D-HH:MM`` or ``D-HH:MM:SS`` (e.g., ``1:30``). A fraction of a
|
|
166
|
+
second is rounded up to the next whole second.
|
|
156
167
|
|
|
157
168
|
When tasks fail to halt following an initial SIGINT, the program waits
|
|
158
169
|
this interval in seconds before escalating to the next level of interrupt.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
``hs`` ``client`` ``[-h]``
|
|
2
2
|
``[-N NUM]`` ``[-t TEMPLATE]`` ``[-b SIZE]`` ``[-w SEC]`` ``[-H ADDR]`` ``[-p PORT]``
|
|
3
|
-
``[
|
|
3
|
+
``[--capture | [-o PATH] [-e PATH]]`` ``[--no-confirm]``
|
|
4
4
|
``[-d SEC]`` ``[-T SEC]`` ``[-W SEC]`` ``[-S SEC]`` ``[-R NUM]``
|
|
5
5
|
``[-C NUM]`` ``[-M MEM]`` ``[--monitor]`` ``[--zone NAME]``
|
|
6
6
|
``[--no-tls | [--tls-ca PATH] [--tls-cert PATH] [--tls-key PATH]]``
|
|
@@ -28,9 +28,26 @@ De-dup cost scales with the file's own source lineage rather than the whole data
|
|
|
28
28
|
fast at scale; for very large workflows, a one-time ``submit`` followed by a bare ``hsx --restart`` (no
|
|
29
29
|
file re-read) is cheaper than re-feeding the *FILE* each run.
|
|
30
30
|
|
|
31
|
+
Clients launched on other hosts (``--ssh``, ``--mpi``, ``--launcher`` and ``--autoscaling``) are
|
|
32
|
+
told one address to dial in every mode: the bind address (``-H``) when the server binds one
|
|
33
|
+
specific address, and this host's own name when it binds every interface (*0.0.0.0*, the default
|
|
34
|
+
for remote clients). Use ``--advertise`` (or ``server.advertise``) to tell them another, such as
|
|
35
|
+
a name on the server's certificate; it must be reachable from wherever the clients run.
|
|
36
|
+
|
|
37
|
+
A client process the cluster launched that exits with a non-zero status is warned about when it
|
|
38
|
+
exits, naming it (its host under ``--ssh``). When every process launched with ``--ssh``, ``--mpi``
|
|
39
|
+
or ``--launcher`` has exited, at least one of them non-zero, while tasks remain that no client is
|
|
40
|
+
left to run, the cluster stops its server and exits non-zero with one error naming each process,
|
|
41
|
+
how it exited, and the address the clients were told to dial. A launcher that exits 0 with tasks
|
|
42
|
+
remaining (one that hands its clients to a scheduler and returns, say) leaves the cluster waiting
|
|
43
|
+
for them to connect.
|
|
44
|
+
|
|
31
45
|
Use ``--autoscaling`` with either *fixed* or *dynamic* to run a persistent, elastically scalable
|
|
32
46
|
cluster using an external ``--launcher`` to bring up clients as needed. Clients are scaled per zone:
|
|
33
47
|
each zone with tasks in the active group gets its own clients, and the launcher is told which zone
|
|
34
|
-
each one is for.
|
|
48
|
+
each one is for. When ``autoscale.failed_launches`` launched clients in a row (3 by default) exit
|
|
49
|
+
non-zero while no client is registered with the server, the autoscaler launches no more, and the
|
|
50
|
+
cluster stops its server and exits non-zero with one error naming them and the address the clients
|
|
51
|
+
were told to dial.
|
|
35
52
|
|
|
36
53
|
Use ``hsx`` in place of ``hs cluster``.
|
|
@@ -61,7 +61,23 @@ Options
|
|
|
61
61
|
Bind address (default: localhost, or 0.0.0.0 for remote clients).
|
|
62
62
|
|
|
63
63
|
Sets the address the server binds to. When launching clients on remote hosts
|
|
64
|
-
(``--ssh``, ``--mpi``, or ``--launcher
|
|
64
|
+
(``--ssh``, ``--mpi``, or ``--launcher``, with or without ``--autoscaling``), the default
|
|
65
|
+
*localhost* becomes *0.0.0.0* so they can connect. The clients are told to dial the bind
|
|
66
|
+
address when it is one specific address, and this host's own name when it is *0.0.0.0*,
|
|
67
|
+
unless ``--advertise`` names another.
|
|
68
|
+
|
|
69
|
+
``--advertise`` *ADDR*
|
|
70
|
+
Address remote clients dial (default: by ``-H``, as above).
|
|
71
|
+
|
|
72
|
+
Tells every launched client to dial *ADDR*, whatever the bind address: a name the clients
|
|
73
|
+
can reach the server by that differs from it, such as the name on the server's certificate.
|
|
74
|
+
Also set by ``server.advertise``; this option takes precedence. Not allowed with a local
|
|
75
|
+
cluster, whose clients are not launched.
|
|
76
|
+
|
|
77
|
+
Under TLS the advertised address must be one the client's certificate check accepts: with a
|
|
78
|
+
certificate from the system's trusted authorities (no ``cafile`` and no ``servername``),
|
|
79
|
+
clients check it against the address they dial, so advertise a name the certificate carries,
|
|
80
|
+
or set ``server.tls.servername``.
|
|
65
81
|
|
|
66
82
|
``-p``, ``--port`` *PORT*
|
|
67
83
|
Port number (default: 50001).
|
|
@@ -83,21 +99,35 @@ Options
|
|
|
83
99
|
See also ``--num-threads`` and ``--bundlewait``.
|
|
84
100
|
|
|
85
101
|
``-w``, ``--bundlewait`` *SEC*
|
|
86
|
-
|
|
102
|
+
Time to wait before flushing tasks (default: 5).
|
|
103
|
+
|
|
104
|
+
Specify a number of seconds, units ``d``, ``h``, ``m`` and ``s`` in that order, whole or
|
|
105
|
+
fractional (e.g., ``30s``, ``5m``, ``1h30m``, ``1.5h``), or a Slurm time ``MM:SS``,
|
|
106
|
+
``HH:MM:SS``, ``D-HH``, ``D-HH:MM`` or ``D-HH:MM:SS`` (e.g., ``1:30``). A fraction of a
|
|
107
|
+
second is rounded up to the next whole second.
|
|
87
108
|
|
|
88
109
|
This is used by both the `submit` thread and forwarded to each `client`. The `client` collector
|
|
89
110
|
thread that accumulates finished task bundles to return to the `server` will push out a bundle
|
|
90
111
|
after this period of time regardless of whether it has reached the preferred bundle size.
|
|
112
|
+
A client with nothing left to run returns what it holds at once. The `submit` thread does not:
|
|
113
|
+
it checks this period only when another task arrives, so it holds tasks until a bundle is
|
|
114
|
+
full, a task arrives after the period, or the input ends.
|
|
91
115
|
|
|
92
116
|
See also ``--bundlesize``.
|
|
93
117
|
|
|
94
|
-
``-Q``, ``--poll`` *
|
|
95
|
-
Polling interval
|
|
118
|
+
``-Q``, ``--poll`` *SEC*
|
|
119
|
+
Polling interval between database queries if no tasks are available (default: 30).
|
|
120
|
+
|
|
121
|
+
Specify a number of seconds, units ``d``, ``h``, ``m`` and ``s`` in that order, whole or
|
|
122
|
+
fractional (e.g., ``30s``, ``5m``, ``1h30m``, ``1.5h``), or a Slurm time ``MM:SS``,
|
|
123
|
+
``HH:MM:SS``, ``D-HH``, ``D-HH:MM`` or ``D-HH:MM:SS`` (e.g., ``1:30``). A fraction of a
|
|
124
|
+
second is rounded up to the next whole second.
|
|
96
125
|
|
|
97
126
|
This controls how frequently the scheduler checks the database for new tasks when idle.
|
|
98
127
|
Lower values (e.g., 1-2 seconds) provide faster responsiveness but may increase database
|
|
99
128
|
query load. Higher values (e.g., 10-30 seconds) reduce query frequency, useful for
|
|
100
|
-
workflows with infrequent task submission.
|
|
129
|
+
workflows with infrequent task submission. The result that finishes a run ends the
|
|
130
|
+
scheduler's wait at once.
|
|
101
131
|
|
|
102
132
|
``-r``, ``--max-retries`` *NUM*
|
|
103
133
|
Auto-retry failed tasks (default: 0).
|
|
@@ -107,6 +137,10 @@ Options
|
|
|
107
137
|
than zero defines the number of attempts for the task. The original is not over-written, a new
|
|
108
138
|
task is submitted and later scheduled.
|
|
109
139
|
|
|
140
|
+
A task whose template does not expand (-1001) or that needs more cores or memory than its
|
|
141
|
+
client has (-1002) is never retried: it did not run, and its group fails at once.
|
|
142
|
+
A retry keeps its task's cores, memory and walltime.
|
|
143
|
+
|
|
110
144
|
See also ``--eager``.
|
|
111
145
|
|
|
112
146
|
``--eager``
|
|
@@ -119,7 +153,8 @@ Options
|
|
|
119
153
|
|
|
120
154
|
By default, a scheduler thread selects tasks from a database that were previously submitted.
|
|
121
155
|
With ``--no-db`` enabled, there is no scheduler and instead the `submit` thread publishes
|
|
122
|
-
bundles directly to the queue.
|
|
156
|
+
bundles directly to the queue. The configured database is not opened at all, so it need not
|
|
157
|
+
exist or be initialized.
|
|
123
158
|
|
|
124
159
|
``--zone`` *NAME*
|
|
125
160
|
Zone of the submitted tasks and of every client the cluster launches; the own zone with
|
|
@@ -215,17 +250,24 @@ Options
|
|
|
215
250
|
This option is necessary for clients with a different install path on client hosts.
|
|
216
251
|
|
|
217
252
|
``-d``, ``--delay-start`` *SEC*
|
|
218
|
-
Delay time
|
|
253
|
+
Delay time for launching clients (default: 0).
|
|
254
|
+
|
|
255
|
+
Specify a number of seconds, units ``d``, ``h``, ``m`` and ``s`` in that order, whole or
|
|
256
|
+
fractional (e.g., ``30s``, ``10m``, ``1h30m``, ``1.5h``), or a Slurm time ``MM:SS``,
|
|
257
|
+
``HH:MM:SS``, ``D-HH``, ``D-HH:MM`` or ``D-HH:MM:SS`` (e.g., ``1:30``). Fractions of a second
|
|
258
|
+
are kept (``--delay-start=1.5s`` waits one and a half seconds).
|
|
219
259
|
|
|
220
260
|
At larger scales it can be advantageous to uniformly delay the client launch sequence.
|
|
221
261
|
Hundreds or thousands of clients connecting to the server all at once is a challenge.
|
|
222
262
|
Even if the server could handle the load, your task throughput would be unbalanced,
|
|
223
263
|
coming in waves.
|
|
224
264
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
This also has the effect of staggering the workload. If your tasks take on the
|
|
228
|
-
minutes and you have 1000 nodes, choose ``--delay-start=-
|
|
265
|
+
Write the value with a leading ``-`` to impose a uniform random delay up to the magnitude
|
|
266
|
+
specified (e.g., ``--delay-start=-10m`` or ``--delay-start=-600`` would delay the client up to
|
|
267
|
+
ten minutes). This also has the effect of staggering the workload. If your tasks take on the
|
|
268
|
+
order of 30 minutes and you have 1000 nodes, choose ``--delay-start=-30m``. Attach a value
|
|
269
|
+
with a leading ``-`` to the option with ``=`` as shown; given as a separate word, only a plain
|
|
270
|
+
number (e.g., ``-d -600``) is read as a value on every version of Python.
|
|
229
271
|
|
|
230
272
|
``--capture``
|
|
231
273
|
Capture individual task <stdout> and <stderr>.
|
|
@@ -322,11 +364,16 @@ Options
|
|
|
322
364
|
See also ``--capture``.
|
|
323
365
|
|
|
324
366
|
``-R``, ``--ratelimit`` *NUM*
|
|
325
|
-
Maximum allowed tasks per second per client. (default: none).
|
|
367
|
+
Maximum allowed tasks per second per client; a number, e.g. 0.5 (default: none).
|
|
326
368
|
Individual tasks are throttled if exceeding this average limit.
|
|
327
369
|
|
|
328
370
|
``-S``, ``--signalwait`` *SEC*
|
|
329
|
-
Task-level signal escalation wait period
|
|
371
|
+
Task-level signal escalation wait period (default: 10).
|
|
372
|
+
|
|
373
|
+
Specify a number of seconds, units ``d``, ``h``, ``m`` and ``s`` in that order, whole or
|
|
374
|
+
fractional (e.g., ``30s``, ``5m``, ``1h30m``, ``1.5h``), or a Slurm time ``MM:SS``,
|
|
375
|
+
``HH:MM:SS``, ``D-HH``, ``D-HH:MM`` or ``D-HH:MM:SS`` (e.g., ``1:30``). A fraction of a
|
|
376
|
+
second is rounded up to the next whole second.
|
|
330
377
|
|
|
331
378
|
When tasks fail to halt following an initial SIGINT, the program waits
|
|
332
379
|
this interval in seconds before escalating to the next level of interrupt.
|
|
@@ -347,6 +394,9 @@ Options
|
|
|
347
394
|
|
|
348
395
|
A *fixed* policy will seek to maintain a definite size and allows for recovery in the
|
|
349
396
|
event that clients halt for some reason (e.g., due to expected faults or timeouts).
|
|
397
|
+
A launch that keeps failing is not repeated forever, under either policy: once
|
|
398
|
+
``autoscale.failed_launches`` launched clients in a row (default: 3) exit non-zero while no
|
|
399
|
+
client is registered, the cluster stops and exits non-zero, naming them.
|
|
350
400
|
|
|
351
401
|
A *dynamic* policy maintains a ``--min-size`` (default: 0) and grows up to some
|
|
352
402
|
``--max-size`` depending on the observed *task pressure* given the specified scaling
|
|
@@ -401,7 +451,13 @@ Options
|
|
|
401
451
|
See also ``--period``. Only valid with ``--autoscaling``.
|
|
402
452
|
|
|
403
453
|
``-P``, ``--period`` *SEC*
|
|
404
|
-
Scaling period
|
|
454
|
+
Scaling period, greater than zero (default: 60).
|
|
455
|
+
|
|
456
|
+
Specify a number of seconds, units ``d``, ``h``, ``m`` and ``s`` in that order, whole or
|
|
457
|
+
fractional (e.g., ``30s``, ``5m``, ``1h30m``, ``1.5h``), or a Slurm time ``MM:SS``,
|
|
458
|
+
``HH:MM:SS``, ``D-HH``, ``D-HH:MM`` or ``D-HH:MM:SS`` (e.g., ``1:30``). A fraction of a
|
|
459
|
+
second is rounded up to the next whole second. A period of zero or less, here or in
|
|
460
|
+
``autoscale.period``, is refused.
|
|
405
461
|
|
|
406
462
|
The autoscaler waits for this period of time in between checks and scaling events.
|
|
407
463
|
A shorter period makes the scaling behavior more responsive but can effect database
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
``hs cluster [-h]`` ``[FILE | --from-json SPEC | --restart | --forever]`` ``[--repeat | --update]``
|
|
2
|
-
``[-N NUM]`` ``[-t CMD]`` ``[-b SIZE]`` ``[-w SEC]`` ``[-Q
|
|
3
|
-
``[-H ADDR]`` ``[-p PORT]`` ``[-r NUM [--eager]]`` ``[-f PATH]`` ``[--capture | [-o PATH] [-e PATH]]``
|
|
2
|
+
``[-N NUM]`` ``[-t CMD]`` ``[-b SIZE]`` ``[-w SEC]`` ``[-Q SEC]``
|
|
3
|
+
``[-H ADDR]`` ``[--advertise ADDR]`` ``[-p PORT]`` ``[-r NUM [--eager]]`` ``[-f PATH]`` ``[--capture | [-o PATH] [-e PATH]]``
|
|
4
4
|
``[--ssh [HOST... | --ssh-group NAME] [--env] | --mpi | --launcher=ARGS...]``
|
|
5
5
|
``[--no-db [--no-confirm] | --initdb]`` ``[-d SEC]`` ``[-T SEC]`` ``[-W SEC]`` ``[-S SEC]`` ``[-R NUM]``
|
|
6
6
|
``[-c NUM]`` ``[-m MEM]`` ``[-C NUM]`` ``[-M MEM]`` ``[--monitor]`` ``[--zone NAME]``
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
Most of the choices that `HyperShell` makes about timing, task bundling, coordination, logging,
|
|
2
|
+
and such are configurable by the user. This configuration is loaded when the program starts
|
|
3
|
+
and is constructed from several sources including an ordered merger of files, environment variables,
|
|
4
|
+
and command-line options.
|
|
5
|
+
|
|
6
|
+
In order of precedence (lowest to highest), three files are loaded for `system`, `user` and `local`
|
|
7
|
+
configuration. See below the section on file system paths for more details.
|
|
8
|
+
|
|
9
|
+
On Linux (for example):
|
|
10
|
+
|
|
11
|
+
.. table::
|
|
12
|
+
:widths: 30 70
|
|
13
|
+
|
|
14
|
+
================ =================================
|
|
15
|
+
Site Path (Linux / POSIX)
|
|
16
|
+
================ =================================
|
|
17
|
+
System ``/etc/hypershell.toml``
|
|
18
|
+
User ``~/.hypershell/config.toml``
|
|
19
|
+
Local ``./.hypershell/config.toml``
|
|
20
|
+
================ =================================
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
The `TOML <https://toml.io>`_ format is modern and minimal.
|
|
24
|
+
|
|
25
|
+
Every configurable option can be set in one of these files. Further, every option can
|
|
26
|
+
also be set by an environment variable: ``HYPERSHELL_`` followed by the option's path, with each
|
|
27
|
+
``.`` written as ``_`` (see :ref:`Environment Variables <config_env>` below).
|
|
28
|
+
|
|
29
|
+
For example, set the logging level at the user level with a command:
|
|
30
|
+
|
|
31
|
+
.. admonition:: Set user-level configuration option
|
|
32
|
+
:class: note
|
|
33
|
+
|
|
34
|
+
.. code-block:: shell
|
|
35
|
+
|
|
36
|
+
hs config set logging.level info --user
|
|
37
|
+
|
|
38
|
+
The file should now look something like this:
|
|
39
|
+
|
|
40
|
+
.. admonition:: ~/.hypershell/config.toml
|
|
41
|
+
:class: note
|
|
42
|
+
|
|
43
|
+
.. code-block:: toml
|
|
44
|
+
|
|
45
|
+
# File automatically created on 2022-07-02 11:57:29.332993
|
|
46
|
+
# Settings here are merged automatically with defaults and environment variables
|
|
47
|
+
|
|
48
|
+
[logging]
|
|
49
|
+
level = "info"
|
|
50
|
+
|
|
51
|
+
Alternatively, you can set an environment variable and the runtime configuration
|
|
52
|
+
would be equivalent:
|
|
53
|
+
|
|
54
|
+
.. admonition:: Define environment variable
|
|
55
|
+
:class: note
|
|
56
|
+
|
|
57
|
+
.. code-block:: shell
|
|
58
|
+
|
|
59
|
+
export HYPERSHELL_LOGGING_LEVEL=INFO
|
|
60
|
+
|
|
61
|
+
Finally, any option defined within a configuration file that ends with ``_env`` or ``_eval``
|
|
62
|
+
(or by a variable that ends with ``_ENV`` or ``_EVAL``) is automatically expanded by the given
|
|
63
|
+
environment variable or shell expression, respectively. This is useful as both a dynamic feature
|
|
64
|
+
but also as a means to obfuscate sensitive information, such as database connection details.
|
|
65
|
+
|
|
66
|
+
.. admonition:: ~/.hypershell/config.toml
|
|
67
|
+
:class: note
|
|
68
|
+
|
|
69
|
+
.. code-block:: toml
|
|
70
|
+
|
|
71
|
+
# File automatically created on 2022-07-02 11:57:29.332993
|
|
72
|
+
# Settings here are merged automatically with defaults and environment variables
|
|
73
|
+
|
|
74
|
+
[logging]
|
|
75
|
+
level = "info"
|
|
76
|
+
|
|
77
|
+
[database]
|
|
78
|
+
provider = "postgres"
|
|
79
|
+
database = "hypershell"
|
|
80
|
+
host = "my.instance.university.edu"
|
|
81
|
+
user = "me"
|
|
82
|
+
password_eval = "pass hypershell/database/password" # Decrypt using GNU Pass
|
|
83
|
+
|
|
84
|
+
The `edit` command makes it easy to open the correct configuration file path for your platform
|
|
85
|
+
using the default editor. Set the ``EDITOR`` environment variable (or ``VISUAL`` on `Windows`).
|
|
86
|
+
|
|
87
|
+
.. admonition:: Open global user-level configuration file for editing
|
|
88
|
+
:class: note
|
|
89
|
+
|
|
90
|
+
.. code-block:: shell
|
|
91
|
+
|
|
92
|
+
hs config edit --user
|
|
93
|
+
|
|
94
|
+
------
|
|
95
|
+
|
|
96
|
+
.. _config_env:
|
|
97
|
+
|
|
98
|
+
Environment Variables
|
|
99
|
+
---------------------
|
|
100
|
+
|
|
101
|
+
|
|
|
102
|
+
|
|
103
|
+
Every key in the :ref:`parameter reference <config_params>` can also be set by an environment
|
|
104
|
+
variable. The name is ``HYPERSHELL_`` followed by the key's path, with each ``.`` written as ``_``:
|
|
105
|
+
``logging.level`` is ``HYPERSHELL_LOGGING_LEVEL`` and ``server.tls.min_version`` is
|
|
106
|
+
``HYPERSHELL_SERVER_TLS_MIN_VERSION``. The prefix is written in capitals; the rest may be in any
|
|
107
|
+
letter case (``HYPERSHELL_server_tls_min_version`` sets the same key). A variable takes precedence
|
|
108
|
+
over every configuration file, and a command-line option over the variable.
|
|
109
|
+
|
|
110
|
+
.. admonition:: Set keys whose names have an underscore
|
|
111
|
+
:class: note
|
|
112
|
+
|
|
113
|
+
.. code-block:: shell
|
|
114
|
+
|
|
115
|
+
export HYPERSHELL_SERVER_TLS_MIN_VERSION=TLSv1.3
|
|
116
|
+
export HYPERSHELL_RELAY_LAUNCHER_ARGS="--mem=4G"
|
|
117
|
+
export HYPERSHELL_AUTOSCALE_FAILED_LAUNCHES=5
|
|
118
|
+
|
|
119
|
+
A name is matched against the keys HyperShell knows, not split at every underscore, so a key whose
|
|
120
|
+
own name has an underscore is reached as written above. Past the path of a table whose entries you
|
|
121
|
+
name yourself, the rest of the name is one entry, underscores kept, in lower case:
|
|
122
|
+
|
|
123
|
+
- ``HYPERSHELL_DATABASE_PRAGMAS_JOURNAL_MODE`` sets ``database.pragmas.journal_mode``, and likewise
|
|
124
|
+
for ``database.connect_args``;
|
|
125
|
+
- ``HYPERSHELL_SSH_NODELIST_MY_GROUP`` sets the ``[ssh.nodelist]`` group ``my_group``;
|
|
126
|
+
- a name past ``HYPERSHELL_DATABASE_`` that is no ``[database]`` key, such as
|
|
127
|
+
``HYPERSHELL_DATABASE_SSL_MODE``, is a provider argument (``ssl_mode``);
|
|
128
|
+
- ``HYPERSHELL_EXPORT_<NAME>`` gives every task the variable ``<NAME>``, letter case as written
|
|
129
|
+
(see :ref:`Task Environment <config_task_env>`).
|
|
130
|
+
|
|
131
|
+
A relay zone table is named by ``HYPERSHELL_RELAY_ZONE_<ZONE>_<KEY>``, where ``<KEY>`` is one of
|
|
132
|
+
the zone keys (``LAUNCHER``, ``LAUNCHER_ARGS``, ``SIZE``, ``MIN``, ``MAX``, ``INIT``) and the part
|
|
133
|
+
before it is the zone name: ``HYPERSHELL_RELAY_ZONE_GPU_A100_LAUNCHER_ARGS`` sets ``launcher_args``
|
|
134
|
+
of zone ``gpu_a100``. A ``HYPERSHELL_RELAY_ZONE_`` name that ends in no zone key, and
|
|
135
|
+
``HYPERSHELL_RELAY_ZONE`` set together with a zone table variable, are refused.
|
|
136
|
+
|
|
137
|
+
``HYPERSHELL_<KEY>_ENV`` and ``HYPERSHELL_<KEY>_EVAL`` work as ``<key>_env`` and ``<key>_eval`` do
|
|
138
|
+
in a file (see above): ``HYPERSHELL_SERVER_AUTH_ENV=MY_KEY`` reads the key from ``MY_KEY``. Two
|
|
139
|
+
forms of one key (``server.auth`` or ``relay.upstream.auth``) set in the environment are refused,
|
|
140
|
+
as they are in one file.
|
|
141
|
+
|
|
142
|
+
.. _config_value_types:
|
|
143
|
+
|
|
144
|
+
The value is read by the key's type:
|
|
145
|
+
|
|
146
|
+
- A key that takes text holds the value as written, including ``false``, ``null``, an empty value,
|
|
147
|
+
leading zeros and an exponent (``HYPERSHELL_SERVER_AUTH=0012345678901234`` is that key).
|
|
148
|
+
- An empty value for an optional text key is not given, and the key's default applies, as if the
|
|
149
|
+
variable were not set. The optional text keys are those with no default or one that means none
|
|
150
|
+
(``<none>``, ``<auto>``), such as ``logging.file`` and its ``path``, ``database.user`` and
|
|
151
|
+
``database.password``, the ``[server.tls]`` files, ``server.advertise`` and
|
|
152
|
+
``relay.advertise``; so are ``server.bind``, ``relay.bind``, ``database.host`` and
|
|
153
|
+
``task.cwd``, so an empty bind, host or task directory is the default one. A text key with a
|
|
154
|
+
default of its own holds an empty value as written, as in a file: ``HYPERSHELL_DATABASE_TIMESCALE_SEGMENTBY=`` is ``segmentby = ""``. In a
|
|
155
|
+
file, an empty value is read as before.
|
|
156
|
+
- A key that takes a whole number, a number or a boolean holds the converted value. A boolean takes
|
|
157
|
+
``true``/``false``, ``yes``/``no``, ``on``/``off`` or ``1``/``0``, in any letter case. A value
|
|
158
|
+
that does not convert, an empty one included, stops the command with a configuration error naming
|
|
159
|
+
the variable.
|
|
160
|
+
- A duration or a size takes the forms its entry gives (e.g., ``HYPERSHELL_SERVER_EVICT=10m``,
|
|
161
|
+
``HYPERSHELL_TASK_MEMORY=16G``), checked by the command that reads it.
|
|
162
|
+
- An entry with no type of its own (one you name in ``database.connect_args``,
|
|
163
|
+
``database.pragmas`` or ``[database]``, and a name held as below) holds a TOML integer, float or
|
|
164
|
+
boolean when the value is exactly one (``5``, ``2.5``, ``true``), and the text otherwise
|
|
165
|
+
(``007``, ``True``). An ``[ssh.nodelist]`` group, a zone's ``launcher`` and ``export`` entries are
|
|
166
|
+
text; a zone's sizes and bounds are whole numbers.
|
|
167
|
+
|
|
168
|
+
A few names are read by the program itself and are not configuration keys:
|
|
169
|
+
``HYPERSHELL_SITE`` and ``HYPERSHELL_CONFIG_FILE`` (see *Filesystem Paths* below),
|
|
170
|
+
``HYPERSHELL_PYTHONPATH`` (see *Runtime Package Resolution* below) and ``HYPERSHELL_ZONE``, which
|
|
171
|
+
a launched *client* is given.
|
|
172
|
+
|
|
173
|
+
A few cases to keep in mind:
|
|
174
|
+
|
|
175
|
+
- A ``HYPERSHELL_`` name that matches no key is held as one key, underscores kept, under the
|
|
176
|
+
deepest table its name spells (``HYPERSHELL_SERVER_PORT_X`` is ``server.port_x``); nothing reads
|
|
177
|
+
it, and it is not an error.
|
|
178
|
+
- Two variables that set one key (``HYPERSHELL_SERVER_PORT`` and ``HYPERSHELL_server_port``) are
|
|
179
|
+
refused.
|
|
180
|
+
- ``logging.file`` takes a word (``true``, ``enabled``) or a path; set beside
|
|
181
|
+
``HYPERSHELL_LOGGING_FILE_*`` entries, a path becomes ``logging.file.path``. For
|
|
182
|
+
``ssh.nodelist`` and ``database``, entries beneath them win over a value given for the table.
|
|
183
|
+
- A name equal to a table's own path (``HYPERSHELL_SERVER_TLS``) replaces the whole table with its
|
|
184
|
+
text; do not set one.
|
|
185
|
+
|
|
186
|
+
Some names cannot be reached from the environment, only from a file: a ``[database]`` provider
|
|
187
|
+
argument whose name begins ``connect_args_``, ``pragmas_`` or ``timescale_`` (those name the
|
|
188
|
+
``[database]`` tables), and any table entry or zone name with a character a variable name cannot
|
|
189
|
+
hold (e.g., a zone ``gpu-a100``).
|
|
190
|
+
|
|
191
|
+
.. only:: html
|
|
192
|
+
|
|
193
|
+
.. versionchanged:: 2.9.0
|
|
194
|
+
:pr:`113`: a key whose name has an underscore, open-table entries, zone tables,
|
|
195
|
+
``_ENV``/``_EVAL``, values as written, and an empty value for an optional text key read as
|
|
196
|
+
not given.
|
|
@@ -18,8 +18,8 @@ Local ``./.hypershell/config.toml`` ``./.hypershell/config.toml
|
|
|
18
18
|
The `TOML <https://toml.io>`_ format is modern and minimal.
|
|
19
19
|
|
|
20
20
|
Every configurable option can be set in one of these files. Further, every option can
|
|
21
|
-
also be set by an environment variable
|
|
22
|
-
|
|
21
|
+
also be set by an environment variable: ``HYPERSHELL_`` followed by the option's path, with each
|
|
22
|
+
``.`` written as ``_`` (see *Environment Variables* below).
|
|
23
23
|
|
|
24
24
|
For example, set the logging level at the user level with a command:
|
|
25
25
|
|
|
@@ -45,9 +45,9 @@ would be equivalent:
|
|
|
45
45
|
$ export HYPERSHELL_LOGGING_LEVEL=INFO
|
|
46
46
|
|
|
47
47
|
Finally, any option defined within a configuration file that ends with ``_env`` or ``_eval``
|
|
48
|
-
is automatically expanded by the given
|
|
49
|
-
respectively. This is useful as both a dynamic feature
|
|
50
|
-
obfuscate sensitive information, such as database connection details.
|
|
48
|
+
(or by a variable that ends with ``_ENV`` or ``_EVAL``) is automatically expanded by the given
|
|
49
|
+
environment variable or shell expression, respectively. This is useful as both a dynamic feature
|
|
50
|
+
but also as a means to obfuscate sensitive information, such as database connection details.
|
|
51
51
|
|
|
52
52
|
.. code-block:: toml
|
|
53
53
|
|