-
Notifications
You must be signed in to change notification settings - Fork 248
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 <[email protected]>
- Loading branch information
1 parent
59afae5
commit 3143faf
Showing
7 changed files
with
105 additions
and
3 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: 6 | ||
--- | ||
|
||
# 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: "CRDs" | ||
layout: default | ||
sort: 6 | ||
sort: 7 | ||
--- | ||
|
||
# Custom Resources | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: "Customization guide" | ||
layout: default | ||
sort: 7 | ||
sort: 8 | ||
--- | ||
|
||
# Customization guide | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: "Examples and demos" | ||
layout: default | ||
sort: 8 | ||
sort: 9 | ||
--- | ||
|
||
# Examples and demos | ||
|
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,29 @@ | ||
--- | ||
title: "NFD-Topology-Garbage-Collector" | ||
layout: default | ||
sort: 6 | ||
--- | ||
|
||
# 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, | ||
(see [Topology Garbage Collector](../deployment/helm.md#topology-garbage-collector-parameters) | ||
for parameters). NFD-Topology-Garbage-Collector will only be deployed when | ||
topologyUpdater.enable is set to true. |