-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create default templates for MT endpoints
For new MT configurations, ensure there's a default user_endpoint configuration template. This provides a scaffolding for admins to modify, rather than requiring a whole-cloth creation, with some low-hanging fruit defaults (e.g., `max_blocks: 1`, `idle_heartbeats_soft`, etc.)
- Loading branch information
1 parent
adbfd2d
commit 0b0892a
Showing
8 changed files
with
158 additions
and
30 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
compute_endpoint/globus_compute_endpoint/endpoint/config/user_config_template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This is the default user-template provided with newly-configured Multi-Tenant | ||
# endpoints. User endpoints generate a user-endpoint-specific configuration by | ||
# processing this YAML file as a Jinja template against user-provided | ||
# variables -- please modify this template to suit your site's requirements. | ||
# | ||
# For more information, please see the `user_endpoint_config` in Globus Compute | ||
# SDK's Executor. | ||
# | ||
# Some common options site-administrators may want to set: | ||
# - address | ||
# - provider (e.g., SlurmProvider, TorqueProvider, CobaltProvider, etc.) | ||
# - account | ||
# - scheduler_options | ||
# - walltime | ||
# - worker_init | ||
# | ||
# There are a number of example configurations available in the documentation: | ||
# https://globus-compute.readthedocs.io/en/stable/endpoints.html#example-configurations | ||
|
||
engine: | ||
type: HighThroughputEngine | ||
max_workers_per_node: 1 | ||
|
||
provider: | ||
type: LocalProvider | ||
|
||
min_blocks: 0 | ||
max_blocks: 1 | ||
init_blocks: 1 | ||
|
||
endpoint_setup: {{ endpoint_setup|default() }} | ||
endpoint_init: {{ endpoint_init|default() }} | ||
worker_init: {{ worker_init|default() }} | ||
|
||
# Endpoints will be restarted when a user submits new tasks to the | ||
# web-services, so eagerly shut down if endpoint is idle. At 30s/hb (default | ||
# value), 10 heartbeats is 300s. | ||
idle_heartbeats_soft: 10 | ||
|
||
# If endpoint is *apparently* idle (e.g., outstanding tasks, but no movement) | ||
# for this many heartbeats, then shutdown anyway. At 30s/hb (default value), | ||
# 5,760 heartbeats == "48 hours". (Note that this value will be ignored if | ||
# idle_heartbeats_soft is 0 or not set.) | ||
idle_heartbeats_hard: 5760 |
19 changes: 19 additions & 0 deletions
19
compute_endpoint/globus_compute_endpoint/endpoint/config/user_environment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Use this YAML file to specify environment variables to inject into the user | ||
# endpoint processes. Following standard process environment variables, any | ||
# variables specified here will be strings to the processes, and there is no | ||
# nesting -- this is a key-value description only. | ||
# | ||
# A couple of notes: | ||
# | ||
# - Values specified here will override any defaults (e.g., PATH) | ||
# | ||
# - Note that PATH is set to a sensible default, so typically won't need to | ||
# be manually specified | ||
# | ||
# - Three variables cannot be set here: HOME, USER, and PWD. These are set | ||
# based on the user's GETENT(1) entry. | ||
# | ||
# Example: | ||
# | ||
# PATH: /opt/bin:/other/dir/bin:/usr/bin | ||
# SITE_SPECIFIC_VAR: some site specific value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters