Re: [SOLVED] UPDATE collection's Rule-based Replica Placement

2021-02-17 Thread mosheB
Thanks Ilan and Aroop for replying.
So not exactly move but rather *update* the existing set of rules so future
replica placement will enforced by them.
I managed to do so using the  MODIFYCOLLECTION

  
action:

http://:/solr/admin/collections?action=MODIFYCOLLECTION==shard:*,replica:<2,host:*



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: UPDATE collection's Rule-based Replica Placement

2021-02-11 Thread Aroop Ganguly
Moshe

An indirect way to do this could be to take backup of this collection and then 
restore with the desired placement rules.

Backup: 
Example: curl “https://solr.foo.com/solr/admin/collections? 
action=backup=backup_name=source_collection=hdfsBackupRepository=b1
 

Ref: 
https://lucene.apache.org/solr/guide/8_8/collection-management.html#backup 



Restore with rules:

Example: curl  
“https://solr.foo.com/solr/admin/collections?action=RESTORE=backup_name=targetcollection=hdfsBackupRepository=restore-demo=3=3=shard:*,replica:
 

   
<2,node:*=replica:*,cores:<3~=sysprop.PLATFORM_RACK:*,replica:<3”

Ref: 
https://lucene.apache.org/solr/guide/8_8/collection-management.html#restore 



Hope this helps and gives u a way forward.

Thanks
Aroop


> On Feb 10, 2021, at 2:23 PM, Ilan Ginzburg  wrote:
> 
> Do you look for something that would move existing collection replicas
> to comply with a new set of rules?
> I'm afraid that doesn't exist, but you can use the Collection API to
> move replicas "manually".
> 
> Ilan
> 
> On Tue, Feb 9, 2021 at 1:10 PM mosheB  wrote:
>> 
>> Hi community,
>> Using Solr 8.3, is there any way to change the replica placment of "running"
>> collection say "from this point forward" or should I recreate the collection
>> and migrate all my data from the existing collection to the new one?
>> Tried to use the COLLECTIONPROP action which doesn't do the job, instead it
>> just update collectionprops.json file and not really affect the replica
>> placement enforcement.
>> 
>> Thanks!
>> 
>> 
>> 
>> --
>> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html



Re: UPDATE collection's Rule-based Replica Placement

2021-02-10 Thread Ilan Ginzburg
Do you look for something that would move existing collection replicas
to comply with a new set of rules?
I'm afraid that doesn't exist, but you can use the Collection API to
move replicas "manually".

Ilan

On Tue, Feb 9, 2021 at 1:10 PM mosheB  wrote:
>
> Hi community,
> Using Solr 8.3, is there any way to change the replica placment of "running"
> collection say "from this point forward" or should I recreate the collection
> and migrate all my data from the existing collection to the new one?
> Tried to use the COLLECTIONPROP action which doesn't do the job, instead it
> just update collectionprops.json file and not really affect the replica
> placement enforcement.
>
> Thanks!
>
>
>
> --
> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html


UPDATE collection's Rule-based Replica Placement

2021-02-09 Thread mosheB
Hi community,
Using Solr 8.3, is there any way to change the replica placment of "running"
collection say "from this point forward" or should I recreate the collection
and migrate all my data from the existing collection to the new one?
Tried to use the COLLECTIONPROP action which doesn't do the job, instead it
just update collectionprops.json file and not really affect the replica
placement enforcement.
 
Thanks!



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html