karmada icon indicating copy to clipboard operation
karmada copied to clipboard

[umbrella]Karmada search iterated tasks

Open fly2F opened this issue 2 years ago • 7 comments

What would you like to be added: We are going to implememt karmada search.

I'd like to list all the iterated tasks here, anyone wants to join or help on it, please feel free to leave your comment on it.

Why is this needed:

  • [ ] User guide for karmada search
  • [ ] Search api supports query through backend
  • [ ] Implement resource registry status
  • [ ] Provides an example of an opensearch based dashboard
  • [ ] Add election logic to let the leader write to the backend storage

fly2F avatar Aug 26 '22 10:08 fly2F

Proxy has been added in search #2372. Shall we refactor search, fetch data from proxy cache, instead of informing from member clusters?

ikaven1024 avatar Aug 29 '22 03:08 ikaven1024

@ikaven1024 Yes, we should store unified. But cache is more complex than informer and I needs a more comprehensive understanding.

fly2F avatar Aug 29 '22 06:08 fly2F

@ikaven1024 Currently cacheproxy is private, should it be exposed first?

fly2F avatar Aug 29 '22 06:08 fly2F

@ikaven1024 Currently cacheproxy is private, should it be exposed first?

You shall use this interface, not cacheProxy:

https://github.com/karmada-io/karmada/blob/2b7ed24875f3914a68b3bb618799fa6d1e4fba37/pkg/search/proxy/store/multi_cluster_cache.go#L32-L37

ikaven1024 avatar Aug 29 '22 06:08 ikaven1024

@ikaven1024 How do I get its implementation, or rather, how do I get the MultiClusterCache

fly2F avatar Aug 29 '22 07:08 fly2F

How do I get its implementation, or rather, how do I get the MultiClusterCache

You can add a method in proxy controller to export it.

ikaven1024 avatar Aug 29 '22 07:08 ikaven1024

@liys87x proxy benchmark is done, what do you think about it? https://github.com/karmada-io/karmada/issues/2518#issue-1375349836

ikaven1024 avatar Sep 23 '22 08:09 ikaven1024