mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 11:18:16 +00:00
Merge pull request #27277 from wojtek-t/cacher_index
Automatic merge from submit-queue Implement first version of indexing in cacher This PR adds a first version of indexing in cacher. It has a really significant impact on performance - __in empty 2000-node cluster, apiserver cpu usage drops by ~75%.__ Not for 1.3, but we need this soon after 1.3 is done. @lavalamp @mqliang @davidopp @gmarek @kubernetes/sig-scalability
This commit is contained in:
@@ -38,7 +38,7 @@ func NewREST(s storage.Interface, storageDecorator generic.StorageDecorator) *RE
|
||||
// Usually you should reuse your RESTCreateStrategy.
|
||||
strategy := &NotNamespaceScoped{}
|
||||
storageInterface := storageDecorator(
|
||||
s, 100, &testgroup.TestType{}, prefix, strategy, newListFunc)
|
||||
s, 100, &testgroup.TestType{}, prefix, strategy, newListFunc, storage.NoTriggerPublisher)
|
||||
store := ®istry.Store{
|
||||
NewFunc: func() runtime.Object { return &testgroup.TestType{} },
|
||||
// NewListFunc returns an object capable of storing results of an etcd list.
|
||||
|
||||
Reference in New Issue
Block a user