diff --git a/cmd/nfd-master/main.go b/cmd/nfd-master/main.go index 621c2cf42..8de28337f 100644 --- a/cmd/nfd-master/main.go +++ b/cmd/nfd-master/main.go @@ -117,7 +117,7 @@ func initFlags(flagset *flag.FlagSet) (*master.Args, *master.ConfigOverrideArgs) "in the same format as in the config file (i.e. json or yaml). These options") flagset.BoolVar(&args.EnableLeaderElection, "enable-leader-election", false, "Enables a leader election. Enable this when running more than one replica on nfd master.") - flagset.Int64Var(&args.ListSize, "informer-list-size", 200, + flagset.Int64Var(&args.ListSize, "informer-page-size", 200, "The list size to use when listing NodeFeature objects to sync informer cache.") args.Klog = klogutils.InitKlogFlags(flagset) diff --git a/docs/reference/master-commandline-reference.md b/docs/reference/master-commandline-reference.md index aa45c05d1..5a202ffdf 100644 --- a/docs/reference/master-commandline-reference.md +++ b/docs/reference/master-commandline-reference.md @@ -173,9 +173,9 @@ Example: nfd-master -deny-label-ns=*.vendor.com,vendor-2.io ``` -### -informer-list-size +### -informer-page-size -The `-informer-list-size` flag is used to control pagination during informer cache sync on nfd-master startup. +The `-informer-page-size` flag is used to control pagination during informer cache sync on nfd-master startup. This is useful to control load on api-server/etcd as listing NodeFeature objects can be expensive, especially in large clusters. Default: 200 @@ -183,7 +183,7 @@ Default: 200 Example: ```bash -nfd-master -informer-list-size=200 +nfd-master -informer-page-size=20 ``` ### -config