Skip to content

Commit

Permalink
PENG-2457 add config options for the configure hook in the jobbergate…
Browse files Browse the repository at this point in the history
… agent snap
  • Loading branch information
matheushent committed Nov 27, 2024
1 parent 0001083 commit 71d3ffd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
7 changes: 7 additions & 0 deletions jobbergate-agent-snap/hooks/bin/configure
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ AGENT_VARIABLES_MAP: dict[str, Union[str, int]] = {
"SLURM_USER_MAPPER": "",
"SINGLE_USER_SUBMITTER": "ubuntu",
"WRITE_SUBMISSION_FILES": "true",
"INFLUX_DSN": "",
"INFLUX_POOL_SIZE": 10,
"INFLUX_SSL": "false",
"INFLUX_VERIFY_SSL": "false",
"INFLUX_TIMEOUT": "",
"INFLUX_UDP_PORT": 4444,
"INFLUX_CERT_PATH": "",
}


Expand Down
16 changes: 15 additions & 1 deletion jobbergate-agent-snap/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: jobbergate-agent
base: core22
version: '0.4.0'
version: '0.5.0'
summary: The Jobbergate Agent snap
adopt-info: metadata
license: MIT
Expand Down Expand Up @@ -33,6 +33,20 @@ description: |
- write-submission-files: A boolean value (true, false) that indicates whether the agent should write submission files to disk. This is optional and defaults to false.
- influx-dsn: The DSN of the InfluxDB server that the agent will use to fetch job metrics data. It only allows the following schemes: 'influxdb', 'https+influxdb' and 'udp+influxdb'. This is optional and defaults to none.
- influx-pool-size: The size of the InfluxDB connection pool that the agent will use to fetch job metrics data. This is optional and defaults to 10.
- influx-ssl: A boolean value (true, false) that indicates whether the agent should use SSL to connect to the InfluxDB server. If true, `influx-cert-path` must be provided. This is optional and defaults to false.
- influx-verify-ssl: A boolean value (true, false) that indicates whether the agent should verify the SSL certificate of the InfluxDB server. This is optional and defaults to false.
- influx-timeout: The timeout in seconds that the agent will use when connecting to the InfluxDB server. This is optional and defaults to none.
- influx-udp-port: The UDP port that the agent will use to connect to the InfluxDB server. This is optional and defaults to 4444.
- influx-cert-path: The absolute path to the SSL certificate that the agent will use to connect to the InfluxDB server. This is optional and defaults to none.
For learning more about Jobbergate and how it can be used on Vantage, please visit https://docs.vantagehpc.io
grade: stable
Expand Down

0 comments on commit 71d3ffd

Please sign in to comment.