lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From didier deshommes <dfdes...@gmail.com>
Subject Re: transientCacheSize not working
Date Fri, 22 Mar 2013 19:58:58 GMT
I've created an issue and patch here that makes it possible to specify
transient and loadOnStatup on core creation:
https://issues.apache.org/jira/browse/SOLR-4631


On Wed, Mar 20, 2013 at 10:14 AM, didier deshommes <dfdeshom@gmail.com>wrote:

> Thanks. Is there a way to pass loadOnStartup and/or transient as
> parameters to the core admin http api? This doesn't seem to work: curl
> http://localhost:8983/solr/admin/cores?action=CREATE&transient=true&name=c1
>
>
> On Tue, Mar 19, 2013 at 7:29 PM, Mark Miller <markrmiller@gmail.com>wrote:
>
>> I don't think SolrCloud works with the transient stuff.
>>
>> - Mark
>>
>> On Mar 19, 2013, at 8:04 PM, didier deshommes <dfdeshom@gmail.com> wrote:
>>
>> > Hi,
>> > I cannot get Solrcloud to respect transientCacheSize when creating
>> multiple
>> > cores via the web api. I'm runnig solr 4.2 like this:
>> >
>> > java -Dbootstrap_confdir=./solr/collection1/conf
>> > -Dcollection.configName=conf1 -DzkRun -DnumShards=1 -jar start.jar
>> >
>> > I'm creating multiple cores via the core admin http api:
>> > curl http://localhost:8983/solr/admin/cores?action=CREATE&name=tmp1
>> > curl http://localhost:8983/solr/admin/cores?action=CREATE&name=tmp2
>> > curl http://localhost:8983/solr/admin/cores?action=CREATE&name=tmp3
>> >
>> > My solr.xml looks like:
>> >
>> > <?xml version="1.0" encoding="UTF-8" ?>
>> > <solr persistent="true">
>> >  <cores transientCacheSize="2" adminPath="/admin/cores"
>> shareSchema="true"
>> > zkClientTimeout="${zkClientTimeout:15000}" hostPort="8983"
>> > hostContext="solr">
>> >    </cores>
>> > </solr>
>> >
>> > When I list all cores currently loaded, via curl
>> > http://localhost:8983/solr/admin/cores?action=status , I notice that
>> all 3
>> > cores are still running, even though transientCacheSize is 2. Can anyone
>> > tell me why that is?
>> >
>> > Also, is there a way to pass loadOnStartup and transient to the core
>> admin
>> > http api? Specifying these when creating a core doesn't seem to work:
>> curl
>> > http://localhost:8983/solr/admin/cores?action=CREATE&transient=true
>> >
>> > Thanks,
>> > didier
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message