-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for topology garbage collector
Signed-off-by: PiotrProkop <pprokop@nvidia.com>
- Loading branch information
1 parent
4dbb03c
commit daf8440
Showing
4 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "Topology Garbage Collector Cmdline Reference" | ||
layout: default | ||
sort: 4 | ||
--- | ||
|
||
# NFD-Topology-Garbage-Collector Commandline Flags | ||
|
||
{: .no_toc } | ||
|
||
## Table of Contents | ||
|
||
{: .no_toc .text-delta } | ||
|
||
1. TOC | ||
{:toc} | ||
|
||
--- | ||
|
||
To quickly view available command line flags execute `nfd-topology-gc -help`. | ||
In a docker container: | ||
|
||
```bash | ||
docker run {{ site.container_image }} \ | ||
nfd-topology-gc -help | ||
``` | ||
|
||
### -h, -help | ||
|
||
Print usage and exit. | ||
|
||
### -version | ||
|
||
Print version and exit. | ||
|
||
### -gc-interval | ||
|
||
The `-gc-interval` specifies the interval between periodic garbage collector runs. | ||
|
||
Default: 1h | ||
|
||
Example: | ||
|
||
```bash | ||
nfd-topology-gc -gc-interval=1h | ||
``` |
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,26 @@ | ||
--- | ||
title: "NFD-Topology-Garbage-Collector" | ||
layout: default | ||
sort: 5 | ||
--- | ||
|
||
# NFD-Topology-Garbage-Collector | ||
{: .no_toc} | ||
|
||
--- | ||
|
||
NFD-Topology-Garbage-Collector is preferably run as a Kubernetes deployment with one replica. | ||
It makes sure that all [NodeResourceTopology](custom-resources#noderesourcetopology) | ||
have corresponding worker nodes and removes stale objects for worker nodes which are no longer | ||
part of Kubernetes cluster. | ||
|
||
This service watches for Node deletion events and removes NodeResourceTopology objects upon them. | ||
It is also running periodically to make sure no event was missed or NodeResourceTopology object | ||
was created without corresponding worker node. The default garbage collector interval is set to 1h | ||
which is the value when no -gc-interval is specified. | ||
|
||
## Topology-Garbage-Collector Configuration | ||
|
||
In Helm deployments, | ||
[Topology Garbage Collector parameters](../deployment/helm.md#topology-garbage-collector-parameters) | ||
NFD-Topology-Garbage-Collector will only be deployed when topologyUpdater.enable is set to true. |