1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-31 04:04:51 +00:00
node-feature-discovery/pkg
Markus Lehtonen 8ad6210d5c nfd-master: use separate k8s api clients for each updater
Sharing the same client between updater threads virtually serializes
access, in practice making the effective parallelism close to 1.

With this patch, in my bench cluster of 300 nodes, the time taken by
updating all nodes drops from ~2 minutes to ~12 seconds (with the
default parallelism of 10 node updater threads). This demonstrates the
10-fold increased parallelism from ~1 to 10.

There might be other solutions that could be explored, e.g. caching
nodes with an indexer/lister but otoh nfd doesn't necessarily need/want
to watch every little change in each node. We only need to get the node
when something in our own CRDs change (we don't react to any changes in
the node object itself). Using multiple clients was the most obvious
choice to solve the problem for now.
2024-04-15 19:00:30 +03:00
..
apis/nfd Merge pull request #1605 from ArangoGutierrez/codegen 2024-03-12 05:18:25 -07:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
features Add FeatureGate framework to handle new features 2024-03-15 19:11:32 +01:00
generated Update auto-generated code 2024-03-11 12:18:32 +02:00
kubectl-nfd Add kubectl-nfd 2023-12-21 16:00:19 +01:00
labeler Update auto-generated code 2024-03-11 12:18:32 +02:00
nfd-gc Tidy up usage of channels for signaling 2024-04-05 14:39:58 +03:00
nfd-master nfd-master: use separate k8s api clients for each updater 2024-04-15 19:00:30 +03:00
nfd-topology-updater Tidy up usage of channels for signaling 2024-04-05 14:39:58 +03:00
nfd-worker nfd-master: parse kubeconfig even with NoPublish set 2024-04-08 14:25:27 +03:00
podres Update auto-generated code 2024-03-11 12:18:32 +02:00
resourcemonitor topology-updater: ditch apihelper 2024-01-25 22:15:20 +02:00
topologypolicy nrt-api: move from v1alpha1 to v1alpha2 2023-02-09 12:29:54 +01:00
utils nfd-master: prevent crash on empty config struct 2024-04-05 14:19:44 +03:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00