Skip to content

Commit 9254f07

Browse files
committed
docs
1 parent c688524 commit 9254f07

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/documentation/features.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,17 @@ See also an example implementation in the
713713

714714
## Optimization of Caches
715715

716-
In case of large clusters with huge amount of resources the memory consumption of an operator
716+
In case of large clusters with huge amount of resources the memory consumption of an operator.
717+
In order to reduce the memory consumption both primary and secondary resources in cache can be pruned, thus only
718+
partial objects will remain in memory.
719+
720+
This has some implications regarding how those objects needs to be managed within a reconciler. Since from this point
721+
reconciler will work only from partial object, all the updates on the pruned resources needs to be done by a PATCH
722+
operations, thus just to send only the required changes.
723+
724+
To see how to use, and how to handle related caveats regarding patches what utilizes
725+
[server side apply](https://kubernetes.io/docs/reference/using-api/server-side-apply/) check the provided
726+
[integration test](https://github.com/java-operator-sdk/java-operator-sdk/blob/c688524e64205690ba15587e7ed96a64dc231430/operator-framework/src/test/java/io/javaoperatorsdk/operator/CachePruneIT.java) and reconciler.
717727

718728
## Automatic Generation of CRDs
719729

0 commit comments

Comments
 (0)