Am 26.04.2012 16:17, schrieb pprabhcisco123:
The use case is to create a core for each customer as well as partner .
Since its very difficult to create cores statically in solr.xml file for all
4500 customers , is there any way to create the cores dynamically or on the
fly.
Yes there is. Have a look at: http://wiki.apache.org/solr/CoreAdmin#CREATE
I suggest to set the "persistent" flag in solr.xml to true.
I think all your cores will share the same configuration, so you can
point all configuration directories to the same one, and install unique
data dirs.
This should be relative simple in theory. In practise, you might detect
performance issues with such a configuration. It should be no big
problem if at most few hundred users work in parallel, but as soon as
most cores are used all together, I predict you'll have bad performance.
Solr has no hard-coded limitation in the number of cores, but each core
has its own caches and readers. Depending on your machine configuration,
this may be too much.
My suggestion is to try it out. It should work first, and if you're
hitting performance limits, then you can modify yourn configuration.
-Kuli