When Bruno said a "Core level handler", he meant a RequestHandler registered in solrconfig.xml and thus accessible as /solr/coreName/admin/encrypt as seen here: https://github.com/apache/solr-sandbox/blob/4e1819ff8a3758becca19bf337ecd1b352dba805/encryption/src/test/resources/configs/collection1/solrconfig.xml#L54 There is ambiguity of the idea of a core or even collection "admin" handler. Do we mean CoreAdminHandler (registered at node level), or do we mean any handler registered *in* the core that we characterize as being administrative in nature.
Some of our handlers like SearchHandler are aware of the collection and operate over the whole collection namespace. Most handlers (?) only know about the core it's registered in, yet can nonetheless be contacted via a core or collection request. On Tue, Dec 3, 2024 at 3:36 PM Jason Gerlowski <gerlowsk...@gmail.com> wrote: > I think the most common way we do stuff like this is two have an API > at both the "core" and "collection" levels, with the "collection" API > being used to orchestrate N calls to the lower-level "core" API. > > Using encryption as the example: the "core"-level API might manage the > encryption of a single core. And then the "collection" level API > would invoke the "core" API for each part of the collection, and do > whatever other higher level logic is necessary (e.g. putting the > collection into "read only" mode, sending messages to the overseer, > etc.) > > This is a pretty common pattern among our collection operations. > "Create collection" has a collection API to bootstrap the necessary ZK > state and then uses a "core admin" API to create individual cores. > "Backup" uses a collection API to put the collection into read-only > mode, and then calls a "core admin" API for each core that needs to be > backed up. etc. > > Hopefully that helps, unless I'm misunderstanding your question? > > Best, > > Jason > > On Wed, Nov 27, 2024 at 6:10 AM Bruno Roustant <bruno.roust...@gmail.com> > wrote: > > > > Generally, where should go operations on a Collection? > > At Collection admin level handler? > > At Core level handler? > > There are examples of both. > > > > I'm asking the question with the Solr encryption feature in mind (in > > solr-sandbox). A client may want to encrypt all the indexes for a given > > Collection. Which handler should receive the request? > > A core level handler that would then distribute the request to all the > > cores of the Collection across SolrCloud? Or a ClusterPlugin request > > handler? > > > > Bruno > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@solr.apache.org > For additional commands, e-mail: dev-h...@solr.apache.org > >