Skip to content

Commit

Permalink
Merge pull request #134 from matyasselmeci/pr/custom-attributes.SOFTW…
Browse files Browse the repository at this point in the history
…ARE-5324

Document advertising additional startd attributes (SOFTWARE-5324)
  • Loading branch information
matyasselmeci authored Nov 7, 2023
2 parents 110a3a8 + b3486b2 commit 3ea009c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/resource-sharing/os-backfill-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,26 @@ the `--memory` argument tells Docker to kill the container if its total memory u
Additionally, the processes that manage jobs also use some amount of memory.
Therefore, it is important to give the container some extra room.


### Advanced: Advertising additional pilot attributes

You can put arbitrary additional attributes in the machine ads that the pilot advertises to the OSPool.
These attributes will show up when users run `condor_status -l` against your pilot.
This could be useful for advertising something about the way the pilot was provisioned.
To do this, volume-mount a file containing `key=value` pairs to `/etc/osg/extra-attributes.cfg`.
Keys must be valid classad attribute names and values must be valid classad expressions.
Multi-line strings are not supported.
A line starting with `#` will be treated as a comment.
For example:

```
# The Kubernetes namespace this pod is running under
KUBERNETES_NAMESPACE = "path-osgdev"
# The deployment for this pilot
KUBERNETES_DEPLOYMENT = "osgvo-docker-pilot-gpu"
```


Best Practices
--------------

Expand Down

0 comments on commit 3ea009c

Please sign in to comment.